From: Edward Lu Date: Tue, 30 Aug 2011 18:58:08 +0000 (+0300) Subject: ath6kl: Do not clear CONNECT bit setting in AP mode for STA disconnect X-Git-Tag: MMI-PSA29.97-13-9~18194^2~83^2~133^2~63 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a587526a44d0c2812ee9d650e7c0626b48697aca;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ath6kl: Do not clear CONNECT bit setting in AP mode for STA disconnect Signed-off-by: Edward Lu Signed-off-by: Jouni Malinen Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath6kl/main.c b/drivers/net/wireless/ath/ath6kl/main.c index a19caecdfdeb..69a1b45179c5 100644 --- a/drivers/net/wireless/ath/ath6kl/main.c +++ b/drivers/net/wireless/ath/ath6kl/main.c @@ -1284,7 +1284,8 @@ void ath6kl_disconnect_event(struct ath6kl *ar, u8 reason, u8 *bssid, cfg80211_del_sta(ar->net_dev, bssid, GFP_KERNEL); } - clear_bit(CONNECTED, &ar->flag); + if (memcmp(ar->net_dev->dev_addr, bssid, ETH_ALEN) == 0) + clear_bit(CONNECTED, &ar->flag); return; }