]> asedeno.scripts.mit.edu Git - linux.git/commit
wcn36xx: Fix warning due to duplicate scan_completed notification
authorLoic Poulain <loic.poulain@linaro.org>
Thu, 15 Feb 2018 11:08:28 +0000 (12:08 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Feb 2018 16:48:41 +0000 (18:48 +0200)
commit9bfd05e35ac3519c26ffa0bfb1ab8933c8f00c74
treece1ff708341bf954cdbc66c4c48bb328c2cd16e1
parent52c528ffaf1d4697e35c433a6a2ff81c469c967a
wcn36xx: Fix warning due to duplicate scan_completed notification

The wcn36xx_cancel_hw_scan method stops the hw scan and notify the
scan completion via ieee80211_scan_completed.
However, on scan offload cancellation, firmware sends a scan complete
indication, triggering a new call to ieee80211_scan_completed.
This leads to kernel warn since the scan has already been completed.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wcn36xx/main.c
drivers/net/wireless/ath/wcn36xx/smd.c