diff options
| author | Abhishek Singh <absingh@qti.qualcomm.com> | 2016-06-21 17:58:02 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-06-24 12:23:28 +0530 |
| commit | 8c3c8f77dfe1a101116e1fc5d84aa7bae195e97f (patch) | |
| tree | 5a5fec085d9da6da086e6e835187789ee225fe7b | |
| parent | 8927f5b1276b524a411bc8c308f18547f1ff2698 (diff) | |
qcacld-2.0: Do not reset short preamble support and beacon interval
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/limSession.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/CORE/MAC/src/pe/lim/limSession.c b/CORE/MAC/src/pe/lim/limSession.c index e4d3378f1b81..6fe267edca26 100644 --- a/CORE/MAC/src/pe/lim/limSession.c +++ b/CORE/MAC/src/pe/lim/limSession.c @@ -143,9 +143,18 @@ void pe_reset_protection_callback(void *ptr) vos_mem_zero(&pe_session_entry->gLimOlbcParams, sizeof(pe_session_entry->gLimOlbcParams)); - - vos_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; vos_mem_zero(&mac_ctx->lim.gLimOverlap11gParams, sizeof(mac_ctx->lim.gLimOverlap11gParams)); |
