Commit a587526a authored by Edward Lu's avatar Edward Lu Committed by Kalle Valo

ath6kl: Do not clear CONNECT bit setting in AP mode for STA disconnect

Signed-off-by: default avatarEdward Lu <elu@qca.qualcomm.com>
Signed-off-by: default avatarJouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 229ed6b5
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment