diff options
author | Abhishek Ambure <aambure@codeaurora.org> | 2020-12-14 11:27:38 +0530 |
---|---|---|
committer | Isaac Chiou <isaacchiou@google.com> | 2021-03-04 03:09:06 +0000 |
commit | 9d4d4eb4a2fa1d09e419a4e294bf3307f7e82920 (patch) | |
tree | f225928583a703e2126fae5bbc138f2a2e18a3d3 | |
parent | 3bee00586c80f3499e044da66a0f9555bf038fb6 (diff) | |
download | qcacld-9d4d4eb4a2fa1d09e419a4e294bf3307f7e82920.tar.gz |
qcacld-3.0: Save self rsn caps in csr roam session
Host updates self rsn caps to firmware using RSO commands. Host uses
rsn caps stored in CSR session's "rsn_caps" member which is
intersection of self and AP's rsn caps. To correctly update self rsn
caps to FW, save self rsn caps in csr session's "rsn_caps" member.
Bug: 175365015
Change-Id: I396758382ec4228289406610006cfdbc8a4c16c5
CRs-fixed: 2832369
-rw-r--r-- | core/sme/src/csr/csr_util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/sme/src/csr/csr_util.c b/core/sme/src/csr/csr_util.c index 226c8b9791..effca70373 100644 --- a/core/sme/src/csr/csr_util.c +++ b/core/sme/src/csr/csr_util.c @@ -3676,6 +3676,7 @@ uint8_t csr_construct_rsn_ie(tHalHandle hHal, uint32_t sessionId, pProfile->nRSNReqIELength -2, &rsn_ie, false); if (DOT11F_SUCCEEDED(ret)) { + session->rsn_caps = *(struct rsn_caps *)rsn_ie.RSN_Cap; pIesLocal->RSN.RSN_Cap[0] = pIesLocal->RSN.RSN_Cap[0] & rsn_ie.RSN_Cap[0]; @@ -3738,8 +3739,6 @@ uint8_t csr_construct_rsn_ie(tHalHandle hHal, uint32_t sessionId, pPMK = (tCsrRSNPMKIe *) (((uint8_t *) (&pAuthSuite->AuthOui[1])) + sizeof(uint16_t)); - /* Store RSN capabilities in session */ - session->rsn_caps = RSNCapabilities; if (!csr_update_pmksa_for_cache_id(pSirBssDesc, pProfile, &pmkid_cache)) qdf_mem_copy(pmkid_cache.BSSID.bytes, |