diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index 1139c83ca4bc..a20c1c067149 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -520,6 +520,11 @@ void sme_get_pmk_info(mac_handle_t mac_handle, uint8_t session_id, QDF_STATUS sme_roam_set_psk_pmk(mac_handle_t mac_handle, uint8_t sessionId, uint8_t *pPSK_PMK, size_t pmk_len); +#else +static inline +void sme_get_pmk_info(mac_handle_t mac_handle, uint8_t session_id, + tPmkidCacheInfo *pmk_cache) +{} #endif /** diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 7099816f5dad..93128827023c 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -3131,11 +3131,6 @@ void sme_get_pmk_info(mac_handle_t mac_handle, uint8_t session_id, sme_release_global_lock(&mac_ctx->sme); } } -#else -static inline -void sme_get_pmk_info(mac_handle_t mac_handle, uint8_t session_id, - tPmkidCacheInfo *pmk_cache) -{} #endif #ifdef WLAN_FEATURE_ROAM_OFFLOAD