ath6kl: Do not clear CONNECT bit setting in AP mode for STA disconnect
authorEdward Lu <elu@qca.qualcomm.com>
Tue, 30 Aug 2011 18:58:08 +0000 (21:58 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 31 Aug 2011 07:13:02 +0000 (10:13 +0300)
Signed-off-by: Edward Lu <elu@qca.qualcomm.com>
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/main.c

index a19caec..69a1b45 100644 (file)
@@ -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;
        }