]> git.baikalelectronics.ru Git - kernel.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)
commit1c9640314cf76dee7f8951fefb0b7c58d752ca7d
treece1ff708341bf954cdbc66c4c48bb328c2cd16e1
parent7d5d9ea49b653684b7b6860419c4ee9742416f6b
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