wifi: mac80211_hwsim: claim DBE capability

Claim DBE capability in UHR MAC capabilities, hostapd will
have to sort out the actual DBE capabilities based on the
EHT capabilities.

Link: https://patch.msgid.link/20260529102644.4db84674e8c2.I8731be8ea589c94ece5623e7e716cbbc03f50466@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Johannes Berg
2026-05-29 10:25:09 +02:00
parent 14b1a85518
commit ade3b16a01

View File

@@ -4708,6 +4708,7 @@ static const struct ieee80211_sband_iftype_data sband_capa_2ghz[] = {
.has_uhr = true,
.mac.mac_cap = {
[0] = IEEE80211_UHR_MAC_CAP0_NPCA_SUPP,
[1] = IEEE80211_UHR_MAC_CAP1_DBE_SUPP,
},
.phy.cap = cpu_to_le32(IEEE80211_UHR_PHY_CAP_ELR_RX |
IEEE80211_UHR_PHY_CAP_ELR_TX),
@@ -4885,6 +4886,7 @@ static const struct ieee80211_sband_iftype_data sband_capa_5ghz[] = {
.has_uhr = true,
.mac.mac_cap = {
[0] = IEEE80211_UHR_MAC_CAP0_NPCA_SUPP,
[1] = IEEE80211_UHR_MAC_CAP1_DBE_SUPP,
},
.phy.cap = cpu_to_le32(IEEE80211_UHR_PHY_CAP_ELR_TX),
},
@@ -5017,6 +5019,7 @@ static const struct ieee80211_sband_iftype_data sband_capa_5ghz[] = {
.has_uhr = true,
.mac.mac_cap = {
[0] = IEEE80211_UHR_MAC_CAP0_NPCA_SUPP,
[1] = IEEE80211_UHR_MAC_CAP1_DBE_SUPP,
},
.phy.cap = cpu_to_le32(IEEE80211_UHR_PHY_CAP_ELR_RX),
},
@@ -5217,6 +5220,7 @@ static const struct ieee80211_sband_iftype_data sband_capa_6ghz[] = {
.has_uhr = true,
.mac.mac_cap = {
[0] = IEEE80211_UHR_MAC_CAP0_NPCA_SUPP,
[1] = IEEE80211_UHR_MAC_CAP1_DBE_SUPP,
},
.phy.cap = cpu_to_le32(IEEE80211_UHR_PHY_CAP_ELR_TX),
},
@@ -5370,6 +5374,7 @@ static const struct ieee80211_sband_iftype_data sband_capa_6ghz[] = {
.has_uhr = true,
.mac.mac_cap = {
[0] = IEEE80211_UHR_MAC_CAP0_NPCA_SUPP,
[1] = IEEE80211_UHR_MAC_CAP1_DBE_SUPP,
},
.phy.cap = cpu_to_le32(IEEE80211_UHR_PHY_CAP_ELR_RX),
},