From b75dcf5ed2ef52670e14c555f6c1825a51f72511 Mon Sep 17 00:00:00 2001 From: sunyue5 Date: Sun, 5 May 2019 19:08:42 +0800 Subject: [PATCH] scsc: limit 2.4G ACS on channels 1~11 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 Reviewed-on: https://gerrit.mot.com/1348019 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- drivers/net/wireless/scsc/rx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/scsc/rx.c b/drivers/net/wireless/scsc/rx.c index d3ef9e663fab..1bc742e5cec6 100755 --- a/drivers/net/wireless/scsc/rx.c +++ b/drivers/net/wireless/scsc/rx.c @@ -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; -- 2.20.1