scsc: limit 2.4G ACS on channels 1~11
authorsunyue5 <sunyue5@motorola.com>
Sun, 5 May 2019 11:08:42 +0000 (19:08 +0800)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:58 +0000 (20:23 +0300)
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 d3ef9e663fab1722d2f327f360a162de9a1f9f33..1bc742e5cec6e980a6c815a1727c67bafc0a5583 100755 (executable)
@@ -655,7 +655,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 = MAX_24G_CHANNELS;
+       /* 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;