Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp664398ybb; Fri, 20 Mar 2020 06:07:14 -0700 (PDT) X-Google-Smtp-Source: ADFU+vskzmqHUCCW0/GtpsLIq04gj+5nbbe33CkdZDOB5G8a2L5isvQV/KlGvPkBwnVmNz2ZS6w3 X-Received: by 2002:a9d:66d5:: with SMTP id t21mr6558440otm.284.1584709634732; Fri, 20 Mar 2020 06:07:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584709634; cv=none; d=google.com; s=arc-20160816; b=cnM06nCrK/f20UDhzRfSGoHK+pFh485JVIN0f9Jriv0ZjZJaNJw8eZkrwt+RLnQda7 ZhjynEm35noIj4A3Nebr+cOn4VzGUy9YsDSP2D9pUYFADvis637Rt4ykzeFzf6YZxbDG /P5ndfxXbeBUNgnv1sYxoB45yNkZt+pZhO5/fPc/xkBCujWGV44YEvOxe0kPGWj/oR+7 1Q5e8I3swdLQU+U/epDkA6H2/PA6RlZZyHHoVY6y4ckxfZhDAALW2p+JdlvShya33vRA p/LV2tcCO+BRoBQAWpOeTc8jXpMHWZOPKG7yFEumaC3FupooS+pcJEgwGckJl1EJ8HTA dI/Q== 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=p/fYk7fLkpGd0i839J//rN2VUB0kzj9xYaugAtwa7bQ=; b=Lv0eaDHmzPVcda0wUJcfZpr8NzZNdu+YHFdXHo60Iy56tYC6OwJswPNFKbGmZ+KKhc Cf8Z15+WElkcUqPG/SyNxTi/ICJiSwbDy/f8dY06Xipff6myE4syzxOxjKET5w5b6EeS /Xvi1cOXcokqi0S5pviQvahFfk05E8IkEFbw44k84v3nVzDeZuefKeMPXxpIKj7I+em8 fQSkUG9xFkDnUx2znUgIcIQHO8HV006zU7cXBRXLE9xb1YF+yK8o9gqucp+HHRPY/vfm SYTaiiXkOTlfaWsAdOYC7WaQOQZmmkISfdhn76qkQfj7sJ0wN6iGv3228nOQZWXTjRyK vfYA== 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 a21si3461850otk.277.2020.03.20.06.06.50; Fri, 20 Mar 2020 06:07:14 -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 S1727097AbgCTNGF (ORCPT + 99 others); Fri, 20 Mar 2020 09:06:05 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:45858 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727015AbgCTNGF (ORCPT ); Fri, 20 Mar 2020 09:06:05 -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 1jFHLW-00AsrY-Hv; Fri, 20 Mar 2020 14:05:54 +0100 Message-ID: Subject: Re: [PATCH] rtw88: add debugfs to fix tx rate From: Johannes Berg To: Tony Chuang , Ben Greear , Kalle Valo Cc: "linux-wireless@vger.kernel.org" , Brian Norris Date: Fri, 20 Mar 2020 14:05:53 +0100 In-Reply-To: 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> 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-18 at 09:02 +0000, Tony Chuang wrote: > > This command just mask out some of rates that are not allowed. But the > firmware has its own rate adaptive mechanism to choose the rates. So mask > out all of the other rate doesn't make sure the packets will be transmitted by > the only rate that was not masked. The hardware/firmware will try to choose > a better rate (ex. 1Mbps or 6Mbps) if they think it's necessary. Also the device > will fallback the rates to try to find a better rate to transfer data to the peer. [...] > We probably have to modify the command parser, from user-space and the > nl80211 domain, because as far I don't see a good way to add fix rate > option on the NL80211_CMD_SET_TX_BITRATE_MASK without changing > the existing mechanism. If the mechanism is changed, then the "old" drivers > will fail to interpret the nl80211 attributes. So I think add a new one, which > can fix the TX rate, disable the rate adaptive, etc., will be better if necessary. IMHO we should consider the use case here. _Why_ do you need something like this? Brian can probably comment on this - I think ChromeOS (used to) use(s) some kind of fixed rate at the beginning of the connection to force low rates? But I also remember this interacting badly with some APs that just don't want to enable low rates at all... I think we also have a similar debugfs entry in iwlwifi which literally forces a single rate/configuration (including antenna) for the device to use, to test certain things. I'm not convinced that it'd be easy and would make a lot of sense to add support for all these kinds of knobs to nl80211 since they're really just used in limited testing scenarios. So IMHO the "can this be put into nl80211" isn't necessarily the most important thing - we don't *have* to clutter that with various knobs that are only supported by some drivers, and then only used for testing ... johannes