mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
qcacld-3.0: Always update mgmt encryption type when there is RSN IE
If mgmt encryption type is not updated, 11w feature will not be enabled correctly for this association. Mgmt encryption type is always updated through limJoinReqSerDes in the cld2.0, which is removed in cld3.0. In cld3.0 if fast roaming is enabled, mgmt encryption type will be updated through csr_construct_rsn_ie. If fast roaming is not enabled, csr_construct_rsn_ie will not be called and mgmt encryption type will not be updated. Always called csr_construct_rsn_ie in csr_retrieve_rsn_ie to make sure mgmt encryption type is updated. Change-Id: I2d6541dd88a9d1770f4976b9caa32baa70a60ed3 CRs-Fixed: 2300847
This commit is contained in:
parent
d0a15fb745
commit
13f45e6690
1 changed files with 2 additions and 22 deletions
|
|
@ -4689,28 +4689,8 @@ uint8_t csr_retrieve_rsn_ie(tpAniSirGlobal pMac, uint32_t sessionId,
|
|||
break;
|
||||
}
|
||||
|
||||
if (csr_roam_is_fast_roam_enabled(pMac, sessionId)) {
|
||||
/* If "Legacy Fast Roaming" is enabled ALWAYS rebuild
|
||||
* the RSN IE from scratch. So it contains the current
|
||||
* PMK-IDs
|
||||
*/
|
||||
cbRsnIe =
|
||||
csr_construct_rsn_ie(pMac, sessionId, pProfile,
|
||||
pSirBssDesc, pIes, pRsnIe);
|
||||
} else if (pProfile->nRSNReqIELength && pProfile->pRSNReqIE) {
|
||||
/* If you have one started away, re-use it. */
|
||||
if (pProfile->nRSNReqIELength <=
|
||||
DOT11F_IE_RSN_MAX_LEN) {
|
||||
cbRsnIe = (uint8_t) pProfile->nRSNReqIELength;
|
||||
qdf_mem_copy(pRsnIe, pProfile->pRSNReqIE,
|
||||
cbRsnIe);
|
||||
} else
|
||||
sme_warn("csr_retrieve_rsn_ie detect invalid RSN IE length (%d)",
|
||||
pProfile->nRSNReqIELength);
|
||||
} else
|
||||
cbRsnIe = csr_construct_rsn_ie(pMac, sessionId,
|
||||
pProfile,
|
||||
pSirBssDesc, pIes, pRsnIe);
|
||||
cbRsnIe = csr_construct_rsn_ie(pMac, sessionId, pProfile,
|
||||
pSirBssDesc, pIes, pRsnIe);
|
||||
} while (0);
|
||||
|
||||
return cbRsnIe;
|
||||
|
|
|
|||
Loading…
Reference in a new issue