Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1359668ybs; Mon, 25 May 2020 14:03:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLrp1BiYkWuwORkaBH0strNbpkB4bTv+FjQpElIVss6WkogqKZw7/osGHRLSMEKMELCau5 X-Received: by 2002:a17:906:1f8b:: with SMTP id t11mr20416340ejr.201.1590440614348; Mon, 25 May 2020 14:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590440614; cv=none; d=google.com; s=arc-20160816; b=Dss5BPmIgEPJo7xP3ZfP05YadAQQuZ5tOoWZc63qJAPJZBOCIm4g5AXR6tuEDkp8rK eZRw4bmLkx8NTIA8YBz9rxAjYgeE1R9vvg1Dibz1mXumQv38TQMFcMEVDjF/ZbJw3T9H xCgmU/u2uwJcf4wAp6OlbMnabNPwEvXcFrlnkABHRi24aLhaO75s2cdfJ3Avzk0tPVGl 8JzXGSQNMeeNJUI+x2GQPf1x25J7EUQmVH+r1dT2rWjWDhYPeaJEE67bJtSJhyH5fdI5 oOfBjhFk5qoU4umBEMIRIq+LV9C7r8cTLBwQu9WLXJEmW2+iuwozchfI0UdsZ1/sVXP5 DO4A== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:dkim-filter; bh=j6QP3d8j+s6CrJghieDUF/XEZrvy98tf0dRNqMZyWhM=; b=ByCVnsuKl6DWpWnohazjeGH3U3tolQOWC/hK73LBqfZEaCAPfS3rQ/X38tTQCTiDOC vS/5McQD0UQ1PHlujMcD/4pIROf7rfX2YMBXwywAQvtZ773dB6PLot8b4FS9aKZAZYJ4 +WKsK90DHvunVmHi8y/FzUVhwHn7cOBz8Tl2grRbSybLyVco321f5EcdOqZJeSTQ2Rvs hR69Dlz5T4T6BPdJHbVXF7i6K/OQNDTcPJnYdmiSS5AnTBlgy2LCLw6PbCXtukVm8nF6 uSc9uplQoLXaRTai3CEAv10qia1Ui74CvytFgxLaYaV9yQzBLrLD7+Lboa1wgEO0pWZh Xw1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=GjnweCEP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w26si10137687edq.38.2020.05.25.14.03.10; Mon, 25 May 2020 14:03:34 -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; dkim=pass header.i=@candelatech.com header.s=default header.b=GjnweCEP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729731AbgEYQRC (ORCPT + 99 others); Mon, 25 May 2020 12:17:02 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:58998 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726514AbgEYQRC (ORCPT ); Mon, 25 May 2020 12:17:02 -0400 Received: from [192.168.254.4] (unknown [50.34.197.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id 37AF413C2B0; Mon, 25 May 2020 09:17:01 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 37AF413C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1590423421; bh=ADtXMjpl/LMlesesHmjJbYHMWwxGeMwT8qqoKlGg4aI=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=GjnweCEPMLqJDlOo5WyFVD5PbZocRUIKYfshBvHlrOfZkJT9/7nTlh5+QfpSUeYNn KCtHJakd7I4ORyMblAEiLithSB/WjuIgKzEayWZZF3W4+GsogAnoCn0BMBKTVTkNw9 5SvUUyHCynXeJAaiUSytGnqdKnN7TsrqUAZyz+eE= Subject: Re: [PATCH] rtw88: add debugfs to fix tx rate To: Johannes Berg , Brian Norris 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> <6488cbbfbaa0f6591fa7b495e9c8d500603ca5e8.camel@sipsolutions.net> Cc: Tony Chuang , Kalle Valo , "linux-wireless@vger.kernel.org" From: Ben Greear Message-ID: Date: Mon, 25 May 2020 09:16:58 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <6488cbbfbaa0f6591fa7b495e9c8d500603ca5e8.camel@sipsolutions.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 05/25/2020 02:07 AM, Johannes Berg wrote: > 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? Try setting a single rate on ath10k. It will not work unless you add my patch. I put a pr_err in there because you (or whoever pushed the regression upstream) thought it was a problem to set a single rate, so I wanted to warn the user but also let the action work. Thanks, Ben > > Hmm. > > johannes > -- Ben Greear Candela Technologies Inc http://www.candelatech.com