scsc: limit 2.4G ACS on channels 1~11
authorsunyue5 <sunyue5@motorola.com>
Sun, 5 May 2019 11:08:42 +0000 (19:08 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:32:03 +0000 (17:32 +0800)
Samsung implemented 2.4G ACS among all region allowed
channels, while Moto requires 2.4G MHS should only be
setup on channels 1~11.

Change-Id: Ibecfc178488768ae3f03ba44519088c39094662a
Signed-off-by: sunyue5 <sunyue5@motorola.com>
Reviewed-on: https://gerrit.mot.com/1348019
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/net/wireless/scsc/rx.c

index 59be452a291e72e37520499d87ecc13aefe5ca65..3051d07176c21a8317dcfef29f0c5cfd417b0d91 100755 (executable)
@@ -629,7 +629,10 @@ int slsi_set_2g_auto_channel(struct slsi_dev *sdev, struct netdev_vif  *ndev_vif
        int min_avg_chan_utilization_20 = INT_MAX, min_adjacent_rssi_20 = INT_MAX;
        int ch_idx_min_load_20 = 0, ch_idx_min_rssi_20 = 0;
        int ret = 0;
-       int ch_list_len = ndev_vif->scan[SLSI_SCAN_HW_ID].acs_request->ch_list_len;
+       /* BEGIN IKSAMP-8520 limit 2.4G ACS channels to 11 */
+       // int ch_list_len = ndev_vif->scan[SLSI_SCAN_HW_ID].acs_request->ch_list_len;
+       int ch_list_len = 11;
+       /* END IKSAMP-8520 */
 
        acs_selected_channels->ch_width = ndev_vif->scan[SLSI_SCAN_HW_ID].acs_request->ch_width;
        acs_selected_channels->hw_mode = ndev_vif->scan[SLSI_SCAN_HW_ID].acs_request->hw_mode;