From e702e9b12be4bd21ea18ec2bfa8dba6166f952fd Mon Sep 17 00:00:00 2001 From: Naveen Rawat Date: Tue, 17 Nov 2015 11:50:40 -0800 Subject: [PATCH] qcacld-3.0: HT20 Protection Mode HT_PURE mode indicates either only HT20 STAs are connected to a HT20 only SAP or HT20/40 STAs are connected to HT20/40 SAP. Otherwise its HT20 protection mode. This patch fixes code to work accroding to this condition correctly. Change-Id: Ib431209f5dfc8800d0932752a282c954f0228503 CRs-Fixed: 866447 --- core/mac/src/pe/lim/lim_utils.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c index 0b9df621ecad..d34c2a30d0af 100644 --- a/core/mac/src/pe/lim/lim_utils.c +++ b/core/mac/src/pe/lim/lim_utils.c @@ -4256,9 +4256,10 @@ static void lim_handle_ht20protection_enabled(tpAniSirGlobal mac_ctx, } else if (LIM_IS_AP_ROLE(session_entry) && !overlap) { session_entry->gLimHt20Params.protectionEnabled = true; if (eSIR_HT_OP_MODE_PURE == session_entry->htOperMode) { - session_entry->htOperMode = - eSIR_HT_OP_MODE_NO_LEGACY_20MHZ_HT; - + if (session_entry->htSupportedChannelWidthSet != + eHT_CHANNEL_WIDTH_20MHZ) + session_entry->htOperMode = + eSIR_HT_OP_MODE_NO_LEGACY_20MHZ_HT; lim_enable_ht_rifs_protection(mac_ctx, false, overlap, beaconparams, session_entry); lim_enable_ht_obss_protection(mac_ctx, false,