wil6210: use WMI_DISCONNECT_CMDID upon connect timeout
authorDedy Lansky <qca_dlansky@qca.qualcomm.com>
Wed, 8 Mar 2017 11:52:17 +0000 (13:52 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 9 Mar 2017 08:04:32 +0000 (10:04 +0200)
commit628639b1c976a5f02792dc6595a4d199b7b70d85
treec66606b2be3e46ce1d9e7d35e230da3b6db653ba
parentf6b29b6585593b28c4fde142727bfef350372b83
wil6210: use WMI_DISCONNECT_CMDID upon connect timeout

Upon connect timeout driver invokes _wil6210_disconnect() which iterates
over sta array and disconnects each connected sta. In practice, because
the connection is still ongoing and because cid is not yet allocated,
disconnect is not actually happening. This leaves FW in connecting
state while driver is in disconnected state.
To fix this, upon connect timeout, explicitly send WMI_DISCONNECT_CMDID
to FW to make sure it gets disconnected.

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/main.c