]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: mac80211_hwsim: advertise basic UHR support
authorJohannes Berg <johannes.berg@intel.com>
Fri, 20 Mar 2026 08:16:28 +0000 (10:16 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 24 Mar 2026 15:30:22 +0000 (16:30 +0100)
Just add support for ELR, and nothing else since the spec
isn't really all that well-specified yet.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260320101624.77af6463920e.I257e525a461c350bed87cfaefc52de25e37afcfb@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/virtual/mac80211_hwsim.c

index 82adcc848189980b137547df7a5f8a5d7952f247..fdadc6fa89bd042d30210ec38a20d80b1e459c5f 100644 (file)
@@ -4641,6 +4641,11 @@ static const struct ieee80211_sband_iftype_data sband_capa_2ghz[] = {
                        },
                        /* PPE threshold information is not supported */
                },
+               .uhr_cap = {
+                       .has_uhr = true,
+                       .phy.cap = IEEE80211_UHR_PHY_CAP_ELR_RX |
+                                  IEEE80211_UHR_PHY_CAP_ELR_TX,
+               },
        },
        {
                .types_mask = BIT(NL80211_IFTYPE_AP) |
@@ -4749,6 +4754,11 @@ static const struct ieee80211_sband_iftype_data sband_capa_2ghz[] = {
                        },
                        /* PPE threshold information is not supported */
                },
+               .uhr_cap = {
+                       .has_uhr = true,
+                       .phy.cap = IEEE80211_UHR_PHY_CAP_ELR_RX |
+                                  IEEE80211_UHR_PHY_CAP_ELR_TX,
+               },
        },
 #ifdef CONFIG_MAC80211_MESH
        {
@@ -4918,6 +4928,11 @@ static const struct ieee80211_sband_iftype_data sband_capa_5ghz[] = {
                        },
                        /* PPE threshold information is not supported */
                },
+               .uhr_cap = {
+                       .has_uhr = true,
+                       .phy.cap = IEEE80211_UHR_PHY_CAP_ELR_RX |
+                                  IEEE80211_UHR_PHY_CAP_ELR_TX,
+               },
        },
        {
                .types_mask = BIT(NL80211_IFTYPE_AP) |
@@ -5043,6 +5058,11 @@ static const struct ieee80211_sband_iftype_data sband_capa_5ghz[] = {
                        },
                        /* PPE threshold information is not supported */
                },
+               .uhr_cap = {
+                       .has_uhr = true,
+                       .phy.cap = IEEE80211_UHR_PHY_CAP_ELR_RX |
+                                  IEEE80211_UHR_PHY_CAP_ELR_TX,
+               },
        },
 #ifdef CONFIG_MAC80211_MESH
        {
@@ -5236,6 +5256,11 @@ static const struct ieee80211_sband_iftype_data sband_capa_6ghz[] = {
                        },
                        /* PPE threshold information is not supported */
                },
+               .uhr_cap = {
+                       .has_uhr = true,
+                       .phy.cap = IEEE80211_UHR_PHY_CAP_ELR_RX |
+                                  IEEE80211_UHR_PHY_CAP_ELR_TX,
+               },
        },
        {
                .types_mask = BIT(NL80211_IFTYPE_AP) |
@@ -5382,6 +5407,11 @@ static const struct ieee80211_sband_iftype_data sband_capa_6ghz[] = {
                        },
                        /* PPE threshold information is not supported */
                },
+               .uhr_cap = {
+                       .has_uhr = true,
+                       .phy.cap = IEEE80211_UHR_PHY_CAP_ELR_RX |
+                                  IEEE80211_UHR_PHY_CAP_ELR_TX,
+               },
        },
 #ifdef CONFIG_MAC80211_MESH
        {
@@ -5473,6 +5503,11 @@ static const struct ieee80211_sband_iftype_data sband_capa_6ghz[] = {
                        },
                        /* PPE threshold information is not supported */
                },
+               .uhr_cap = {
+                       .has_uhr = true,
+                       .phy.cap = IEEE80211_UHR_PHY_CAP_ELR_RX |
+                                  IEEE80211_UHR_PHY_CAP_ELR_TX,
+               },
        },
 #endif
 };