mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
qcacld-3.0: Update pmkid_modes based on "pmkidModes" ini
Currently the host driver updates the okc, pmksa flags only after the set key management command is received from the wpa supplicant. This is not needed as set_pmksa command is received for 802.1x/SAE/OWE and key management needs to be offloaded to firmware always for it to be able to include PMKID in reassoc request/responses. Receive the pmkid_modes from ini config parsed to mlme and update in 11i tlv param of ROAM_SCAN_MODE command. Change-Id: If169b402731e3713479e90b627060df470e5dab2 CRs-Fixed: 2506580
This commit is contained in:
parent
e255397d97
commit
d81b7d49ff
1 changed files with 7 additions and 1 deletions
|
|
@ -17524,12 +17524,18 @@ csr_update_roam_scan_offload_request(struct mac_context *mac_ctx,
|
|||
struct roam_offload_scan_req *req_buf,
|
||||
struct csr_roam_session *session)
|
||||
{
|
||||
uint32_t pmkid_modes = mac_ctx->mlme_cfg->sta.pmkid_modes;
|
||||
|
||||
req_buf->roam_offload_enabled = csr_is_roam_offload_enabled(mac_ctx);
|
||||
if (!req_buf->roam_offload_enabled)
|
||||
return;
|
||||
|
||||
req_buf->RoamKeyMgmtOffloadEnabled = session->RoamKeyMgmtOffloadEnabled;
|
||||
req_buf->pmkid_modes = session->pmkid_modes;
|
||||
req_buf->pmkid_modes.fw_okc =
|
||||
(pmkid_modes & CFG_PMKID_MODES_OKC) ? 1 : 0;
|
||||
req_buf->pmkid_modes.fw_pmksa_cache =
|
||||
(pmkid_modes & CFG_PMKID_MODES_PMKSA_CACHING) ? 1 : 0;
|
||||
|
||||
qdf_mem_copy(&req_buf->roam_params,
|
||||
&mac_ctx->roam.configParam.roam_params,
|
||||
sizeof(req_buf->roam_params));
|
||||
|
|
|
|||
Loading…
Reference in a new issue