diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2010-01-12 07:47:37 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-12 14:21:09 -0500 |
commit | c97470dd253831e880c72ea5d022ed7f3aee45c3 (patch) | |
tree | 9c7877382c1d53d81687873d2fc23acc591b0baf /drivers/net/wireless/mwl8k.c | |
parent | 9189c10087a738c764046fa27651d332594cd8e6 (diff) |
mwl8k: don't call SET_AID if we're not associated
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwl8k.c')
-rw-r--r-- | drivers/net/wireless/mwl8k.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index f2c4524888a8..67ee3da33264 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c | |||
@@ -3261,9 +3261,9 @@ mwl8k_bss_info_changed_sta(struct ieee80211_hw *hw, struct ieee80211_vif *vif, | |||
3261 | /* | 3261 | /* |
3262 | * Get the AP's legacy and MCS rates. | 3262 | * Get the AP's legacy and MCS rates. |
3263 | */ | 3263 | */ |
3264 | ap_legacy_rates = 0; | ||
3265 | if (vif->bss_conf.assoc) { | 3264 | if (vif->bss_conf.assoc) { |
3266 | struct ieee80211_sta *ap; | 3265 | struct ieee80211_sta *ap; |
3266 | |||
3267 | rcu_read_lock(); | 3267 | rcu_read_lock(); |
3268 | 3268 | ||
3269 | ap = ieee80211_find_sta(vif, vif->bss_conf.bssid); | 3269 | ap = ieee80211_find_sta(vif, vif->bss_conf.bssid); |
@@ -3301,8 +3301,9 @@ mwl8k_bss_info_changed_sta(struct ieee80211_hw *hw, struct ieee80211_vif *vif, | |||
3301 | goto out; | 3301 | goto out; |
3302 | } | 3302 | } |
3303 | 3303 | ||
3304 | if (((changed & BSS_CHANGED_ASSOC) && vif->bss_conf.assoc) || | 3304 | if (vif->bss_conf.assoc && |
3305 | (changed & (BSS_CHANGED_ERP_CTS_PROT | BSS_CHANGED_HT))) { | 3305 | (changed & (BSS_CHANGED_ASSOC | BSS_CHANGED_ERP_CTS_PROT | |
3306 | BSS_CHANGED_HT))) { | ||
3306 | rc = mwl8k_cmd_set_aid(hw, vif, ap_legacy_rates); | 3307 | rc = mwl8k_cmd_set_aid(hw, vif, ap_legacy_rates); |
3307 | if (rc) | 3308 | if (rc) |
3308 | goto out; | 3309 | goto out; |