Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp874971ybb; Wed, 25 Mar 2020 11:15:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuInH3amO1m7/nL2wOMTAFewspsofjgvc1v2sBoCHPFizrpDeYUf9l+asRvc+ZcAzMha73V X-Received: by 2002:a9d:5888:: with SMTP id x8mr3266862otg.361.1585160146812; Wed, 25 Mar 2020 11:15:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585160146; cv=none; d=google.com; s=arc-20160816; b=vBe9RoMYNs+pxxyS0G7hORswGY41VCuv3/4FTH339NY0DaS/Gc+gkUqSxJWWvPK9re XO/LkCTcl91qILLsqDNWlTs8wRN4qkejjhv63L7NaTrNfBiIvLNMKlY5V+CFlyfr/9Y5 KzkJQDUiR3GF6HmeGp9+oiTTHmXNWomO7FpJuA63FMwG+d//2v0GiWn66UYgAP8CgEv8 cPWMz5PQa7fqGmnMLTGN5gekVEjddMYMUHeO1sjnyl+sO4mXghQU0MBSGFMb4xVm/tKc YFAkH8WHRIgB8Gho9brNY2MEaLjzqpjsvJoOieZXD89tNCoq3laObVs7WlrP3CRwVQNj 2hig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=CN/jGkDFewEhK4kLuF7IJJzT1GvrV70P1Bm6K0ng+Yc=; b=Jco3Qn4FPfxu2UIugAEhMKUSwRG0ll2Vs1Avy7+LgmWw0BrNrodnIuGcFv5hL6Rpvi oaGnoxYAXD7U8ovw1d3elUAI9iEn3FEJ3pehx5rCG/VKWA/Rwafd7aLSLhOa+6KpYalG Yyx0IjnokAHKELthX10w8FjHEE+SIVh/rArLiqke9HdwlxPtA+pYw954yB789EnuIY68 C4Bg+idM2hqTtJKrbl/ikVujCbDYG18XqDb8XkVvCXEq9X0ev92gZei6In+xfjLjDTrV BTpbgo2cM3SG4k9jS5JD9h1uxOBtI80A+YS97SeSoIPjkqTZqsXwSRKVm91YmUiWBtM8 NrfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=geD7Cjf6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17si1818392oov.44.2020.03.25.11.15.09; Wed, 25 Mar 2020 11:15:46 -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; dkim=pass header.i=@chromium.org header.s=google header.b=geD7Cjf6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727439AbgCYSPG (ORCPT + 99 others); Wed, 25 Mar 2020 14:15:06 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:39456 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727279AbgCYSPG (ORCPT ); Wed, 25 Mar 2020 14:15:06 -0400 Received: by mail-lj1-f195.google.com with SMTP id i20so3557525ljn.6 for ; Wed, 25 Mar 2020 11:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CN/jGkDFewEhK4kLuF7IJJzT1GvrV70P1Bm6K0ng+Yc=; b=geD7Cjf6W8588DDu7mcqREkoLQmxAdGk0uB2KBv2XSkiR0n9FjIa5RRyNZtt1kPPVx xQYRVuOwVsiDazXCpkjvZPi9Z6KJC2y92qt9+0/ola5PMVhMiFfChEmTcyO+8XT2Ad6S a70UjcT3JlMj7/9MYGZmdg0pQZzm96vBpcWVs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CN/jGkDFewEhK4kLuF7IJJzT1GvrV70P1Bm6K0ng+Yc=; b=E4emyXP9oTcChAhzIfPtY6CZGtFFtcziGfKDb4o0R6T9vNUZlPmRAad+9rOe16rmng 9elKpZ6CIlTamZuWEbGzvcJ4ju3ztmt4vpCqxEZxkwoeWH1VSDG3UYrpMmsu4pdwVjnl eMdOGKVKAybf3FptRvincpOCdjvxWYy2ZOAhN8S2NZKB1JnB+aaJhGrriqdMvTabvW6A Ie5WclqwRw02I4r+VAmN37DwlewIOJatnNEdXDEwZR0dwJWWk1K8ELC98Nsm/7LnksQJ wjMbLzgBM3Cw3mc4T8WF4GJQqNm58t0cym/J8sjplaPnDAjPQaD9Izf7mQef9Cwx3EOu dbUA== X-Gm-Message-State: ANhLgQ3xujY9OS/YMn0up20cvL8bxiDVv/PVW9Y5liAvhy48Af/J//SO UNuXvLELd9gxcX++WT2+UMJq3N4yH3I= X-Received: by 2002:a2e:9099:: with SMTP id l25mr2829921ljg.157.1585160102451; Wed, 25 Mar 2020 11:15:02 -0700 (PDT) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com. [209.85.208.176]) by smtp.gmail.com with ESMTPSA id q8sm5456718ljj.77.2020.03.25.11.15.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Mar 2020 11:15:01 -0700 (PDT) Received: by mail-lj1-f176.google.com with SMTP id g12so3579585ljj.3 for ; Wed, 25 Mar 2020 11:15:00 -0700 (PDT) X-Received: by 2002:a05:651c:50e:: with SMTP id o14mr2672414ljp.241.1585160100264; Wed, 25 Mar 2020 11:15:00 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Brian Norris Date: Wed, 25 Mar 2020 11:14:48 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] rtw88: add debugfs to fix tx rate To: Ben Greear Cc: Tony Chuang , Johannes Berg , Kalle Valo , "linux-wireless@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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 ;) 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. Brian