Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp905251ybs; Mon, 25 May 2020 02:07:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyHBnehTjiI8X58TtPjo7as+9VG+UwJD1BPArOJ+DKhb/W8Q6eDpX9m4FLm4SQaFaloNXR X-Received: by 2002:a17:906:39c3:: with SMTP id i3mr18816704eje.417.1590397665909; Mon, 25 May 2020 02:07:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590397665; cv=none; d=google.com; s=arc-20160816; b=a1dNMbB6SDi1NT4qwNS7v2xfoLkoQDnYZWB0YKp4DbaAPsOOEsalXzN30U0jFViPYL E3ZfF+4J5OKup9QmKl1UiYPyV4fxGGXgeyJxoQrDgE3W6DL+fNI/O9dgXjxejiN6hbfM jpiB5VGRZlYQDRD9rtB6I/TTS9jqZVXTDxx1lF08ZS5+Nm2YKWnulFh3MwNkiBI1hq4Z mtJsFMTmDrThRS8cD0BmM5+IZzKbLpEGlIM8H6fs95KkjQdpp+40LPwb5EHzZRBqhreu 37xbp4At1s2gvVaWrq3DBIY5kFMtWO43iQChoc3aeHW13Wbr54nAVP91p/cYo7qMiFcI 4fyg== 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=t4JEah2qWl6uPjjfa1oOniV/WoKAU+smmMxPDPwlw4c=; b=lEyUVCkI9B7H3jzpwdKeREs/nmikHZsPo/y9m+QnqiH/5Gymow5wetGImh3atCnlox UIVCHP9e5cZ/l4x9oEcuQECxx/7m0PW+0RHSVNPKRZ+sAOWRk4c0ukIspdkwvMCVE7J1 MACAO6b5UsgqUBs3s2DtkpHgwW87p40P349AHcPIFw7xRSZ2ecZmVHSiKJrSi4OWZD2s yhXjt6DczirbppoWCIy/8Z4PnTxL3S3bmq0nBBbGyJWSeGgtT2NKtMWGGcuPtvSATrec bLgCB55CtbWvoBSHz8sFQsR8hqS00Q/7JI6UTqnXevZUPZXnU8/EmyU3BuNHXFgFrBjo 6M+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z1si9124195edp.481.2020.05.25.02.07.20; Mon, 25 May 2020 02:07:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389198AbgEYJHM (ORCPT + 99 others); Mon, 25 May 2020 05:07:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388611AbgEYJHM (ORCPT ); Mon, 25 May 2020 05:07:12 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF384C061A0E for ; Mon, 25 May 2020 02:07:11 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1jd94X-002b7U-Sl; Mon, 25 May 2020 11:07:02 +0200 Message-ID: <6488cbbfbaa0f6591fa7b495e9c8d500603ca5e8.camel@sipsolutions.net> Subject: Re: [PATCH] rtw88: add debugfs to fix tx rate From: Johannes Berg To: Brian Norris , Ben Greear Cc: Tony Chuang , Kalle Valo , "linux-wireless@vger.kernel.org" Date: Mon, 25 May 2020 11:07:00 +0200 In-Reply-To: (sfid-20200325_191503_900952_26F93B7F) 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> (sfid-20200325_191503_900952_26F93B7F) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.2 (3.36.2-1.fc32) 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 11:14 -0700, Brian Norris wrote: > On Wed, Mar 25, 2020 at 8:52 AM Ben Greear wrote: > > On 03/24/2020 10:16 PM, Brian Norris wrote: > > > Sure, but if you mask out all but 1 bitrate...voila! A fixed rate! > > > > So, see this thread from a while back. Has anyone even *tried* to use > > this API you are proposing? > > Yes, in fact, I have! Which is why I noted: > > > > Now, there are other problems, like the others that Ben mentioned: the > > > rest of the mac80211 framework doesn't like it too much if you really > > > disable all but 1 rate (arguably a mac80211 bug -- but not a nl80211 > > > bug) > > http://lists.infradead.org/pipermail/ath10k/2017-October/010291.html > > I hadn't seen that thread. So it sounds like maybe Johannes isn't > quite on the same page as Johannes ;) Hah. Happens all the time, not sure what that other Johannes is thinking ;-) More seriously though, I'm a bit lost now (and a big part of that is probably because I'm replying to a 2 months old thread, sorry). > If we're going to be particular about matching the AP's basic rates, > then this API is indeed probably not useful for the "single fixed rate > [for debugging/testing]" use case. > > > mac80211: Revert some of e8e4f5, fixes setting single rate in ath10k. > > Commit e8e4f5 was an unfortunate consequence of the stuff I mentioned > earlier about how Chrome OS used to use SET_TX_BITRATE_MAX -- we > weren't nuanced about it at all, so we might configure a set of > bitrates that doesn't intersect at all with the AP's BasicRates. That > does make it hard for the driver/framework to decide what to do: do we > listen to the user, or to the AP? Incidentally, that's also one reason > why Chrome OS no longer uses the API; it was too big of a hammer for > what we want (initial-connection reliability), and required us to be > more delicate about {Supported,Basic}Rates than we really wanted to. Right. But I'm not sure why Ben needs to just do a pr_err()? Shouldn't that just not happen? Hmm. johannes