Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5051276rwr; Sun, 23 Apr 2023 20:10:39 -0700 (PDT) X-Google-Smtp-Source: AKy350ZIO7iAzbE0dXxHYSfH4Vn2NptIcWkuCjxayrcX1rt7sJDp/Rdl1f3oX/ovHF1TzxU/0jFB X-Received: by 2002:a17:903:4d:b0:1a9:2b7f:a594 with SMTP id l13-20020a170903004d00b001a92b7fa594mr11805959pla.29.1682305838680; Sun, 23 Apr 2023 20:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682305838; cv=none; d=google.com; s=arc-20160816; b=wNm8Oa51FYDDLm8l8Hq0jSVSVPh8DJY+gWKohlxxUYAkOyPLlSCZ5rogMyGaZJJ+il Lowk2kqiPeM66NxAG/YYFSPO5N9DVCLY9LUy5OTTM43k5OLfgalvMjhOAnX8iQl1pJny p+zcY8/E2MmvLGiDLg4wr5qOLD5V1VUkEtOPNr1RmnUUDO3JLpPI7Ut94QIfAB1MDHTG sw82cRHaPuwLIAFE/B0jMZQT0O+PutI4OvkZHPGvn9NGt41fFXlZiQXQYOGIlwf/Lr2V 74TNtgXqFK7350KhuyE2dlEHgfSoKU753XsiVvMBFZyGLb3INLOU5QKMvKZwFMe8S6dO eYrg== 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=qAjgApo8QCA5K3omMLkKXgy/GD+3lKKiz6ZyUUAJ9Z8=; b=OjqklUoikFT9g+nScAtnB5k3sSmbilGfhFTkTWTySzFpq91nD/4QvuZXPup1cgw6KE oSur+nDybnXz6QVjyHeKpnGtgJ598kHQVOVHu/1tEV7Q0QWAKQgDPf4zro2otDX/SF4n rE4b0M4KDTG0aStvmyC1ucCZ8ymwuY8xDOloap0CHaqoKZpGsyhT3016vAerw9BM20h3 BZmlVkj8F1mhtMwFXKcZ+DxbpJnb0vGrjHEaafiNSFiuUgzEkXFrhGTLJX4/K2hlBNGn zrdMU5DR2HfcDniMIEMEmA4e1StyMK0tk6Rf8NJ4t9sgV35bWbfwZ+OG9B9JzlWYoig8 N6QQ== 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 b17-20020a170903229100b001a6e58380f6si10650185plh.523.2023.04.23.20.10.28; Sun, 23 Apr 2023 20:10:38 -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 S229797AbjDXDHS convert rfc822-to-8bit (ORCPT + 63 others); Sun, 23 Apr 2023 23:07:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbjDXDHR (ORCPT ); Sun, 23 Apr 2023 23:07:17 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 960351701 for ; Sun, 23 Apr 2023 20:07:15 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 33O374sxC024527, 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 33O374sxC024527 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Mon, 24 Apr 2023 11:07:04 +0800 Received: from RTEXMBS05.realtek.com.tw (172.21.6.98) 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:07:05 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS05.realtek.com.tw (172.21.6.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 24 Apr 2023 11:07:05 +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:07:05 +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 15/18] wifi: rtl8xxxu: Remove usage of ieee80211_get_tx_rate() Thread-Topic: [PATCH v2 15/18] wifi: rtl8xxxu: Remove usage of ieee80211_get_tx_rate() Thread-Index: AQHZcqYLpcRjqGoQSEK0bu1oVvleaa85zkzw Date: Mon, 24 Apr 2023 03:07:04 +0000 Message-ID: <22a53c2a0eb04c50bd602eb6efc20aa6@realtek.com> References: <20230419100145.159191-1-martin.kaistra@linutronix.de> <20230419100145.159191-16-martin.kaistra@linutronix.de> In-Reply-To: <20230419100145.159191-16-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: RTEXMBS05.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 15/18] wifi: rtl8xxxu: Remove usage of ieee80211_get_tx_rate() > > As this driver uses HAS_RATE_CONTROL, tx_rates will not be provided by > mac80211. > > For some frames c->control.rates[0].idx is negative, which means > ieee80211_get_tx_rate() will print a warning and return NULL. > > Only management frames have USE_DRIVER_RATE set, so for all others the > rate info of txdesc is ignored anyway. > > Remove call to ieee80211_get_tx_rate() and send management frames with > 1M (rate info = 0). > > Signed-off-by: Martin Kaistra Reviewed-by: Ping-Ke Shih [...]