wcn36xx: Implement cancel_hw_scan
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 1 Feb 2017 15:27:47 +0000 (07:27 -0800)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 7 Feb 2017 08:59:26 +0000 (10:59 +0200)
commit03c95dbef64264b6d86d50c0f0d90fdf989e528e
treea9147ea324fb1aa1f552067280c35a52a0fb664d
parent7f622593cc5add77a99cd39404e8a851be9de792
wcn36xx: Implement cancel_hw_scan

In the even that the wcn36xx interface is brought down while a hw_scan
is active we must abort and wait for the ongoing scan to signal
completion to mac80211.

Reported-by: Mart Raudsepp <leio@gentoo.org>
Fixes: 886039036c20 ("wcn36xx: Implement firmware assisted scan")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wcn36xx/main.c
drivers/net/wireless/ath/wcn36xx/wcn36xx.h