summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidyullatha Kanchanapally <vidyullatha@codeaurora.org>2017-04-13 14:00:56 +0530
committerspuligil <spuligil@codeaurora.org>2017-04-15 12:50:37 -0700
commita4b6048242ce4f7353f830a524c5e0f5ed21d63f (patch)
tree4ffb37c16e1b6ac965b65bdf8ae81a090697a7e6
parent49bc85f9adee034c02addfb706d64c283ced470a (diff)
qcacld-3.0: Define AKM suites only if not present in kernel
Define AKM suites WLAN_AKM_SUITE_8021X_SHA256 and WLAN_AKM_SUITE_PSK_SHA256 only if not defined in kernel header in order to avoid compilation issues because of a previous definition. Change-Id: I779a9991763797541fc142e980f717a48fe3bd26 CRs-Fixed: 2033185
-rw-r--r--core/hdd/src/wlan_hdd_cfg80211.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c
index fea826943571..2ad5a3522684 100644
--- a/core/hdd/src/wlan_hdd_cfg80211.c
+++ b/core/hdd/src/wlan_hdd_cfg80211.c
@@ -13426,8 +13426,12 @@ static int wlan_hdd_set_akm_suite(hdd_adapter_t *pAdapter, u32 key_mgmt)
{
hdd_wext_state_t *pWextState = WLAN_HDD_GET_WEXT_STATE_PTR(pAdapter);
+#ifndef WLAN_AKM_SUITE_8021X_SHA256
#define WLAN_AKM_SUITE_8021X_SHA256 0x000FAC05
+#endif
+#ifndef WLAN_AKM_SUITE_PSK_SHA256
#define WLAN_AKM_SUITE_PSK_SHA256 0x000FAC06
+#endif
/*set key mgmt type */
switch (key_mgmt) {
case WLAN_AKM_SUITE_PSK: