From 87f0139d6ae6641eb78dd6468cc1cd97fd2ae427 Mon Sep 17 00:00:00 2001 From: Yingying Tang Date: Wed, 22 Mar 2017 17:29:54 +0800 Subject: [PATCH] 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 --- core/sme/src/csr/csr_api_roam.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c index 34f161048438..e6a2cc05a73e 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/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)