ath6kl: issue wmi disconnect after notifying cfg80211
authorThomas Pedersen <c_tpeder@qca.qualcomm.com>
Wed, 16 May 2012 20:41:13 +0000 (13:41 -0700)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 17 May 2012 06:10:46 +0000 (09:10 +0300)
ath6kl would issue a wmi disconnect command in response to a remote
disconnect and return early without notifying cfg80211, only sending a
cfg80211_disconnected (with reason code always 3) in response to the
second disconnect firmware event.

Pass the right reason code to cfg80211 on the first disconnect instead.

This fixes at least one bug where a p2p client would stop trying to
connect after receiving a stale RSN deauth which was reported to
cfg80211 as GO leaving BSS.

Signed-off-by: Thomas Pedersen <c_tpeder@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c