Browse Source

qcacld-3.0: Fix compilation issue when ROAM_OFFLOAD disabled

When ROAM_OFFLOAD feature is not enabled facing compilation issue for
smk_get_pmk_inf() api, adjust or move api to header file to resolve
compilation error.

Change-Id: I3eb03657f8ee5a68fa25f0d99a4dddc44cbaac02
Karthik Kantamneni 6 years ago
parent
commit
205482978d
2 changed files with 5 additions and 5 deletions
  1. 5 0
      core/sme/inc/sme_api.h
  2. 0 5
      core/sme/src/common/sme_api.c

+ 5 - 0
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
 
 /**

+ 0 - 5
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