summaryrefslogtreecommitdiff
path: root/core/mac/src
diff options
context:
space:
mode:
authorAbhishek Singh <absingh@codeaurora.org>2016-03-21 12:43:00 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2016-04-20 22:22:35 -0700
commit165bc60022da1e1cc697f7b4a48fa05e7d9daffc (patch)
treedc2e3acc0e93afe41099df526f57ce59690d0d75 /core/mac/src
parentb3264f0358bc8dbedf5fb9f99eb3d16b981688a1 (diff)
qcacld-3.0: Add INI param to ignore HT op mode of peer AP
qcacld-2.0 to qcacld-3.0 propagation Currently even if peer AP is in Legacy mode, driver can enable 11g protection, even though there is no 11g AP in vicinity. As a part of fix, add an INI param which will enable 11g protection only when there is a 11g AP in vicinity. Change-Id: Ic76e6070b02f92ef33934a0e5158fa4ef6c3e45b CRs-Fixed: 897755
Diffstat (limited to 'core/mac/src')
-rw-r--r--core/mac/src/pe/sch/sch_beacon_process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/mac/src/pe/sch/sch_beacon_process.c b/core/mac/src/pe/sch/sch_beacon_process.c
index 7cf542cff880..be5af48c2ce6 100644
--- a/core/mac/src/pe/sch/sch_beacon_process.c
+++ b/core/mac/src/pe/sch/sch_beacon_process.c
@@ -199,7 +199,8 @@ ap_beacon_process_24_ghz(tpAniSirGlobal mac_ctx, uint8_t *rx_pkt_info,
* 11b because if that's needed then our operating mode would have
* already been set to legacy in the previous blocks.
*/
- if (eSIR_HT_OP_MODE_OVERLAP_LEGACY == bcn_struct->HTInfo.opMode) {
+ if ((eSIR_HT_OP_MODE_OVERLAP_LEGACY == bcn_struct->HTInfo.opMode) &&
+ !mac_ctx->roam.configParam.ignore_peer_ht_opmode) {
if (eSIR_HT_OP_MODE_OVERLAP_LEGACY == mac_ctx->lim.gHTOperMode
|| eSIR_HT_OP_MODE_MIXED == mac_ctx->lim.gHTOperMode)
return;