]> git.baikalelectronics.ru Git - kernel.git/commit
wcn36xx: cancel pending scan request when interface goes down
authorDaniel Mack <daniel@zonque.org>
Tue, 17 Apr 2018 13:23:34 +0000 (15:23 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 24 Apr 2018 06:06:05 +0000 (09:06 +0300)
commit9616a649a92797308a5d041cdddf7e79e0713912
tree7ac12dfafe18d342fb2e70a7481e655db97f9849
parent42c39f9a47b58895fb85ec4bbf50b9c975434cba
wcn36xx: cancel pending scan request when interface goes down

When the network interface goes down while a scan request is still
pending that can't be stopped due to firmware hickups, wcn->scan_req
remains set, even though the hardware is deinitialized. This results
in -EBUSY for all scan requests after the interface was brought up
again.

Fix this by explicitly completing pending scan requests in
wcn36xx_stop().

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wcn36xx/main.c