summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingying Tang <yintang@codeaurora.org>2017-03-22 17:29:54 +0800
committerSandeep Puligilla <spuligil@codeaurora.org>2017-03-24 23:18:58 -0700
commit18aa85def164b0bd9166e80f6ec5d3c5ab057969 (patch)
tree2ccd6fecdc4ca8a61cea9b9bc65d83a79d0bc9d4
parentded14ab4cef7a7835ac3b52d54fc2347c4448e9c (diff)
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
-rw-r--r--core/sme/src/csr/csr_api_roam.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c
index 6198ba3e3f5d..cf317aa93ad0 100644
--- a/core/sme/src/csr/csr_api_roam.c
+++ b/core/sme/src/csr/csr_api_roam.c
@@ -213,8 +213,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);
QDF_STATUS csr_roam_start_wait_for_key_timer(tpAniSirGlobal pMac, uint32_t interval);
static void csr_roam_wait_for_key_time_out_handler(void *pv);
@@ -11714,6 +11716,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
@@ -11755,6 +11758,7 @@ void csr_roam_roaming_offload_timer_action(tpAniSirGlobal mac_ctx,
return;
}
+#endif
QDF_STATUS csr_roam_start_wait_for_key_timer(tpAniSirGlobal pMac, uint32_t interval)
{