aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/main.c')
-rw-r--r--drivers/net/wireless/ath/ath6kl/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/main.c b/drivers/net/wireless/ath/ath6kl/main.c
index d510046c99d6..acbd35d8df2b 100644
--- a/drivers/net/wireless/ath/ath6kl/main.c
+++ b/drivers/net/wireless/ath/ath6kl/main.c
@@ -1364,8 +1364,10 @@ void ath6kl_disconnect_event(struct ath6kl *ar, u8 reason, u8 *bssid,
1364 cfg80211_del_sta(ar->net_dev, bssid, GFP_KERNEL); 1364 cfg80211_del_sta(ar->net_dev, bssid, GFP_KERNEL);
1365 } 1365 }
1366 1366
1367 if (memcmp(ar->net_dev->dev_addr, bssid, ETH_ALEN) == 0) 1367 if (memcmp(ar->net_dev->dev_addr, bssid, ETH_ALEN) == 0) {
1368 memset(ar->wep_key_list, 0, sizeof(ar->wep_key_list));
1368 clear_bit(CONNECTED, &ar->flag); 1369 clear_bit(CONNECTED, &ar->flag);
1370 }
1369 return; 1371 return;
1370 } 1372 }
1371 1373