aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/iwlegacy/common.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlegacy/common.c b/drivers/net/wireless/iwlegacy/common.c
index 6a692a534ffc..eaf249452e51 100644
--- a/drivers/net/wireless/iwlegacy/common.c
+++ b/drivers/net/wireless/iwlegacy/common.c
@@ -5288,9 +5288,9 @@ il_mac_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
5288 D_MAC80211("BSSID %pM\n", bss_conf->bssid); 5288 D_MAC80211("BSSID %pM\n", bss_conf->bssid);
5289 5289
5290 /* 5290 /*
5291 * If there is currently a HW scan going on in the 5291 * If there is currently a HW scan going on in the background,
5292 * background then we need to cancel it else the RXON 5292 * then we need to cancel it, otherwise sometimes we are not
5293 * below/in post_associate will fail. 5293 * able to authenticate (FIXME: why ?)
5294 */ 5294 */
5295 if (il_scan_cancel_timeout(il, 100)) { 5295 if (il_scan_cancel_timeout(il, 100)) {
5296 D_MAC80211("leave - scan abort failed\n"); 5296 D_MAC80211("leave - scan abort failed\n");
@@ -5299,14 +5299,10 @@ il_mac_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
5299 } 5299 }
5300 5300
5301 /* mac80211 only sets assoc when in STATION mode */ 5301 /* mac80211 only sets assoc when in STATION mode */
5302 if (vif->type == NL80211_IFTYPE_ADHOC || bss_conf->assoc) { 5302 memcpy(il->staging.bssid_addr, bss_conf->bssid, ETH_ALEN);
5303 memcpy(il->staging.bssid_addr, bss_conf->bssid,
5304 ETH_ALEN);
5305 5303
5306 /* currently needed in a few places */ 5304 /* FIXME: currently needed in a few places */
5307 memcpy(il->bssid, bss_conf->bssid, ETH_ALEN); 5305 memcpy(il->bssid, bss_conf->bssid, ETH_ALEN);
5308 } else
5309 il->staging.filter_flags &= ~RXON_FILTER_ASSOC_MSK;
5310 } 5306 }
5311 5307
5312 /* 5308 /*