Allow set single channel for ACS
authorsunyue5 <sunyue5@motorola.com>
Tue, 21 May 2019 06:35:00 +0000 (14:35 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:37:02 +0000 (17:37 +0800)
Moto uses vendor.wifi.certchannel to set single channel
for ACS

Change-Id: I6990b132d972f4a0bc2d4901b0c9e38cd5956d84
Signed-off-by: sunyue5 <sunyue5@motorola.com>
Reviewed-on: https://gerrit.mot.com/1358073
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key

drivers/net/wireless/scsc/nl80211_vendor.c

index 32597c98f85586887bd1aff4bf7dc6923ab48d9c..599c84196708b37386706b07a0265278381a6b6f 100755 (executable)
@@ -5044,7 +5044,9 @@ static int slsi_acs_init(struct wiphy *wiphy,
                        }
                }
 
-               if (num_channels == 1) {
+               /* BEGIN IKSAMP-9148, moto acs policy for vendor.wifi.certchannel */
+               if (num_channels == 1 && freq_list_len != 1) {
+               /* END IKSAMP-9148, moto acs policy */
                        memset(&acs_selected_channels, 0, sizeof(acs_selected_channels));
                        acs_selected_channels.ch_width = 20;
                        acs_selected_channels.hw_mode = request->hw_mode;