diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 5ea52dd9ab..8b32930b80 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -15307,7 +15307,7 @@ QDF_STATUS sme_set_del_pmkid_cache(mac_handle_t mac_handle, uint8_t session_id, qdf_mem_set(pmk_cache, sizeof(*pmk_cache), 0); - pmk_cache->session_id = session_id; + pmk_cache->vdev_id = session_id; if (!pmk_cache_info) goto send_flush_cmd; diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index a10fc9bf04..be8a896d65 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -8661,8 +8661,7 @@ static QDF_STATUS wma_mc_process_msg(struct scheduler_msg *msg) qdf_mem_free(msg->bodyptr); break; case SIR_HAL_SET_DEL_PMKID_CACHE: - wma_set_del_pmkid_cache(wma_handle, - (struct wmi_unified_pmk_cache *) msg->bodyptr); + wma_set_del_pmkid_cache(wma_handle, msg->bodyptr); qdf_mem_free(msg->bodyptr); break; case SIR_HAL_HLP_IE_INFO: