Bladeren bron

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
Naveen Rawat 9 jaren geleden
bovenliggende
commit
a56fcffaca
1 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  1. 4 3
      core/mac/src/pe/lim/lim_utils.c

+ 4 - 3
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,