summaryrefslogtreecommitdiff
path: root/core/mac/src/pe/lim/lim_assoc_utils.c
diff options
context:
space:
mode:
authorWu Gao <wugao@codeaurora.org>2021-03-04 11:36:22 +0800
committersnandini <snandini@codeaurora.org>2021-03-09 14:53:49 -0800
commitf25f20ec92d701ed4ef6b4bb7b5773464a4dfd58 (patch)
tree1a0e13d00a11bb482ece8a1376a6a65a3fa8b768 /core/mac/src/pe/lim/lim_assoc_utils.c
parente8c045880cf8b17afa5d61661cd80df917c8883e (diff)
downloadqcacld-f25f20ec92d701ed4ef6b4bb7b5773464a4dfd58.tar.gz
qcacld-3.0: Fixed compilation issue when disable mobile router
TDLS related codes won't be compile if disable mobile router, so this change moves below function "lim_add_tdls_sta_he_config" to macro - FEATURE_WLAN_TDLS and avoids compilation issue. Change-Id: I6c46219c5e37712ce412fe3dbcdedc5dfa6bac53 CRs-Fixed: 2891591
Diffstat (limited to 'core/mac/src/pe/lim/lim_assoc_utils.c')
-rw-r--r--core/mac/src/pe/lim/lim_assoc_utils.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/core/mac/src/pe/lim/lim_assoc_utils.c b/core/mac/src/pe/lim/lim_assoc_utils.c
index 2fca40c4b1..5826c0719f 100644
--- a/core/mac/src/pe/lim/lim_assoc_utils.c
+++ b/core/mac/src/pe/lim/lim_assoc_utils.c
@@ -2086,14 +2086,6 @@ static bool lim_is_add_sta_params_he_capable(tpAddStaParams add_sta_params)
{
return add_sta_params->he_capable;
}
-
-static void lim_add_tdls_sta_he_config(tpAddStaParams add_sta_params,
- tpDphHashNode sta_ds)
-{
- pe_debug("Adding tdls he capabilities");
- qdf_mem_copy(&add_sta_params->he_config, &sta_ds->he_config,
- sizeof(add_sta_params->he_config));
-}
#else
static void lim_update_he_stbc_capable(tpAddStaParams add_sta_params)
{}
@@ -2106,12 +2098,24 @@ static bool lim_is_add_sta_params_he_capable(tpAddStaParams add_sta_params)
{
return false;
}
+#endif
+#ifdef FEATURE_WLAN_TDLS
+#ifdef WLAN_FEATURE_11AX
static void lim_add_tdls_sta_he_config(tpAddStaParams add_sta_params,
tpDphHashNode sta_ds)
{
+ pe_debug("Adding tdls he capabilities");
+ qdf_mem_copy(&add_sta_params->he_config, &sta_ds->he_config,
+ sizeof(add_sta_params->he_config));
}
-#endif
+#else
+static void lim_add_tdls_sta_he_config(tpAddStaParams add_sta_params,
+ tpDphHashNode sta_ds)
+{
+}
+#endif /* WLAN_FEATURE_11AX */
+#endif /* FEATURE_WLAN_TDLS */
/**
* lim_add_sta()- called to add an STA context at hardware