Skip to content

Commit 5a8c31a

Browse files
lucacoelhoKalle Valo
authored andcommitted
iwlwifi: pcie: fix recognition of QuZ devices
If the HW revision of Qu devices we found is QuZ, then we need to switch the configuration accordingly in order to use the correct FW. Add a block of ifs in order do that. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
1 parent 17e40e6 commit 5a8c31a

File tree

1 file changed

+17
-0
lines changed
  • drivers/net/wireless/intel/iwlwifi/pcie

1 file changed

+17
-0
lines changed

drivers/net/wireless/intel/iwlwifi/pcie/drv.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,23 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
10631063
else if (iwl_trans->cfg == &iwl9560_2ac_160_cfg_qu_b0_jf_b0)
10641064
iwl_trans->cfg = &iwl9560_2ac_160_cfg_qu_c0_jf_b0;
10651065
}
1066+
1067+
/* same thing for QuZ... */
1068+
if (iwl_trans->hw_rev == CSR_HW_REV_TYPE_QUZ) {
1069+
if (cfg == &iwl_ax101_cfg_qu_hr)
1070+
cfg = &iwl_ax101_cfg_quz_hr;
1071+
else if (cfg == &iwl_ax201_cfg_qu_hr)
1072+
cfg = &iwl_ax201_cfg_quz_hr;
1073+
else if (cfg == &iwl9461_2ac_cfg_qu_b0_jf_b0)
1074+
cfg = &iwl9461_2ac_cfg_quz_a0_jf_b0_soc;
1075+
else if (cfg == &iwl9462_2ac_cfg_qu_b0_jf_b0)
1076+
cfg = &iwl9462_2ac_cfg_quz_a0_jf_b0_soc;
1077+
else if (cfg == &iwl9560_2ac_cfg_qu_b0_jf_b0)
1078+
cfg = &iwl9560_2ac_cfg_quz_a0_jf_b0_soc;
1079+
else if (cfg == &iwl9560_2ac_160_cfg_qu_b0_jf_b0)
1080+
cfg = &iwl9560_2ac_160_cfg_quz_a0_jf_b0_soc;
1081+
}
1082+
10661083
#endif
10671084

10681085
pci_set_drvdata(pdev, iwl_trans);

0 commit comments

Comments
 (0)