wifi: iwlwifi: cfg: separate 22000/BZ family HT params
authorJohannes Berg <johannes.berg@intel.com>
Wed, 5 Feb 2025 12:55:37 +0000 (14:55 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 11 Feb 2025 10:59:47 +0000 (11:59 +0100)
We're adding a new IWLMLD opmode for just BZ and later
devices. If that's enabled but IWLMVM isn't, the build
fails because 22000 family configs aren't built but BZ
and later refer to it. Rather than trying to make some
new file to build it in all cases, just copy the small
struct.

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/20250205145347.1d6186c23bee.I3c61a6c9e0db3ba6eea4dac63e1547945ad01703@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/cfg/bz.c
drivers/net/wireless/intel/iwlwifi/cfg/dr.c
drivers/net/wireless/intel/iwlwifi/cfg/sc.c
drivers/net/wireless/intel/iwlwifi/iwl-config.h

index 074b2c9ea003b29a9cb36e0e58f6d5c46980de58..64a5bbb45c83677be61de31ab75eefef0f5f0092 100644 (file)
@@ -50,6 +50,13 @@ static const struct iwl_base_params iwl_bz_base_params = {
        .pcie_l1_allowed = true,
 };
 
+const struct iwl_ht_params iwl_bz_ht_params = {
+       .stbc = true,
+       .ldpc = true,
+       .ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ) |
+                     BIT(NL80211_BAND_6GHZ),
+};
+
 #define IWL_DEVICE_BZ_COMMON                                           \
        .ucode_api_max = IWL_BZ_UCODE_API_MAX,                  \
        .ucode_api_min = IWL_BZ_UCODE_API_MIN,                  \
@@ -113,7 +120,7 @@ static const struct iwl_base_params iwl_bz_base_params = {
 
 #define IWL_DEVICE_BZ                                                  \
        IWL_DEVICE_BZ_COMMON,                                           \
-       .ht_params = &iwl_22000_ht_params
+       .ht_params = &iwl_bz_ht_params
 
 /*
  * This size was picked according to 8 MSDUs inside 512 A-MSDUs in an
index ab7c0f8d54f4255507d5290638161e616244cc2a..69176b59b4deecdada21b4f556f765540a9d2f2b 100644 (file)
@@ -114,7 +114,7 @@ static const struct iwl_base_params iwl_dr_base_params = {
        .uhb_supported = true,                                          \
        .features = IWL_TX_CSUM_NETIF_FLAGS | NETIF_F_RXCSUM,           \
        .num_rbds = IWL_NUM_RBDS_DR_EHT,                                \
-       .ht_params = &iwl_22000_ht_params
+       .ht_params = &iwl_bz_ht_params
 
 /*
  * This size was picked according to 8 MSDUs inside 512 A-MSDUs in an
index c9eeb3f6704e2c9a9cf5c97aa053e0958568e256..eee47af728d7fea8836d027b94db27a95a8959db 100644 (file)
@@ -121,7 +121,7 @@ static const struct iwl_base_params iwl_sc_base_params = {
        .uhb_supported = true,                                          \
        .features = IWL_TX_CSUM_NETIF_FLAGS | NETIF_F_RXCSUM,           \
        .num_rbds = IWL_NUM_RBDS_SC_EHT,                                \
-       .ht_params = &iwl_22000_ht_params
+       .ht_params = &iwl_bz_ht_params
 
 /*
  * This size was picked according to 8 MSDUs inside 512 A-MSDUs in an
index 91275680dd2cb24f50ababcc1cd81c8732dbbfb5..c2caaf875c117a837460ff9efb732fb1d4482e93 100644 (file)
@@ -660,6 +660,8 @@ extern const struct iwl_cfg iwl_cfg_ma;
 extern const struct iwl_cfg iwl_cfg_so_a0_hr_a0;
 extern const struct iwl_cfg iwl_cfg_quz_a0_hr_b0;
 
+extern const struct iwl_ht_params iwl_bz_ht_params;
+
 extern const struct iwl_cfg iwl_cfg_bz;
 extern const struct iwl_cfg iwl_cfg_gl;