From 165bc60022da1e1cc697f7b4a48fa05e7d9daffc Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Mon, 21 Mar 2016 12:43:00 +0530 Subject: 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 --- core/mac/src/pe/sch/sch_beacon_process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/mac/src') 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; -- cgit v1.2.3