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
This commit is contained in:
Yingying Tang 2017-03-22 17:29:54 +08:00 • committed by snandini
commit 87f0139d6a

View file

@ -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)