Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1565067ybh; Fri, 13 Mar 2020 03:34:35 -0700 (PDT) X-Google-Smtp-Source: ADFU+vviGADT08ci5fMnLnlRWy0AJ+doz/JSju3xDNImtToBcf7JyvRuBwCn/TNjK6us4gBk4kTF X-Received: by 2002:a9d:336:: with SMTP id 51mr10237509otv.202.1584095675435; Fri, 13 Mar 2020 03:34:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584095675; cv=none; d=google.com; s=arc-20160816; b=gWluE/2f8H+4GLXslKRrsy46FE2C1g9pbQKTdiBJdo8FB/KzmJGyjgln/hVUH+dcvO RWm7UtklqCy3NwQOoqvK5jtqhfLZCBv9oZpnQLdo45dHHuW1b2m7ZfSxI9iv6OScEAeJ hi7S1LBUxybUtVnbfA6T6QiHCsJUuHF7CzUB3qF5+1l0estTQ+SSt3JUStiGI5kfpfEB HcyaAR7iMB7Zx/enI+pCcBRNrM639IqUUfYvk4vpukL/BTcqUozb9bxJEnPKdz2u/ITV UqdeObaYB9EJ/5+s6MlRRCd2EfMECReWBirmSCvtoh+q7IIMUMkgs+UAhkZLPX3XVItu caXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature; bh=X7JgTLVJSb3w2MgQ8TIVswg89owBNyVmDZy/Ps2jmYY=; b=ybcao4KyjnO/MkMmH/YhPE5jj7wtPcLTX+oI3Fgtw3Tf2X/unBP90M+9f9rfmtWhSt PhOjL5gczG8pX76QBWMiCkTtF24OqPlXfQ5ncgBTp4u599CwaYRB16gOi5OZLAknebkm fsYWCyqcbwDODeEdBwtnIyL+0h4a3rb1fDWqzNV9AreiOHZWw1UhK+/wadOiof09c972 rAMHKFNVNSwFUImtaj26f5zYsNoktwwOQ1OJ7uCkpcSyTpnsufGok4gmML+PsoBGipip WdL2JQlHSro1laivRFjiOf7iNPoFUMFUnsu8+Jn8Wq9KmloWVFsf8G8qR/2ddDv5+A/H ZY9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=IgLtidEM; 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 p25si4384620oto.168.2020.03.13.03.34.13; Fri, 13 Mar 2020 03:34:35 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=IgLtidEM; 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 S1726475AbgCMKdi (ORCPT + 99 others); Fri, 13 Mar 2020 06:33:38 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:34581 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbgCMKdi (ORCPT ); Fri, 13 Mar 2020 06:33:38 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1584095618; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=X7JgTLVJSb3w2MgQ8TIVswg89owBNyVmDZy/Ps2jmYY=; b=IgLtidEMlSO22faOw3N5bjYhliHbVbHPhYnN1PWgMvi9EvgFRosHlfss8+lLAY3scqsK5V9w HB8fKWCMsg8WfpzNeeiQK1SZFQPnmVn0cNnezlF6/lzAjZU8WBZBtg+Dm28cFk9BqGybXHLv d6vjsp63lXjMZkbbGYM9VfGu3TI= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e6b616d.7fb83714f2d0-smtp-out-n01; Fri, 13 Mar 2020 10:33:17 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id BCAD2C433BA; Fri, 13 Mar 2020 10:33:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id D0E65C433D2; Fri, 13 Mar 2020 10:33:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D0E65C433D2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Cc: , Subject: Re: [PATCH] rtw88: add debugfs to fix tx rate References: <20200313065114.23433-1-yhchuang@realtek.com> Date: Fri, 13 Mar 2020 12:33:13 +0200 In-Reply-To: <20200313065114.23433-1-yhchuang@realtek.com> (yhchuang@realtek.com's message of "Fri, 13 Mar 2020 14:51:14 +0800") Message-ID: <87eetwo87q.fsf@kamboji.qca.qualcomm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org writes: > From: Yan-Hsuan Chuang > > It is useful to fix the bit rate of TX packets. For example, if > someone is measuring the TX power, or debugging with the issues > of the TX throughput on the field. > > To set the value of fixed rate, one should input corresponding > desc rate index (ex, 0x0b for DESC_RATE54M to fix at 54 Mbps). > Set a value larger than DESC_RATE_MAX will disable fix rate, so > the rate adaptive mechanism can resume to work. > > Example, > To fix rate at MCS 1: > echo 0x0d > /sys/kernel/debug/ieee80211/phy0/rtw88/fix_rate > > To not to fix rate: > echo 0xff > /sys/kernel/debug/ieee80211/phy0/rtw88/fix_rate > > To know which rate was fixed at: > cat /sys/kernel/debug/ieee80211/phy0/rtw88/fix_rate > > Signed-off-by: Yan-Hsuan Chuang No way, debugfs is not a method for working around nl80211 and doing whatever idea you come up with. The goal is that we have a generic nl80211 command for all generic actions, like this one. And I think we already have an nl80211 command for fixing the tx rate, right? -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches