diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index b54a30224334b..d8dbc181f3604 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -1709,16 +1709,15 @@ struct hdd_context { struct ieee80211_channel *channels_2ghz; struct ieee80211_channel *channels_5ghz; -#if (defined(CONFIG_BAND_6GHZ) && defined(CFG80211_6GHZ_BAND_SUPPORTED)) || \ - (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)) +#if defined(WLAN_FEATURE_11AX) && \ + (defined(CFG80211_SBAND_IFTYPE_DATA_BACKPORT) || \ + (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0))) struct ieee80211_sband_iftype_data *iftype_data_2g; struct ieee80211_sband_iftype_data *iftype_data_5g; -#endif - #if defined(CONFIG_BAND_6GHZ) && (defined(CFG80211_6GHZ_BAND_SUPPORTED) || \ (KERNEL_VERSION(5, 4, 0) <= LINUX_VERSION_CODE)) - struct ieee80211_sband_iftype_data *iftype_data_6g; +#endif #endif /* Completion variable to indicate Mc Thread Suspended */ struct completion mc_sus_event_var; diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 526ab29a4aba5..25babbdf95bc0 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -15754,8 +15754,9 @@ wlan_hdd_populate_5dot9_chan_info(struct hdd_context *hdd_ctx, uint32_t index) #endif -#if (defined(CONFIG_BAND_6GHZ) && defined(CFG80211_6GHZ_BAND_SUPPORTED)) || \ - (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)) +#if defined(WLAN_FEATURE_11AX) && \ + (defined(CFG80211_SBAND_IFTYPE_DATA_BACKPORT) || \ + (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0))) #if defined(CONFIG_BAND_6GHZ) && (defined(CFG80211_6GHZ_BAND_SUPPORTED) || \ (KERNEL_VERSION(5, 4, 0) <= LINUX_VERSION_CODE)) static QDF_STATUS diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index a28b6c8b6af31..4721cb3e84b7d 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -2087,8 +2087,9 @@ static void hdd_extract_fw_version_info(struct hdd_context *hdd_ctx) HDD_FW_VER_REL_ID(hdd_ctx->target_fw_vers_ext); } -#if (((defined(CONFIG_BAND_6GHZ) && defined(CFG80211_6GHZ_BAND_SUPPORTED)) || \ - (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0))) && defined(WLAN_FEATURE_11AX)) +#if defined(WLAN_FEATURE_11AX) && \ + (defined(CFG80211_SBAND_IFTYPE_DATA_BACKPORT) || \ + (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0))) #if defined(CONFIG_BAND_6GHZ) && (defined(CFG80211_6GHZ_BAND_SUPPORTED) || \ (KERNEL_VERSION(5, 4, 0) <= LINUX_VERSION_CODE)) static void