public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] wifi: iwlwifi: pcie: fix the order of scanning iwl_dev_info_table
@ 2023-01-19 17:56 Aiden Leong
  2023-02-07 17:44 ` Greenman, Gregory
  0 siblings, 1 reply; 7+ messages in thread
From: Aiden Leong @ 2023-01-19 17:56 UTC (permalink / raw)
  To: linux-wireless
  Cc: gregory.greenman, kvalo, davem, edumazet, kuba, pabeni,
	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.

Signed-off-by: Aiden Leong <aiden.leong@aibsd.com>
---
 drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
index 99768d6a6032..05764eef15a7 100644
--- a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
+++ b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
@@ -1456,7 +1456,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 &&
-- 
2.39.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-02-03  4:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-19 17:56 [PATCH v3] wifi: iwlwifi: pcie: fix the order of scanning iwl_dev_info_table Aiden Leong
2023-02-07 17:44 ` Greenman, Gregory
2023-02-07 21:14   ` Aiden Leong
2023-03-10  5:14     ` Aiden Leong
2023-03-12  9:47       ` Greenman, Gregory
2023-03-12  9:52         ` Aiden Leong
2024-02-03  3:59         ` Aiden Leong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox