qtnfmac: do not use mutexes in timer context
authorIgor Mitsyanko <igor.mitsyanko.os@quantenna.com>
Mon, 22 Jan 2018 12:46:32 +0000 (15:46 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 Jan 2018 16:00:54 +0000 (18:00 +0200)
commitf2cddd5469b0e2284fa92f7013f6dc99debb3968
treebf913219d22615e81228ae31868198548a4dc042
parent39845020b39eea4a1e5db9ea4818a967b567e2e2
qtnfmac: do not use mutexes in timer context

The function qtnf_scan_done makes use of mutexes which is wrong
since it may be called from timer context. Move scan timeout
handler from timer to deferred work.

Signed-off-by: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
drivers/net/wireless/quantenna/qtnfmac/cfg80211.h
drivers/net/wireless/quantenna/qtnfmac/core.c
drivers/net/wireless/quantenna/qtnfmac/core.h