Search Linux Wireless

[PATCH] mac80211: clear bssid on auth failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ifmgd->bssid wasn't cleared properly in some auth
failure cases, causing mac80211 and the low-level
driver to go out of sync.

Clear ifmgd->bssid on failure, and notify the driver.

Cc: stable@xxxxxxxxxx # 3.4+
Signed-off-by: Eliad Peller <eliad@xxxxxxxxxx>
---
 net/mac80211/mlme.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 03cd188..bb71b74 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -3296,6 +3296,8 @@ int ieee80211_mgd_auth(struct ieee80211_sub_if_data *sdata,
 	goto out_unlock;
 
  err_clear:
+	memset(ifmgd->bssid, 0, ETH_ALEN);
+	ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BSSID);
 	ifmgd->auth_data = NULL;
  err_free:
 	kfree(auth_data);
-- 
1.7.6.401.g6a319

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux