From af7e7fa67ccf3cd2e581b00ff0e721922722916f Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Mon, 8 Aug 2016 17:59:31 +0530 Subject: 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 --- core/mac/src/pe/lim/lim_session.c | 14 ++++++++++++-- 1 file 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)); -- cgit v1.2.3