wcn36xx: Channel list update before hardware scan
authorLoic Poulain <loic.poulain@linaro.org>
Mon, 25 Oct 2021 15:22:08 +0000 (17:22 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 28 Oct 2021 07:31:15 +0000 (10:31 +0300)
commitd707f812bb0513ea0030d0c9fe2a456bae5a4583
tree5a7214c454de9e3615531196f011817c531da797
parent43ea9bd84f27d06482cc823d9749cc9dd2993bc8
wcn36xx: Channel list update before hardware scan

The channel scan list must be updated before triggering a hardware scan
so that firmware takes into account the regulatory info for each single
channel such as active/passive config, power, DFS, etc... Without this
the firmware uses its own internal default channel configuration, which
is not aligned with mac80211 regulatory rules, and misses several
channels (e.g. 144).

Fixes: 2f3bef4b247e ("wcn36xx: Add hardware scan offload support")
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1635175328-25642-1-git-send-email-loic.poulain@linaro.org
drivers/net/wireless/ath/wcn36xx/hal.h
drivers/net/wireless/ath/wcn36xx/main.c
drivers/net/wireless/ath/wcn36xx/smd.c
drivers/net/wireless/ath/wcn36xx/smd.h