Allow set single channel for ACS
authorsunyue5 <sunyue5@motorola.com>
Tue, 21 May 2019 06:35:00 +0000 (14:35 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:32:04 +0000 (17:32 +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 422ff46a4117b7525325a19cab645ac2d7265872..acce94d1f19a979b62cab4f2a09fc473ed328f01 100755 (executable)
@@ -4520,7 +4520,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;