aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/wcn36xx/main.c
diff options
context:
space:
mode:
authorLoic Poulain <loic.poulain@linaro.org>2021-10-25 17:22:08 +0200
committerKalle Valo <kvalo@codeaurora.org>2021-10-28 10:31:15 +0300
commitd707f812bb0513ea0030d0c9fe2a456bae5a4583 (patch)
tree5a7214c454de9e3615531196f011817c531da797 /drivers/net/wireless/ath/wcn36xx/main.c
parentRevert "wcn36xx: Enable firmware link monitoring" (diff)
downloadlinux-dev-d707f812bb0513ea0030d0c9fe2a456bae5a4583.tar.xz
linux-dev-d707f812bb0513ea0030d0c9fe2a456bae5a4583.zip
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
Diffstat (limited to 'drivers/net/wireless/ath/wcn36xx/main.c')
-rw-r--r--drivers/net/wireless/ath/wcn36xx/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c
index 42153305f6d8..158ac17f5f56 100644
--- a/drivers/net/wireless/ath/wcn36xx/main.c
+++ b/drivers/net/wireless/ath/wcn36xx/main.c
@@ -678,6 +678,7 @@ static int wcn36xx_hw_scan(struct ieee80211_hw *hw,
mutex_unlock(&wcn->scan_lock);
+ wcn36xx_smd_update_channel_list(wcn, &hw_req->req);
return wcn36xx_smd_start_hw_scan(wcn, vif, &hw_req->req);
}