From f1ee195ddf6546637d355fb6ddcba85d75d82627 Mon Sep 17 00:00:00 2001 From: Grant Erickson Date: Wed, 22 Mar 2023 11:54:23 -0700 Subject: [PATCH] Avoid 'warning: "CFG80211_DEL_STA_V2" redefined' messages. In DEY Linux kernels, this symbol may already be backported and defined. --- CORE/HDD/inc/wlan_hdd_cfg80211.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CORE/HDD/inc/wlan_hdd_cfg80211.h b/CORE/HDD/inc/wlan_hdd_cfg80211.h index 2413a48d7..c1bb6dd8a 100644 --- a/CORE/HDD/inc/wlan_hdd_cfg80211.h +++ b/CORE/HDD/inc/wlan_hdd_cfg80211.h @@ -2928,8 +2928,10 @@ 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)) +#if !defined(CFG80211_DEL_STA_V2) #define CFG80211_DEL_STA_V2 #endif +#endif #ifdef CFG80211_DEL_STA_V2 int wlan_hdd_cfg80211_del_station(struct wiphy *wiphy,