qcacld-3.0: Create PMF timer when PEER associates in PMF mode
Current driver is creating PMF timer for all non-pmf as well as
PMF PEERs which is un-necessary.
Create PMF timer for each PEER when PEER associates in 80211W-PMF
mode.
CRs-Fixed: 2145687
Change-Id: I698de22a075f3307253db811b7ae616ebe48c127
diff --git a/core/mac/src/pe/lim/lim_process_assoc_req_frame.c b/core/mac/src/pe/lim/lim_process_assoc_req_frame.c
index ffbbbb3..cdf1c07 100644
--- a/core/mac/src/pe/lim/lim_process_assoc_req_frame.c
+++ b/core/mac/src/pe/lim/lim_process_assoc_req_frame.c
@@ -1506,7 +1506,8 @@
if (WNI_CFG_PMF_SA_QUERY_RETRY_INTERVAL_STAMIN > retry_interval) {
retry_interval = WNI_CFG_PMF_SA_QUERY_RETRY_INTERVAL_STADEF;
}
- if (tx_timer_create(mac_ctx, &sta_ds->pmfSaQueryTimer,
+ if (sta_ds->rmfEnabled &&
+ tx_timer_create(mac_ctx, &sta_ds->pmfSaQueryTimer,
"PMF SA Query timer", lim_pmf_sa_query_timer_handler,
timer_id.value,
SYS_MS_TO_TICKS((retry_interval * 1024) / 1000),
@@ -1518,6 +1519,9 @@
session);
return false;
}
+ if (sta_ds->rmfEnabled)
+ pe_debug("Created pmf timer sta-idx:%d assoc-id:%d",
+ sta_ds->staIndex, sta_ds->assocId);
#endif
if (assoc_req->ExtCap.present) {