diff options
author | Rajeev Kumar <quic_rajekuma@quicinc.com> | 2020-10-15 10:48:47 +0530 |
---|---|---|
committer | Paul Chen <chenpaul@google.com> | 2020-10-19 04:06:59 +0000 |
commit | 83fd7f20724171e7dec926774527ea282018cb85 (patch) | |
tree | 34d4029dc94d4a1a4a5e61507ffde0fa5476bfe3 | |
parent | 9de230cd2717a59fb2477826169f8cbd329c7a3f (diff) | |
download | qcacld-android-11.0.0_r0.44.tar.gz |
qcacld-3.0: Scan 2.4ghz channels if 5ghz not presentandroid-11.0.0_r0.44android-11.0.0_r0.30
Currently the driver skips the 2.4ghz channels if
5ghz are present and BW is greater than 40Mhz.
It may happen that these 5ghz channels get
stripped out before channel selection due
to LTE-COEX or some other reasons.
Fix is to keep the 2.4ghz channels and select
them if 5ghz are not available.
Change-Id: Ic39936be9f0e0d1cf3b6bbfe904ea788bab87bcb
CRs-Fixed: 2797943
Bug: 170222921
Signed-off-by: Rajeev Kumar <quic_rajekuma@quicinc.com>
-rw-r--r-- | core/sap/src/sap_fsm.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index 79f65b94d1..81bcf2cac3 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -3345,25 +3345,6 @@ static QDF_STATUS sap_get_channel_list(struct sap_context *sap_ctx, wlan_reg_is_etsi13_srd_chan(mac_ctx->pdev, WLAN_REG_CH_NUM(loop_count))) continue; - /* - * If we have any 5Ghz channel in the channel list - * and bw is 40/80/160 Mhz then we don't want SAP to - * come up in 2.4Ghz as for 40Mhz, 2.4Ghz channel is - * not preferred and 80/160Mhz is not allowed for 2.4Ghz - * band. So, don't even scan on 2.4Ghz channels if bw is - * 40/80/160Mhz and channel list has any 5Ghz channel. - */ - if (end_ch_num >= WLAN_REG_CH_NUM(CHAN_ENUM_36) && - ((ch_width == CH_WIDTH_40MHZ) || - (ch_width == CH_WIDTH_80MHZ) || - (ch_width == CH_WIDTH_80P80MHZ) || - (ch_width == CH_WIDTH_160MHZ))) { - if (WLAN_REG_CH_NUM(loop_count) >= - WLAN_REG_CH_NUM(CHAN_ENUM_1) && - WLAN_REG_CH_NUM(loop_count) <= - WLAN_REG_CH_NUM(CHAN_ENUM_14)) - continue; - } #ifdef FEATURE_WLAN_AP_AP_ACS_OPTIMIZE uint8_t ch; |