summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc_zding <c_zding@qti.qualcomm.com>2016-03-25 10:44:22 +0800
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-04-15 13:39:51 +0530
commit29e01ca88ee4cae043c239f1bc21c8408d23faef (patch)
tree6918e569667d89893d64953951ec89b4efccba7a
parent2eecc1b4ee151d9c767c7e1755b2bbc2ae214c7d (diff)
qcacld-2.0: Update compiling options for Kernel upgrade
Enable CFG80211_DEL_STA_V2/SUPPORT_WDEV_CFG80211_VENDOR_EVENT_ALLOC for kernel 4.0/4.1. Change-Id: I389488bc8d098c7e61de2de62a5770f420e2614c CRs-Fixed: 990066
-rw-r--r--CORE/HDD/inc/wlan_hdd_cfg80211.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/CORE/HDD/inc/wlan_hdd_cfg80211.h b/CORE/HDD/inc/wlan_hdd_cfg80211.h
index 3ab6fc2e6711..d8e60f11b71c 100644
--- a/CORE/HDD/inc/wlan_hdd_cfg80211.h
+++ b/CORE/HDD/inc/wlan_hdd_cfg80211.h
@@ -1874,6 +1874,9 @@ void hdd_select_cbmode(hdd_adapter_t *pAdapter, v_U8_t operationChannel,
v_U8_t* wlan_hdd_cfg80211_get_ie_ptr(const v_U8_t *pIes,
int length,
v_U8_t eid);
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0))
+#define CFG80211_DEL_STA_V2
+#endif
#ifdef CFG80211_DEL_STA_V2
int wlan_hdd_cfg80211_del_station(struct wiphy *wiphy,
@@ -1937,6 +1940,10 @@ int wlan_hdd_disable_dfs_chan_scan(hdd_context_t *pHddCtx,
int wlan_hdd_cfg80211_update_apies(hdd_adapter_t* pHostapdAdapter);
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0))
+#define SUPPORT_WDEV_CFG80211_VENDOR_EVENT_ALLOC
+#endif
+
#if !(defined (SUPPORT_WDEV_CFG80211_VENDOR_EVENT_ALLOC))
static inline struct sk_buff *
backported_cfg80211_vendor_event_alloc(struct wiphy *wiphy,