wil6210: correctly report locally generated disconnect in STA mode
authorDedy Lansky <qca_dlansky@qca.qualcomm.com>
Wed, 8 Mar 2017 11:52:18 +0000 (13:52 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 9 Mar 2017 08:04:36 +0000 (10:04 +0200)
commit3b56c15fa3315942b4cb02e57ff842f2f9b14ef7
treed0e738cf446de88a70229fa9558149fbbbb81e85
parent628639b1c976a5f02792dc6595a4d199b7b70d85
wil6210: correctly report locally generated disconnect in STA mode

Driver always invoke cfg80211_disconnected() with locally_generated as
false.
Fix this by reporting true whenever the disconnect is triggered from
upper layers (cfg80211) or from within the driver itself (reset,
deinit).

Signed-off-by: Dedy Lansky <qca_dlansky@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wil6210/cfg80211.c
drivers/net/wireless/ath/wil6210/main.c
drivers/net/wireless/ath/wil6210/wil6210.h
drivers/net/wireless/ath/wil6210/wmi.c