From 7b5bee09c61c15b2feea2723654355d69eef20c4 Mon Sep 17 00:00:00 2001 From: Vidyullatha Kanchanapally Date: Thu, 13 Apr 2017 14:00:56 +0530 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_cfg80211.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 034338f770a5..0374a7ce82d2 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -13346,8 +13346,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: