Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp411219ybb; Wed, 25 Mar 2020 02:12:30 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtichBoMcSbLrnuXad4C3mbV227bOWSyq2V05bGGIFJCEMWFmQCSH4tXaKwmeTt3kvUOgUt X-Received: by 2002:a9d:67c6:: with SMTP id c6mr1738035otn.11.1585127550564; Wed, 25 Mar 2020 02:12:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585127550; cv=none; d=google.com; s=arc-20160816; b=cVHz1HgfipV44N8gVakJWMO1kWmobkiX24HZ8OuXnzPgW7OsKgLQoVMPG0407O8ui1 G7gtk0t19W6VCpmMAWwPKjeldph44cS822E4SN3MmHPq+YylgiOFqQrQhaqdtJkeZKVS P8vTJaPwEmhRVeBvJvP0tfGROvuIwDMLgILxq9kCqdwR+bzv7sJ25MYyjWGJF4jebfwM YgJyjaluMjUkaK1ouFtyHshgK+9Iv5FHpgPWjPt9j0MV8xpaCex93npyvdD3E579TnbZ nVhtf/AQjGEU1aOCbRxtxBLV28NuAiAyHxoKVNL8+mkjolAytluI4qAGMfpK6WtoUFgb OZig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=cud+LJvPj4zI9+qBa+EaTbGlRlQrW8B9xqpq8Ymio3g=; b=BqnwlliihptZhalSyTbJo9yeXceDFYOH92tv9xqMQnn5ImQBDEazaPHt7Uex+51t7J AtaV/r+FLDHEGpHhIC31xTt63zbgZXVWekvCy+QbzdV/d0JYFriEa7BPvVXdDX+c6cLr TPps7rVYKkzgKJ0Qmsmne4yziUcX1hR7cPwawVNuIyDLpXfpszU405pDFaajS9aWhNRP bvwQ10NTje/8ONe/lMceQVsK97N0nU4dmHM2+JSKnoQvY5TdL8On2XDM80M1RJTyi7Jv KqD3muqZmOqX+ueuJ7Y2jDEW1TPANPBG4keO3rtv83NpH+7WF66ImtO8s0RRF1rKL1Zj 1Ryw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13si10306254oig.220.2020.03.25.02.12.09; Wed, 25 Mar 2020 02:12:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726073AbgCYJKR (ORCPT + 99 others); Wed, 25 Mar 2020 05:10:17 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:42936 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725873AbgCYJKR (ORCPT ); Wed, 25 Mar 2020 05:10:17 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1jH235-007mFm-CQ; Wed, 25 Mar 2020 10:10:07 +0100 Message-ID: Subject: Re: [PATCH] rtw88: add debugfs to fix tx rate From: Johannes Berg To: Tony Chuang , Brian Norris Cc: Ben Greear , Kalle Valo , "linux-wireless@vger.kernel.org" Date: Wed, 25 Mar 2020 10:10:06 +0100 In-Reply-To: <30819fb6d90d48a9852dd0b7f59aa4f1@realtek.com> References: <20200313065114.23433-1-yhchuang@realtek.com> <87eetwo87q.fsf@kamboji.qca.qualcomm.com> <2e492e530d744713871f885e324106ef@realtek.com> <87eetrlanb.fsf@kamboji.qca.qualcomm.com> <875zf3kn05.fsf@kamboji.qca.qualcomm.com> <3894907ca6bf4566b8716731492a869b@realtek.com> <30819fb6d90d48a9852dd0b7f59aa4f1@realtek.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, 2020-03-25 at 05:54 +0000, Tony Chuang wrote: > > That's entirely your fault, not the fault of the API. If your firmware > > doesn't listen to your driver, then that's either your firmware or > > your driver's fault. If you set a mask that has exactly 1 bitrate in > > it... well, that's exactly what you should tell your firmware to do. > > Not, "use this 1 bitrate, but try something else if you feel like it." > > I cannot agree with it. I tend to agree with Brian. If userspace, for some reason, told you that only one rate is acceptable, then you should listen to that - if you support the API at all. > Let's be clear here: > > If there's a rate mask comes from upper space, does it mean > That driver or firmware/hardware can only use those rates > masked when *802.11 retry*? Yes. > And use a lower rate when > retry is called rate-fallback as I've mentioned before. So I > think the problem here is, do we need another option in the > existing nl80211 command, if 802.11 *retry* is still allowed to > choose a rate not in the rate mask? Perhaps you'd like to have such an extension to the API, but that's not what's there today. Today, the expectation is that you use these rates, not some other rates you figured out from something. Now, mac80211 is/was actually slightly buggy here at some point, and not all drivers support this, but that's what the API was intended for. Not some kind of "oh, let's try to start with these rates and then do whatever we like later". > In my opinion, if 802.11 > retry should be disabled, then all of the algorithm of the existing > rate adaptive mechanism for rtw88 should be totally re-designed > and we will have to rebuild another one. Disabling retries has nothing to do with it. Only limiting the rates that can be used (even for retries). johannes