wcn36xx: Fix software-driven scan
authorLoic Poulain <loic.poulain@linaro.org>
Mon, 24 Aug 2020 16:53:55 +0000 (18:53 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 27 Aug 2020 10:13:44 +0000 (13:13 +0300)
commit5973a2947430a297e3442c28114822a90dff362c
treed62c0b300adf598c57ff3a79c4536b867584a0f3
parent2ca6a1dd83e15d4aa99fbcc0046a33249f5239d4
wcn36xx: Fix software-driven scan

For software-driven scan, rely on mac80211 software scan instead
of internal driver implementation. The internal implementation
cause connection trouble since it keep the antenna busy during
the entire scan duration, moreover it's only a passive scanning
(no probe request). Therefore, let mac80211 manages sw scan.

Note: we fallback to software scan if firmware does not report
scan offload support or if we need to scan the 5Ghz band (currently
not supported by the offload scan...).

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1598288035-19790-1-git-send-email-loic.poulain@linaro.org
drivers/net/wireless/ath/wcn36xx/main.c
drivers/net/wireless/ath/wcn36xx/smd.c
drivers/net/wireless/ath/wcn36xx/smd.h
drivers/net/wireless/ath/wcn36xx/txrx.c
drivers/net/wireless/ath/wcn36xx/wcn36xx.h