From 585f030eb2827a01f8c2218cc3e83d19219c8039 Mon Sep 17 00:00:00 2001 From: Krishna Kumaar Natarajan Date: Mon, 7 Aug 2017 18:01:27 -0700 Subject: [PATCH] qcacld-3.0: Add channel 149 to scan channel list for emulation Add channel 149 to scan channel list for emulation. Change-Id: I8ea8bd6de5cc510fde51bfaaab95583df3cf30cf CRs-Fixed: 2088941 --- core/sme/src/csr/csr_api_roam.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c index 79dd733c4d84..755790ff6fc1 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/core/sme/src/csr/csr_api_roam.c @@ -667,17 +667,23 @@ scan_list_sort_error: * Return: QDF_STATUS enumeration */ #ifdef QCA_WIFI_NAPIER_EMULATION +#define SCAN_CHAN_LIST_5G_LEN 6 +#define SCAN_CHAN_LIST_2G_LEN 3 +static const uint8_t +csr_scan_chan_list_5g[SCAN_CHAN_LIST_5G_LEN] = { 36, 44, 52, 56, 140, 149 }; +static const uint8_t +csr_scan_chan_list_2g[SCAN_CHAN_LIST_2G_LEN] = { 1, 6, 11 }; static QDF_STATUS csr_emu_chan_req(uint32_t channel) { int i; if (WLAN_REG_IS_24GHZ_CH(channel)) { - for (i = 0; i < QDF_ARRAY_SIZE(csr_start_ibss_channels24); i++) { - if (csr_start_ibss_channels24[i] == channel) + for (i = 0; i < QDF_ARRAY_SIZE(csr_scan_chan_list_2g); i++) { + if (csr_scan_chan_list_2g[i] == channel) return QDF_STATUS_SUCCESS; } } else if (WLAN_REG_IS_5GHZ_CH(channel)) { - for (i = 0; i < QDF_ARRAY_SIZE(csr_start_ibss_channels50); i++) { - if (csr_start_ibss_channels50[i] == channel) + for (i = 0; i < QDF_ARRAY_SIZE(csr_scan_chan_list_5g); i++) { + if (csr_scan_chan_list_5g[i] == channel) return QDF_STATUS_SUCCESS; } }