Allow set single channel for ACS
authorsunyue5 <sunyue5@motorola.com>
Tue, 21 May 2019 06:35:00 +0000 (14:35 +0800)
committerPDO SCM Team <hudsoncm@motorola.com>
Wed, 22 May 2019 02:46:07 +0000 (21:46 -0500)
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 cbe53f03b8ca8716bc50e6fc129620a64f915c26..4fcde76239fdd00067d7ade00ab27568967e2907 100755 (executable)
@@ -6469,7 +6469,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;