Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5065114rwr; Sun, 23 Apr 2023 20:31:48 -0700 (PDT) X-Google-Smtp-Source: AKy350bkp4CdZu70shpKkpPg6zSPZljINEhI/zpaclfvi78Uq8YqwzN6Z73hp+MgiV7P+KPi48bT X-Received: by 2002:a17:90a:3f8f:b0:23a:8f25:7fd6 with SMTP id m15-20020a17090a3f8f00b0023a8f257fd6mr13004364pjc.29.1682307108165; Sun, 23 Apr 2023 20:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682307108; cv=none; d=google.com; s=arc-20160816; b=ICnvd9qHT766Q6e4E2J1T6J0u94g7WR6wsByh/kZ3jgxQZzIgGuq20jns6KuEnmERW faxH5JrijIOisjeBVbGDMy7lqerUFlFNhMURXk68sLHZ8oQmScwTnU1qywy5n92dpbgc NKzJivw5/Xjj93Aj3bEBKVu6mP1LQy3hhPtZ0JafbGlMK5doTQl+bIJY/1thU4OVyqOM 3vUNvuKEJ573qIuAeI0HAf30ptDVPcGwzu6omsaxkzb/49Bf9AfJIzA6nJxnyofDmUjz agM+X+7w4on2tnyC0cpKMOtYMXMer5VULKSxPy75mrtKqs0zecM8tRxyMboy4UBMamlo ro4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=i3m/k52C+8a1ydhgUTnR1gHwMfrg1+z9zCveUybqtUA=; b=YpeWP/RV4C2eR9nRrkXIeKw/hrMfg+gqJHYo1DrUoUJtkkGaWuMM+fbjZ5jL0Q6BM2 otURNV53EYnzrt3+s/FYcR+vtgq0Tof4zALcfUuIQhNsoztYn5cmoJl/i7qYINeUnBcr E6ssqvuMQDfQrZh7kSmjBisLXhcuz9zeEDCmMndcZf17vjy9KXWEZMnhVczQD1rg4Fea hXimSG50cJJO8wgZl1nPLr4QZuIxoylK8jM+5qSRXcqglaZDW8J/5GdH4XQCG5SE1pZs 7vKufhiar6DeCM+uQI0hBrB9BL9guyW3EW9vJFtaq7H7xCRvjpr8SIzJ8aaOXqTT6jK6 gRwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020a17090a9f0900b0023d22d0f0fdsi12808319pjp.19.2023.04.23.20.31.38; Sun, 23 Apr 2023 20:31:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229497AbjDXDK1 convert rfc822-to-8bit (ORCPT + 62 others); Sun, 23 Apr 2023 23:10:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjDXDK0 (ORCPT ); Sun, 23 Apr 2023 23:10:26 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5839A1701 for ; Sun, 23 Apr 2023 20:10:25 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 33O3ADbH4028793, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 33O3ADbH4028793 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Mon, 24 Apr 2023 11:10:13 +0800 Received: from RTEXDAG01.realtek.com.tw (172.21.6.100) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Mon, 24 Apr 2023 11:10:14 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXDAG01.realtek.com.tw (172.21.6.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Mon, 24 Apr 2023 11:10:14 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d]) by RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d%5]) with mapi id 15.01.2375.007; Mon, 24 Apr 2023 11:10:14 +0800 From: Ping-Ke Shih To: Martin Kaistra , "linux-wireless@vger.kernel.org" CC: Jes Sorensen , Kalle Valo , Bitterblue Smith , Sebastian Andrzej Siewior Subject: RE: [PATCH v2 16/18] wifi: rtl8xxxu: Remove usage of tx_info->control.rates[0].flags Thread-Topic: [PATCH v2 16/18] wifi: rtl8xxxu: Remove usage of tx_info->control.rates[0].flags Thread-Index: AQHZcqYLmDQFg5tZBE2hWeGcxtmdE685zzFw Date: Mon, 24 Apr 2023 03:10:14 +0000 Message-ID: References: <20230419100145.159191-1-martin.kaistra@linutronix.de> <20230419100145.159191-17-martin.kaistra@linutronix.de> In-Reply-To: <20230419100145.159191-17-martin.kaistra@linutronix.de> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXDAG01.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > -----Original Message----- > From: Martin Kaistra > Sent: Wednesday, April 19, 2023 6:02 PM > To: linux-wireless@vger.kernel.org > Cc: Jes Sorensen ; Kalle Valo ; Ping-Ke Shih > ; Bitterblue Smith ; Sebastian Andrzej Siewior > > Subject: [PATCH v2 16/18] wifi: rtl8xxxu: Remove usage of tx_info->control.rates[0].flags > > As this driver uses HAS_RATE_CONTROL, rate_flags will not be provided by > mac80211. > > Stop using tx_info->control.rates[0].flags and ieee80211_get_rts_cts_rate() > and use rts_threshold and bss_conf.use_cts_prot instead to determine > when to use RTS and CTS. > > Send RTS with 24M rate like the vendor drivers. Also set this RTS rate > for ampdu_enable = true, because we also enable RTS for these frames. > > Signed-off-by: Martin Kaistra Reviewed-by: Ping-Ke Shih [...]