From: sunyue5 Date: Sun, 5 May 2019 11:08:42 +0000 (+0800) Subject: scsc: limit 2.4G ACS on channels 1~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cc8919c7d6d65378ec1b860082f25164f3546208;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/drivers/net/wireless/scsc/rx.c b/drivers/net/wireless/scsc/rx.c index 59be452a291e..3051d07176c2 100755 --- a/drivers/net/wireless/scsc/rx.c +++ b/drivers/net/wireless/scsc/rx.c @@ -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;