summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVignesh Viswanathan <viswanat@codeaurora.org>2017-09-18 17:12:04 +0530
committersnandini <snandini@codeaurora.org>2017-09-19 00:58:10 -0700
commitc22ae9cfd5c84174db8c8a69f541fc3c60552ed3 (patch)
tree3bfe55bfb91cea52dec2125d6199ef308a3b9c0d
parent31c49b5da97e3e79370ac97d5ad18ac8d0e110bb (diff)
qcacld-3.0: Fix Compilation issues when FILS is disabled in Kbuild
Currently with CONFIG_WLAN_FEATURE_FILS set to n in Kbuild, compilation issues are seen in the function hdd_save_gtk_params due to usage of fils related structure without the compilation flag checked. Add new definition for the function hdd_save_gtk_params to fix compilation issues with hdd_save_gtk_params set to n Change-Id: Iab96c97df50f50c601ba52060440668373f74744 CRs-Fixed: 2111640
-rw-r--r--core/hdd/src/wlan_hdd_assoc.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c
index d7b5dd524812..3dda3e9be4da 100644
--- a/core/hdd/src/wlan_hdd_assoc.c
+++ b/core/hdd/src/wlan_hdd_assoc.c
@@ -1956,6 +1956,7 @@ static inline void hdd_send_roamed_ind(struct net_device *dev,
#endif
#if defined(WLAN_FEATURE_ROAM_OFFLOAD)
+#if defined(WLAN_FEATURE_FILS_SK)
void hdd_save_gtk_params(hdd_adapter_t *adapter,
tCsrRoamInfo *csr_roam_info, bool is_reassoc)
{
@@ -1981,6 +1982,27 @@ void hdd_save_gtk_params(hdd_adapter_t *adapter,
hdd_debug("Kek len %d", kek_len);
}
+#else
+void hdd_save_gtk_params(hdd_adapter_t *adapter,
+ tCsrRoamInfo *csr_roam_info, bool is_reassoc)
+{
+ uint8_t *kek;
+ uint32_t kek_len;
+
+ /*
+ * is_reassoc is set to true always for Legacy GTK offload
+ * case, It is false only for FILS case
+ */
+ kek = csr_roam_info->kek;
+ kek_len = csr_roam_info->kek_len;
+
+ wlan_hdd_save_gtk_offload_params(adapter, NULL, kek, kek_len,
+ csr_roam_info->replay_ctr,
+ true, GTK_OFFLOAD_ENABLE);
+
+ hdd_debug("Kek len %d", kek_len);
+}
+#endif
#endif
/**
* hdd_send_re_assoc_event() - send reassoc event