diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/main.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/main.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c index 35cfcf675795..97eb186b5a8a 100644 --- a/drivers/net/wireless/wl12xx/main.c +++ b/drivers/net/wireless/wl12xx/main.c | |||
@@ -336,7 +336,9 @@ out: | |||
336 | } | 336 | } |
337 | 337 | ||
338 | static int wl1271_reg_notify(struct wiphy *wiphy, | 338 | static int wl1271_reg_notify(struct wiphy *wiphy, |
339 | struct regulatory_request *request) { | 339 | struct regulatory_request *request) |
340 | { | ||
341 | struct wl1271 *wl = wiphy_to_ieee80211_hw(wiphy)->priv; | ||
340 | struct ieee80211_supported_band *band; | 342 | struct ieee80211_supported_band *band; |
341 | struct ieee80211_channel *ch; | 343 | struct ieee80211_channel *ch; |
342 | int i; | 344 | int i; |
@@ -347,6 +349,11 @@ static int wl1271_reg_notify(struct wiphy *wiphy, | |||
347 | if (ch->flags & IEEE80211_CHAN_DISABLED) | 349 | if (ch->flags & IEEE80211_CHAN_DISABLED) |
348 | continue; | 350 | continue; |
349 | 351 | ||
352 | if (!wl->enable_11a) { | ||
353 | ch->flags |= IEEE80211_CHAN_DISABLED; | ||
354 | continue; | ||
355 | } | ||
356 | |||
350 | if (ch->flags & IEEE80211_CHAN_RADAR) | 357 | if (ch->flags & IEEE80211_CHAN_RADAR) |
351 | ch->flags |= IEEE80211_CHAN_NO_IBSS | | 358 | ch->flags |= IEEE80211_CHAN_NO_IBSS | |
352 | IEEE80211_CHAN_PASSIVE_SCAN; | 359 | IEEE80211_CHAN_PASSIVE_SCAN; |