wifi: iwlwifi: mvm: Declare HE/EHT capabilities support for P2P interfaces
authorIlan Peer <ilan.peer@intel.com>
Wed, 20 Mar 2024 21:26:33 +0000 (23:26 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Mar 2024 14:39:55 +0000 (15:39 +0100)
Declare HE/EHT capabilities support also for P2P client and P2P GO
interface types.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240320232419.37fdea8e55a3.If074bdc6c6cd55b76c3421417a987d21ab6bb041@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c

index 03ff6ee546ce11aa36960755ddad44fa61655960..149903f5256730f1644c9484f5beb0f6277936f9 100644 (file)
@@ -599,7 +599,8 @@ static const u8 iwl_vendor_caps[] = {
 
 static const struct ieee80211_sband_iftype_data iwl_he_eht_capa[] = {
        {
-               .types_mask = BIT(NL80211_IFTYPE_STATION),
+               .types_mask = BIT(NL80211_IFTYPE_STATION) |
+                             BIT(NL80211_IFTYPE_P2P_CLIENT),
                .he_cap = {
                        .has_he = true,
                        .he_cap_elem = {
@@ -755,7 +756,8 @@ static const struct ieee80211_sband_iftype_data iwl_he_eht_capa[] = {
                },
        },
        {
-               .types_mask = BIT(NL80211_IFTYPE_AP),
+               .types_mask = BIT(NL80211_IFTYPE_AP) |
+                             BIT(NL80211_IFTYPE_P2P_GO),
                .he_cap = {
                        .has_he = true,
                        .he_cap_elem = {
@@ -908,7 +910,8 @@ iwl_nvm_fixup_sband_iftd(struct iwl_trans *trans,
                         u8 tx_chains, u8 rx_chains,
                         const struct iwl_fw *fw)
 {
-       bool is_ap = iftype_data->types_mask & BIT(NL80211_IFTYPE_AP);
+       bool is_ap = iftype_data->types_mask & (BIT(NL80211_IFTYPE_AP) |
+                                               BIT(NL80211_IFTYPE_P2P_GO));
        bool no_320;
 
        no_320 = (!trans->trans_cfg->integrated &&