wil6210: fix deadlock when using fw_no_recovery option
authorLior David <qca_liord@qca.qualcomm.com>
Wed, 23 Nov 2016 14:06:41 +0000 (16:06 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 23 Nov 2016 14:49:53 +0000 (16:49 +0200)
commitdfb5b098e0f40b68aa07f2ec55f4dd762efefbfa
treed4ea87af0459920894f687a136a465f4eb65dbf4
parent2c207eb8e6ab3f46d6c6a0daab16dc756562802b
wil6210: fix deadlock when using fw_no_recovery option

When FW crashes with no_fw_recovery option, driver
waits for manual recovery with wil->mutex held, this
can easily create deadlocks.
Fix the problem by moving the wait outside the lock.

Signed-off-by: Lior David <qca_liord@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