diff options
author | Luciano Coelho <coelho@ti.com> | 2011-01-11 12:25:18 -0500 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-01-24 15:11:52 -0500 |
commit | a8aaaf53d5f22f7f60ca5af26fc85c2940575c37 (patch) | |
tree | fe63b2dc13a245dff40ea2be40fa1619f38119f2 /drivers/net/wireless/wl12xx/wl12xx.h | |
parent | fa287b8f291d79f080182eb353d1c1f4f374ae87 (diff) |
wl12xx: don't modify the global supported band structures
When 11a is not supported, we were modifying the global structure that
contains the bands supported by the driver. This causes problems when
having more one wl12xx device in the same system because they all use
the same global. This also causes problems when the wl12xx_sdio
module is removed and the wl12xx module remains.
Fix this problem by copying the band structure into the wl12xx
instance.
Reported-by: Arik Nemtsov <arik@wizery.com>
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl12xx.h')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl12xx.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl12xx.h b/drivers/net/wireless/wl12xx/wl12xx.h index f153e4b81c0d..ca727e0c4ce9 100644 --- a/drivers/net/wireless/wl12xx/wl12xx.h +++ b/drivers/net/wireless/wl12xx/wl12xx.h | |||
@@ -457,6 +457,9 @@ struct wl1271 { | |||
457 | 457 | ||
458 | /* recoreded keys for AP-mode - set here before AP startup */ | 458 | /* recoreded keys for AP-mode - set here before AP startup */ |
459 | struct wl1271_ap_key *recorded_ap_keys[MAX_NUM_KEYS]; | 459 | struct wl1271_ap_key *recorded_ap_keys[MAX_NUM_KEYS]; |
460 | |||
461 | /* bands supported by this instance of wl12xx */ | ||
462 | struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS]; | ||
460 | }; | 463 | }; |
461 | 464 | ||
462 | struct wl1271_station { | 465 | struct wl1271_station { |