Explorar el Código

qcacld-3.0: Fix compilation error when WLAN_FEATURE_ROAM_OFFLOAD is disabled

csr_roam_roaming_offload_timer_action() is used only when
WLAN_FEATURE_ROAM_OFFLOAD is enabled. But it is defined out of
WLAN_FEATURE_ROAM_OFFLOAD. So there is a compilation error that
csr_roam_roaming_offload_timer_action() is defined but not used when
WLAN_FEATURE_ROAM_OFFLOAD is disabled. Add fix to resolve this issue.

Change-Id: I31036a91df3d2799d53fb64f73dbae847bee97bf
CRs-Fixed: 2023165
Yingying Tang hace 8 años
padre
commit
87f0139d6a
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      core/sme/src/csr/csr_api_roam.c

+ 4 - 0
core/sme/src/csr/csr_api_roam.c

@@ -205,8 +205,10 @@ static QDF_STATUS csr_roam_start_roaming_timer(tpAniSirGlobal pMac,
 static QDF_STATUS csr_roam_stop_roaming_timer(tpAniSirGlobal pMac,
 					      uint32_t sessionId);
 static void csr_roam_roaming_timer_handler(void *pv);
+#ifdef WLAN_FEATURE_ROAM_OFFLOAD
 static void csr_roam_roaming_offload_timer_action(tpAniSirGlobal mac_ctx,
 		uint32_t interval, uint8_t session_id, uint8_t action);
+#endif
 static void csr_roam_roaming_offload_timeout_handler(void *timer_data);
 static QDF_STATUS csr_roam_start_wait_for_key_timer(tpAniSirGlobal pMac,
 						uint32_t interval);
@@ -11919,6 +11921,7 @@ void csr_roam_wait_for_key_time_out_handler(void *pv)
 
 }
 
+#ifdef WLAN_FEATURE_ROAM_OFFLOAD
 /**
  * csr_roam_roaming_offload_timer_action() - API to start/stop the timer
  * @mac_ctx: MAC Context
@@ -11959,6 +11962,7 @@ void csr_roam_roaming_offload_timer_action(tpAniSirGlobal mac_ctx,
 		qdf_mc_timer_stop(&csr_session->roaming_offload_timer);
 
 }
+#endif
 
 static QDF_STATUS csr_roam_start_wait_for_key_timer(tpAniSirGlobal pMac,
 							uint32_t interval)