Selaa lähdekoodia

qcacld-3.0: Do not reset short preamble support and beacon interval

qcacld-2.0 to qcacld-3.0 propagation

In pe_reset_protection_callback psession's beaconParams struct is
reset to 0 and thus short preamble support being part of this
structure is set to 0. Due to this beacons always have barker
preamble set to 1 even if no non short preamble enabled STA is
connected.

To avoid this do not reset the short preamble support and beacon
interval in psession's beaconParams structure.

Change-Id: I631fb202fba6bc129d03ff21cff2adef328abff2
CRs-Fixed: 1032578
Abhishek Singh 8 vuotta sitten
vanhempi
sitoutus
af7e7fa67c
1 muutettua tiedostoa jossa 12 lisäystä ja 2 poistoa
  1. 12 2
      core/mac/src/pe/lim/lim_session.c

+ 12 - 2
core/mac/src/pe/lim/lim_session.c

@@ -157,8 +157,18 @@ void pe_reset_protection_callback(void *ptr)
 	qdf_mem_zero(&pe_session_entry->gLimOlbcParams,
 		     sizeof(pe_session_entry->gLimOlbcParams));
 
-	qdf_mem_zero(&pe_session_entry->beaconParams,
-		     sizeof(pe_session_entry->beaconParams));
+	/*
+	 * Do not reset fShortPreamble and beaconInterval, as they
+	 * are not updated.
+	 */
+	pe_session_entry->beaconParams.llaCoexist = 0;
+	pe_session_entry->beaconParams.llbCoexist = 0;
+	pe_session_entry->beaconParams.llgCoexist = 0;
+	pe_session_entry->beaconParams.ht20Coexist = 0;
+	pe_session_entry->beaconParams.llnNonGFCoexist = 0;
+	pe_session_entry->beaconParams.fRIFSMode = 0;
+	pe_session_entry->beaconParams.fLsigTXOPProtectionFullSupport = 0;
+	pe_session_entry->beaconParams.gHTObssMode = 0;
 
 	qdf_mem_zero(&mac_ctx->lim.gLimOverlap11gParams,
 		     sizeof(mac_ctx->lim.gLimOverlap11gParams));