summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Singh <absingh@codeaurora.org>2016-08-08 17:59:31 +0530
committerqcabuildsw <qcabuildsw@localhost>2016-08-22 22:55:48 -0700
commitaf7e7fa67ccf3cd2e581b00ff0e721922722916f (patch)
treecddb6f0e30f1f46df3abc77604dd9ae933a699da
parente0676b5d59514be521d37e620a06a8e3ae760224 (diff)
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
-rw-r--r--core/mac/src/pe/lim/lim_session.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/core/mac/src/pe/lim/lim_session.c b/core/mac/src/pe/lim/lim_session.c
index 7e7b7330c1c0..f3336544be64 100644
--- a/core/mac/src/pe/lim/lim_session.c
+++ b/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));