Skip to contentSkip to conversation

wifi: iwlwifi: pcie: add support for AX101NGW

PATCH In review Aiden Leong 2 participants 2 messages Jan 6, 2023 – Jan 19, 2023 Intel wireless wifi link (iwlwifi)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 wifi: iwlwifi: pcie: add support for AX101NGW

Fix a bug introduced by:
commit 32ed101aa140 ("iwlwifi: convert all Qu with Jf devices to the new
config table"), so now we pick the FIRST matching config.

---

I split patchset v1 to two standalone patches, since there are not that strongly related to each other.

---
 drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/pcie/drv.c +1 -1
index a46df1320372..5d74adbd49cf 100644
@@ -1461,7 +1461,7 @@ iwl_pci_find_dev_info(u16 device, u16 subsystem_device,
 	if (!num_devices)
 		return NULL;
 
-	for (i = num_devices - 1; i >= 0; i--) {
+	for (i = 0; i < num_devices; i++) {
 		const struct iwl_dev_info *dev_info = &iwl_dev_info_table[i];
 
 		if (dev_info->device != (u16)IWL_CFG_ANY &&
Signature · 1 line
2.39.0
#1 lore raw
Quoted 21 lines · Aiden Leong

Fix a bug introduced by:
commit 32ed101aa140 ("iwlwifi: convert all Qu with Jf devices to the new config table"), so now we pick the FIRST matching config.

---

I split patchset v1 to two standalone patches, since there are not that strongly related to each other.

---
 drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/pcie/drv.c +0 -0
index a46df1320372..5d74adbd49cf 100644
@@ -1461,7 +1461,7 @@ iwl_pci_find_dev_info(u16 device, u16 subsystem_device,
         if (!num_devices)
                 return NULL;
Quoted 6 lines


-       for (i = num_devices - 1; i >= 0; i--) {
+       for (i = 0; i < num_devices; i++) {
                const struct iwl_dev_info *dev_info = &iwl_dev_info_table[i];
                if (dev_info->device != (u16)IWL_CFG_ANY &&

The fix is ok, but please update the subject... It's not only for this specific device, but just fixing the order of scanning iwl_dev_info_table.