]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: mac80211_hwsim: advertise NPCA capability
authorJohannes Berg <johannes.berg@intel.com>
Tue, 12 May 2026 19:47:42 +0000 (22:47 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 20 May 2026 10:02:42 +0000 (12:02 +0200)
This doesn't really do anything, but we can advertise it and then
check that the AP can be configured and client can connect, etc.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260512224724.abfd51f480b7.I2024d7fc8067a0fca26234f312937cc764b660f4@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/virtual/mac80211_hwsim_main.c

index ec90da265b9ea1b43211e8a4b278710869de5142..8d4de9d282b0cab45166fbd023a9780731a7d0b6 100644 (file)
@@ -4554,6 +4554,9 @@ static const struct ieee80211_sband_iftype_data sband_capa_2ghz[] = {
                },
                .uhr_cap = {
                        .has_uhr = true,
+                       .mac.mac_cap = {
+                               [0] = IEEE80211_UHR_MAC_CAP0_NPCA_SUPP,
+                       },
                        .phy.cap = IEEE80211_UHR_PHY_CAP_ELR_RX |
                                   IEEE80211_UHR_PHY_CAP_ELR_TX,
                },
@@ -4667,6 +4670,9 @@ static const struct ieee80211_sband_iftype_data sband_capa_2ghz[] = {
                },
                .uhr_cap = {
                        .has_uhr = true,
+                       .mac.mac_cap = {
+                               [0] = IEEE80211_UHR_MAC_CAP0_NPCA_SUPP,
+                       },
                        .phy.cap = IEEE80211_UHR_PHY_CAP_ELR_RX |
                                   IEEE80211_UHR_PHY_CAP_ELR_TX,
                },
@@ -4841,6 +4847,9 @@ static const struct ieee80211_sband_iftype_data sband_capa_5ghz[] = {
                },
                .uhr_cap = {
                        .has_uhr = true,
+                       .mac.mac_cap = {
+                               [0] = IEEE80211_UHR_MAC_CAP0_NPCA_SUPP,
+                       },
                        .phy.cap = IEEE80211_UHR_PHY_CAP_ELR_RX |
                                   IEEE80211_UHR_PHY_CAP_ELR_TX,
                },
@@ -4971,6 +4980,9 @@ static const struct ieee80211_sband_iftype_data sband_capa_5ghz[] = {
                },
                .uhr_cap = {
                        .has_uhr = true,
+                       .mac.mac_cap = {
+                               [0] = IEEE80211_UHR_MAC_CAP0_NPCA_SUPP,
+                       },
                        .phy.cap = IEEE80211_UHR_PHY_CAP_ELR_RX |
                                   IEEE80211_UHR_PHY_CAP_ELR_TX,
                },
@@ -5169,6 +5181,9 @@ static const struct ieee80211_sband_iftype_data sband_capa_6ghz[] = {
                },
                .uhr_cap = {
                        .has_uhr = true,
+                       .mac.mac_cap = {
+                               [0] = IEEE80211_UHR_MAC_CAP0_NPCA_SUPP,
+                       },
                        .phy.cap = IEEE80211_UHR_PHY_CAP_ELR_RX |
                                   IEEE80211_UHR_PHY_CAP_ELR_TX,
                },
@@ -5320,6 +5335,9 @@ static const struct ieee80211_sband_iftype_data sband_capa_6ghz[] = {
                },
                .uhr_cap = {
                        .has_uhr = true,
+                       .mac.mac_cap = {
+                               [0] = IEEE80211_UHR_MAC_CAP0_NPCA_SUPP,
+                       },
                        .phy.cap = IEEE80211_UHR_PHY_CAP_ELR_RX |
                                   IEEE80211_UHR_PHY_CAP_ELR_TX,
                },
@@ -5416,6 +5434,9 @@ static const struct ieee80211_sband_iftype_data sband_capa_6ghz[] = {
                },
                .uhr_cap = {
                        .has_uhr = true,
+                       .mac.mac_cap = {
+                               [0] = IEEE80211_UHR_MAC_CAP0_NPCA_SUPP,
+                       },
                        .phy.cap = IEEE80211_UHR_PHY_CAP_ELR_RX |
                                   IEEE80211_UHR_PHY_CAP_ELR_TX,
                },