From patchwork Mon Jan 2 02:40:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aiden Leong X-Patchwork-Id: 13086517 X-Patchwork-Delegate: miriam.rachel.korenblit@intel.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 514B4C3DA7D for ; Mon, 2 Jan 2023 03:04:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229788AbjABCkc (ORCPT ); Sun, 1 Jan 2023 21:40:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjABCkc (ORCPT ); Sun, 1 Jan 2023 21:40:32 -0500 Received: from out20-135.mail.aliyun.com (out20-135.mail.aliyun.com [115.124.20.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D75F9DEF for ; Sun, 1 Jan 2023 18:40:30 -0800 (PST) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.693145|0.3908663;BR=01201311R361S06rulernew998_84748_2000303;CH=blue;DM=|AD|false|;DS=CONTINUE|ham_system_inform|0.0129092-0.000629568-0.986461;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047205;MF=aiden.leong@aibsd.com;NM=1;PH=DS;RN=8;RT=8;SR=0;TI=SMTPD_---.QiPcDg-_1672627227; Received: from localhost.localdomain(mailfrom:aiden.leong@aibsd.com fp:SMTPD_---.QiPcDg-_1672627227) by smtp.aliyun-inc.com; Mon, 02 Jan 2023 10:40:28 +0800 From: Aiden Leong To: linux-wireless@vger.kernel.org Cc: gregory.greenman@intel.com, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Aiden Leong Subject: [PATCH 1/2] iwlwifi: pcie: add support for AX101NGW Date: Mon, 2 Jan 2023 10:40:21 +0800 Message-Id: <20230102024021.2900-1-aiden.leong@aibsd.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org AX101NGW(0x4DF0, 0x0244) should have tx_with_siso_diversity unset. Signed-off-by: Aiden Leong --- Ref Commit: 9352ed0165ff4313ab340c979446c3d64c531f7a Tested on my own device. --- drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c index 99768d6a6032..a46df1320372 100644 --- a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c @@ -986,6 +986,11 @@ static const struct iwl_dev_info iwl_dev_info_table[] = { iwl_qu_c0_hr_b0, iwl_ax201_name), /* QuZ */ + _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, + IWL_CFG_MAC_TYPE_QUZ, SILICON_B_STEP, + IWL_CFG_RF_TYPE_HR1, IWL_CFG_RF_ID_HR1, + IWL_CFG_NO_160, IWL_CFG_CORES_BT, IWL_CFG_NO_CDB, IWL_CFG_NO_JACKET, + iwl_cfg_quz_a0_hr_b0, iwl_ax101_name), _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY, IWL_CFG_MAC_TYPE_QUZ, IWL_CFG_ANY, IWL_CFG_RF_TYPE_HR1, IWL_CFG_ANY, From patchwork Mon Jan 2 02:40:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aiden Leong X-Patchwork-Id: 13086515 X-Patchwork-Delegate: miriam.rachel.korenblit@intel.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D5CBC4708E for ; Mon, 2 Jan 2023 03:04:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229915AbjABClG (ORCPT ); Sun, 1 Jan 2023 21:41:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjABClF (ORCPT ); Sun, 1 Jan 2023 21:41:05 -0500 Received: from out20-158.mail.aliyun.com (out20-158.mail.aliyun.com [115.124.20.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E37C1E4 for ; Sun, 1 Jan 2023 18:41:02 -0800 (PST) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.6833171|0.4098935;BR=01201311R111S53rulernew998_84748_2000303;CH=blue;DM=|AD|false|;DS=CONTINUE|ham_system_inform|0.0478166-0.0144264-0.937757;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047198;MF=aiden.leong@aibsd.com;NM=1;PH=DS;RN=8;RT=8;SR=0;TI=SMTPD_---.QiQDyiI_1672627239; Received: from localhost.localdomain(mailfrom:aiden.leong@aibsd.com fp:SMTPD_---.QiQDyiI_1672627239) by smtp.aliyun-inc.com; Mon, 02 Jan 2023 10:40:40 +0800 From: Aiden Leong To: linux-wireless@vger.kernel.org Cc: gregory.greenman@intel.com, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Aiden Leong Subject: [PATCH 2/2] iwlwifi: pcie: add support for AX101NGW Date: Mon, 2 Jan 2023 10:40:38 +0800 Message-Id: <20230102024038.2915-1-aiden.leong@aibsd.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Revert: commit 3f7320428fa4 ("iwlwifi: pcie: simplify iwl_pci_find_dev_info()") A bug was introduced by: commit 32ed101aa140 ("iwlwifi: convert all Qu with Jf devices to the new config table"), where a goto statement was removed. Signed-off-by: Aiden Leong --- Notice: Please run further tests before merging. I'm NOT familiar with device drivers. --- 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 a46df1320372..5d74adbd49cf 100644 --- a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c @@ -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 &&