Skip to content

Commit

Permalink
ath6kl: Do not clear CONNECT bit setting in AP mode for STA disconnect
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Edward Lu authored and Kalle Valo committed Aug 31, 2011
1 parent 229ed6b commit a587526
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/ath/ath6kl/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a587526

Please sign in to comment.