wil6210: Fix driver down flow
authorLazar Alexei <qca_ailizaro@qca.qualcomm.com>
Thu, 18 Aug 2016 13:52:14 +0000 (16:52 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 19 Aug 2016 10:11:19 +0000 (13:11 +0300)
commitb0c0e688e523eba14abf21ac246b7dd88f5574fa
tree64fcb1c6e974030dd5029eec40a87782a65d1dd6
parentd35c2b6f8ffa75d430fd0fbbc5062f738c44f6e4
wil6210: Fix driver down flow

Stations disconnection is executed as part of wil_reset so no
need to do it in wil_down.
Removal of the disconnect operation will also preserve the lock
of wil->mutex during the whole reset flow and prevent handling of
connect event while resetting.
Set wil_status_resetting in earlier stage in the flow to prevent
double resetting call in case communication with FW fails while
bringing the interface down.

Signed-off-by: Lazar Alexei <qca_ailizaro@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/main.c