From: Arend van Spriel Date: Thu, 10 Feb 2011 11:03:43 +0000 (+0100) Subject: staging: brcm80211: return error code to mac80211 for 40MHz channels X-Git-Tag: MMI-PSA29.97-13-9~20521^2~542 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9d2c415612bc6dd300e7feffebf193243536eaea;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: brcm80211: return error code to mac80211 for 40MHz channels When mac80211 attempts to configure the driver for 40MHz channel it will return an error code -EIO as this is not yet supported. Reviewed-by: Roland Vossen Reviewed-by: Brett Rudley Reviewed-by: Henry Ptasinski Signed-off-by: Arend van Spriel Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/brcm80211/brcmsmac/wl_mac80211.c b/drivers/staging/brcm80211/brcmsmac/wl_mac80211.c index 46e765e2cacd..ce115f29d79a 100644 --- a/drivers/staging/brcm80211/brcmsmac/wl_mac80211.c +++ b/drivers/staging/brcm80211/brcmsmac/wl_mac80211.c @@ -246,6 +246,7 @@ ieee_set_channel(struct ieee80211_hw *hw, struct ieee80211_channel *chan, case NL80211_CHAN_HT40MINUS: case NL80211_CHAN_HT40PLUS: WL_ERROR("%s: Need to implement 40 Mhz Channels!\n", __func__); + err = 1; break; }