]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: iwlwifi: cfg: unify Killer 1650s/i with Qu/Hr
authorJohannes Berg <johannes.berg@intel.com>
Fri, 2 May 2025 12:20:25 +0000 (15:20 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Tue, 6 May 2025 19:22:12 +0000 (22:22 +0300)
These configs are the same except for the name, but we
can use a separate per-device name to override the name.
So do that, and remove the separate configs.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250502151751.a0a8ebbd473a.Iad8bff04138538a8bc9f7920077ea24a699b1ed4@changeid
drivers/net/wireless/intel/iwlwifi/cfg/22000.c
drivers/net/wireless/intel/iwlwifi/iwl-config.h
drivers/net/wireless/intel/iwlwifi/pcie/drv.c

index ac137c82f7c59a7c0d54210536dce535e8b0a23a..4affcf079a855fcb41428f70586bbf04eaa8d238 100644 (file)
@@ -257,30 +257,6 @@ const struct iwl_cfg iwl_ax200_cfg_cc = {
        .num_rbds = IWL_NUM_RBDS_22000_HE,
 };
 
-const struct iwl_cfg killer1650s_2ax_cfg_qu_hr = {
-       .name = iwl_ax201_killer_1650s_name,
-       IWL_DEVICE_22500,
-       /*
-        * This device doesn't support receiving BlockAck with a large bitmap
-        * so we need to restrict the size of transmitted aggregation to the
-        * HT size; mac80211 would otherwise pick the HE max (256) by default.
-        */
-       .max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
-       .num_rbds = IWL_NUM_RBDS_22000_HE,
-};
-
-const struct iwl_cfg killer1650i_2ax_cfg_qu_hr = {
-       .name = iwl_ax201_killer_1650i_name,
-       IWL_DEVICE_22500,
-       /*
-        * This device doesn't support receiving BlockAck with a large bitmap
-        * so we need to restrict the size of transmitted aggregation to the
-        * HT size; mac80211 would otherwise pick the HE max (256) by default.
-        */
-       .max_tx_agg_size = IEEE80211_MAX_AMPDU_BUF_HT,
-       .num_rbds = IWL_NUM_RBDS_22000_HE,
-};
-
 MODULE_FIRMWARE(IWL_QU_B_HR_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
 MODULE_FIRMWARE(IWL_QU_C_HR_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
 MODULE_FIRMWARE(IWL_QU_B_JF_B_MODULE_FIRMWARE(IWL_22000_UCODE_API_MAX));
index 127d4dd548acaf34029d5720e42cc96fb8bd6514..a551967d17245f78072cdd9b99782da3a93faecc 100644 (file)
@@ -626,8 +626,6 @@ extern const struct iwl_cfg iwl_qu_hr1;
 extern const struct iwl_cfg iwl_qu_hr;
 extern const struct iwl_cfg iwl_ax200_cfg_cc;
 extern const struct iwl_cfg iwl_ax201_cfg_qu_hr;
-extern const struct iwl_cfg killer1650s_2ax_cfg_qu_hr;
-extern const struct iwl_cfg killer1650i_2ax_cfg_qu_hr;
 extern const struct iwl_cfg killer1650x_2ax_cfg;
 extern const struct iwl_cfg killer1650w_2ax_cfg;
 extern const struct iwl_cfg iwlax210_2ax_cfg_so_jf_b0;
index deff291a43ca977cc943e8353e72c83c06007210..95123cb26de6f7367ec48a6078dd8926c7d4fcd8 100644 (file)
@@ -655,11 +655,9 @@ VISIBLE_IF_IWLWIFI_KUNIT const struct iwl_dev_info iwl_dev_info_table[] = {
                     DEVICE(0x43F0), SUBDEV(0x0078), BW_NO_LIMIT),
        IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, NULL,
                     DEVICE(0x43F0), SUBDEV(0x007C), BW_NO_LIMIT),
-       IWL_DEV_INFO(killer1650s_2ax_cfg_qu_hr,
-                    iwl_ax201_killer_1650s_name,
+       IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, iwl_ax201_killer_1650s_name,
                     DEVICE(0x43F0), SUBDEV(0x1651), BW_NO_LIMIT),
-       IWL_DEV_INFO(killer1650i_2ax_cfg_qu_hr,
-                    iwl_ax201_killer_1650i_name,
+       IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, iwl_ax201_killer_1650i_name,
                     DEVICE(0x43F0), SUBDEV(0x1652), BW_NO_LIMIT),
        IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, NULL,
                     DEVICE(0x43F0), SUBDEV(0x2074), BW_NO_LIMIT),
@@ -675,9 +673,9 @@ VISIBLE_IF_IWLWIFI_KUNIT const struct iwl_dev_info iwl_dev_info_table[] = {
                     DEVICE(0xA0F0), SUBDEV(0x007C), BW_NO_LIMIT),
        IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, NULL,
                     DEVICE(0xA0F0), SUBDEV(0x0A10), BW_NO_LIMIT),
-       IWL_DEV_INFO(killer1650s_2ax_cfg_qu_hr, NULL,
+       IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, iwl_ax201_killer_1650s_name,
                     DEVICE(0xA0F0), SUBDEV(0x1651), BW_NO_LIMIT),
-       IWL_DEV_INFO(killer1650i_2ax_cfg_qu_hr, NULL,
+       IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, iwl_ax201_killer_1650i_name,
                     DEVICE(0xA0F0), SUBDEV(0x1652), BW_NO_LIMIT),
        IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, NULL,
                     DEVICE(0xA0F0), SUBDEV(0x2074), BW_NO_LIMIT),
@@ -697,9 +695,9 @@ VISIBLE_IF_IWLWIFI_KUNIT const struct iwl_dev_info iwl_dev_info_table[] = {
                     DEVICE(0x02F0), SUBDEV(0x007C), BW_NO_LIMIT),
        IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, NULL,
                     DEVICE(0x02F0), SUBDEV(0x0310), BW_NO_LIMIT),
-       IWL_DEV_INFO(killer1650s_2ax_cfg_qu_hr, NULL,
+       IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, iwl_ax201_killer_1650s_name,
                     DEVICE(0x02F0), SUBDEV(0x1651), BW_NO_LIMIT),
-       IWL_DEV_INFO(killer1650i_2ax_cfg_qu_hr, NULL,
+       IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, iwl_ax201_killer_1650i_name,
                     DEVICE(0x02F0), SUBDEV(0x1652), BW_NO_LIMIT),
        IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, NULL,
                     DEVICE(0x02F0), SUBDEV(0x2074), BW_NO_LIMIT),
@@ -715,9 +713,9 @@ VISIBLE_IF_IWLWIFI_KUNIT const struct iwl_dev_info iwl_dev_info_table[] = {
                     DEVICE(0x06F0), SUBDEV(0x007C), BW_NO_LIMIT),
        IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, NULL,
                     DEVICE(0x06F0), SUBDEV(0x0310), BW_NO_LIMIT),
-       IWL_DEV_INFO(killer1650s_2ax_cfg_qu_hr, NULL,
+       IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, iwl_ax201_killer_1650s_name,
                     DEVICE(0x06F0), SUBDEV(0x1651), BW_NO_LIMIT),
-       IWL_DEV_INFO(killer1650i_2ax_cfg_qu_hr, NULL,
+       IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, iwl_ax201_killer_1650i_name,
                     DEVICE(0x06F0), SUBDEV(0x1652), BW_NO_LIMIT),
        IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, NULL,
                     DEVICE(0x06F0), SUBDEV(0x2074), BW_NO_LIMIT),
@@ -733,9 +731,9 @@ VISIBLE_IF_IWLWIFI_KUNIT const struct iwl_dev_info iwl_dev_info_table[] = {
                     DEVICE(0x34F0), SUBDEV(0x007C), BW_NO_LIMIT),
        IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, NULL,
                     DEVICE(0x34F0), SUBDEV(0x0310), BW_NO_LIMIT),
-       IWL_DEV_INFO(killer1650s_2ax_cfg_qu_hr, NULL,
+       IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, iwl_ax201_killer_1650s_name,
                     DEVICE(0x34F0), SUBDEV(0x1651), BW_NO_LIMIT),
-       IWL_DEV_INFO(killer1650i_2ax_cfg_qu_hr, NULL,
+       IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, iwl_ax201_killer_1650i_name,
                     DEVICE(0x34F0), SUBDEV(0x1652), BW_NO_LIMIT),
        IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, NULL,
                     DEVICE(0x34F0), SUBDEV(0x2074), BW_NO_LIMIT),
@@ -752,9 +750,9 @@ VISIBLE_IF_IWLWIFI_KUNIT const struct iwl_dev_info iwl_dev_info_table[] = {
                     DEVICE(0x3DF0), SUBDEV(0x007C), BW_NO_LIMIT),
        IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, NULL,
                     DEVICE(0x3DF0), SUBDEV(0x0310), BW_NO_LIMIT),
-       IWL_DEV_INFO(killer1650s_2ax_cfg_qu_hr, NULL,
+       IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, iwl_ax201_killer_1650s_name,
                     DEVICE(0x3DF0), SUBDEV(0x1651), BW_NO_LIMIT),
-       IWL_DEV_INFO(killer1650i_2ax_cfg_qu_hr, NULL,
+       IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, iwl_ax201_killer_1650i_name,
                     DEVICE(0x3DF0), SUBDEV(0x1652), BW_NO_LIMIT),
        IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, NULL,
                     DEVICE(0x3DF0), SUBDEV(0x2074), BW_NO_LIMIT),
@@ -771,9 +769,9 @@ VISIBLE_IF_IWLWIFI_KUNIT const struct iwl_dev_info iwl_dev_info_table[] = {
                     DEVICE(0x4DF0), SUBDEV(0x007C), BW_NO_LIMIT),
        IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, NULL,
                     DEVICE(0x4DF0), SUBDEV(0x0310), BW_NO_LIMIT),
-       IWL_DEV_INFO(killer1650s_2ax_cfg_qu_hr, NULL,
+       IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, iwl_ax201_killer_1650s_name,
                     DEVICE(0x4DF0), SUBDEV(0x1651), BW_NO_LIMIT),
-       IWL_DEV_INFO(killer1650i_2ax_cfg_qu_hr, NULL,
+       IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, iwl_ax201_killer_1650i_name,
                     DEVICE(0x4DF0), SUBDEV(0x1652), BW_NO_LIMIT),
        IWL_DEV_INFO(iwl_ax201_cfg_qu_hr, NULL,
                     DEVICE(0x4DF0), SUBDEV(0x2074), BW_NO_LIMIT),