From patchwork Sat Oct 28 12:15:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiji Yang X-Patchwork-Id: 13439466 X-Patchwork-Delegate: kvalo@adurom.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 18F44C0032E for ; Sat, 28 Oct 2023 12:16:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231945AbjJ1MP6 (ORCPT ); Sat, 28 Oct 2023 08:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230191AbjJ1MP4 (ORCPT ); Sat, 28 Oct 2023 08:15:56 -0400 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01olkn2100.outbound.protection.outlook.com [40.92.98.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 430B9AF for ; Sat, 28 Oct 2023 05:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VGkIYcTHgCEMMIH0smMuJ7mV6UzvhZF3BmVFPKuFDkr1r9IfN7DX4A7l+XK+lDKW+rAduXkhw6vVP+LHh+9kTUiYuxxd4DBhSLjJwH8BRoMqE3uIJkSy6kyHXDj3hNR8igYVffQqqBIkCm2o7ZPvhBsByoGtNh42fDty47+OIn++0g3HNdq3WUvko7jJwGfiWdZDXc+BZYOU7AO0ttKRBjBEbUWExTrJ/8f98SBLeZx7caPfL24R8PtdQNfW8FO7ft0Lva2WzBj/K7Vrjdb1Ijfw5IVNlZ82zMfLaIPtHUraP7OgwKmgD2c4ezVxErs2cPvNfvDQ5bz4tQGn8CK0OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XIX+Y85cQQ9eyn1do9h7yoORpYKyEL4r3v6J+r0cMx8=; b=ZW9HcTizc4EBMmrAbWBwVvrQXyByQR+fOCILVuHPjnnVujq6pif36FHuwyVxzokplm6fAQbfsUOpZTzpj0k79fBR2Bboa08/71AydjpxP7mTgaIwLL7y+b7i41qWA5DWQyJFvxTOK9g95efmkij3YNTzjmmSo8xQBYZX9sOvSGKj6FfXXEXaYBlydu06U901/9Qg9IDZBpU5BECFTyL4GqKl8JfZ8I1LekPF6tYIMNMr8SlYG7Z2zJSj9Vp2w/k1Nsbo3Jt1bFtQYWPee/avdAFyAdfQG+riZTuNsnF4aT9+aWfGCWC96snjk8BugfeBXfjkNhAVgoTqgugwlbc6Ew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XIX+Y85cQQ9eyn1do9h7yoORpYKyEL4r3v6J+r0cMx8=; b=n3dEQQ27Suv70vzZcOVkJGYBF9zls2iz9l7I8gNUUzduaFvjAsLLRxsm2nATBhuF0b2DiiRVOD0KbJYKU8qzeHG0ejOf1PeS2RXDJNpLWNkzyHsjaXrkqQbVuaNE8o6yB0eQRQG+kGDFqkPrPpmAkjNnSNJ+eYanjc0bxL8PXQyBIUmsCZ7OlDcGs94hMiV/ipqO7OySiA5jDlr/GhDQBMlF3DxpoPrw3SIppnvIWL931taSgDOmAWQc1NiZOSpZi4OkY0HR08SrVA8egGX1/swFxtvgb78g+mzyvUm/VQrZOZcYXMVc78/MK9JQKSDA1Uu+Ucx8Ij696kLYWknZTw== Received: from TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8041::8) by TYCP286MB2504.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:20e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.23; Sat, 28 Oct 2023 12:15:48 +0000 Received: from TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM ([fe80::465a:2534:4d99:a25b]) by TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM ([fe80::465a:2534:4d99:a25b%6]) with mapi id 15.20.6933.019; Sat, 28 Oct 2023 12:15:48 +0000 From: Shiji Yang To: linux-wireless@vger.kernel.org Cc: Stanislaw Gruszka , Kalle Valo , Shiji Yang Subject: [PATCH 2/3] wifi: rt2x00: disable RTS threshold for rt2800 by default Date: Sat, 28 Oct 2023 20:15:31 +0800 Message-ID: X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231028121532.5397-1-yangshiji66@outlook.com> References: <20231028121532.5397-1-yangshiji66@outlook.com> X-TMN: [AaaSacL6L0cfZjbXo5CmFtUqVGGDrU5gGSb1vM8u2P8=] X-ClientProxiedBy: TYCP286CA0322.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3b7::11) To TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8041::8) X-Microsoft-Original-Message-ID: <20231028121532.5397-2-yangshiji66@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYAP286MB0315:EE_|TYCP286MB2504:EE_ X-MS-Office365-Filtering-Correlation-Id: 98fed0d1-9ff0-453c-fbdf-08dbd7af9e41 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eWBa0p+H+lzhcbhcRJlOL7ObcPpgFEn527olDltggtHTqIZiUxEa1LeM8wGHbcB+5dhafLE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EHLHWMDjGSF+5zLwLuLlQOYLIdMVl9kKHl7EEnELl+Xbr9+seHiFzk4McRomhDYfP+SDO63M1rr6tws9Ki+HJivoJ2yrflHusBjGIyaynUdvlARwBwWasrMKzR/mz2j8w+32gzE97zaUh4LBKTBlUx/i5lYme19cbzajs+fpKkQGMiue1ICs4Ly4AzJHVvk0IL44naHvrl0mS8/LzuxrV4/sRaus3iapDZ0r5Vyj/MqKMuBl7geb2FHRFrXCzzZS3z81S+Eql0LHFocMz8yrY3mTKzVNEWldoQToePE93lPt4SJDWLlJwV8NppZM67FeW5z2XY+gH/JKDZ2YUONSe9sQY0mXQvHaORgZEIZ8WP7ZntJ0K/R0t8Cg4rNMhiahgYCXaulKU6kehFH8t6OvpS6HpXt4pEqsAYLwZqLnKyAa89nVeEDs2cRsjzKhSq4mCaL4K7irZ6bM/aBIeMAoVkJ/8/kFGHjTE9rNP34mLe6uxScdNxUPj/FhdxMGKPbqAvDh4usliUqoYF+Oil2Ap4RfWdeckFTbnD1i0ica1/+T5kg6lf4WmWMkf+YMpHVMu7PbC6B/vCsyGTdAx284H8nMSnQDZ//CuAXI/JfmcSosp0trG8b50LGkLmgmIqbO2ONCdaZa8jlAeAwB+50ntrWMCvmuzbnuydJRXu+6Wb1NJcWuFwaTKfpEY76Pvg2LvYzNdJDDCLq2IUIlaDY2Kg5aIbV54Ab1BuWjEsb00+ednyl1euKkzaAr0wWcbVwWJanc= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98fed0d1-9ff0-453c-fbdf-08dbd7af9e41 X-MS-Exchange-CrossTenant-AuthSource: TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2023 12:15:48.1057 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCP286MB2504 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Disable the RTS threshold for OFDM and CCK rates by default as the initial RTS threshold is 'IEEE80211_MAX_RTS_THRESHOLD'. And RTS thresholds for all other rates have already been disabled when init. Signed-off-by: Shiji Yang Acked-by: Stanislaw Gruszka --- drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c index 6ca2f2c23..bcc63f1cb 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -6104,7 +6104,7 @@ static int rt2800_init_registers(struct rt2x00_dev *rt2x00dev) rt2x00_set_field32(®, CCK_PROT_CFG_TX_OP_ALLOW_MM40, 0); rt2x00_set_field32(®, CCK_PROT_CFG_TX_OP_ALLOW_GF20, 1); rt2x00_set_field32(®, CCK_PROT_CFG_TX_OP_ALLOW_GF40, 0); - rt2x00_set_field32(®, CCK_PROT_CFG_RTS_TH_EN, 1); + rt2x00_set_field32(®, CCK_PROT_CFG_RTS_TH_EN, 0); rt2800_register_write(rt2x00dev, CCK_PROT_CFG, reg); reg = rt2800_register_read(rt2x00dev, OFDM_PROT_CFG); @@ -6117,7 +6117,7 @@ static int rt2800_init_registers(struct rt2x00_dev *rt2x00dev) rt2x00_set_field32(®, OFDM_PROT_CFG_TX_OP_ALLOW_MM40, 0); rt2x00_set_field32(®, OFDM_PROT_CFG_TX_OP_ALLOW_GF20, 1); rt2x00_set_field32(®, OFDM_PROT_CFG_TX_OP_ALLOW_GF40, 0); - rt2x00_set_field32(®, OFDM_PROT_CFG_RTS_TH_EN, 1); + rt2x00_set_field32(®, OFDM_PROT_CFG_RTS_TH_EN, 0); rt2800_register_write(rt2x00dev, OFDM_PROT_CFG, reg); reg = rt2800_register_read(rt2x00dev, MM20_PROT_CFG);