linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tony Chuang <yhchuang@realtek.com>
To: Brian Norris <briannorris@chromium.org>
Cc: Johannes Berg <johannes@sipsolutions.net>,
	Ben Greear <greearb@candelatech.com>,
	Kalle Valo <kvalo@codeaurora.org>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: RE: [PATCH] rtw88: add debugfs to fix tx rate
Date: Wed, 25 Mar 2020 05:54:28 +0000	[thread overview]
Message-ID: <30819fb6d90d48a9852dd0b7f59aa4f1@realtek.com> (raw)
In-Reply-To: <CA+ASDXMi8BqccHdVXVXb0JOj4y0vcFBGdL6BB0YuzB78qzgQuQ@mail.gmail.com>

Brian Norris <briannorris@chromium.org> writes:
> 
> On Tue, Mar 24, 2020 at 7:55 PM Tony Chuang <yhchuang@realtek.com>
> wrote:
> > Brian Norris <briannorris@chromium.org> writes:
> > We want to measure the TX power, and the equipment just cannot
> > detect the signal on some rates, unless we "fix" the rate exactly.
> 
> I think we all understand this now.
> 
> > So NL80211_CMD_SET_TX_BITRATE_MASK is not so useful for us
> > sometimes.
> 
> I'm not sure if you have directly explained why this is the case. See
> your comment earlier:
> 
> "This command just mask out some of rates that are not allowed."
> 
> Sure, but if you mask out all but 1 bitrate...voila! A fixed rate!
> 
> And this:
> 
> "But actually the firmware has its own rate
> adaptive mechanism, so mask out the other rates does not mean the rate
> left will be chosen."
> 
> That's entirely your fault, not the fault of the API. If your firmware
> doesn't listen to your driver, then that's either your firmware or
> your driver's fault. If you set a mask that has exactly 1 bitrate in
> it... well, that's exactly what you should tell your firmware to do.
> Not, "use this 1 bitrate, but try something else if you feel like it."

I cannot agree with it. Let's be clear here:

If there's a rate mask comes from upper space, does it mean
That driver or firmware/hardware can only use those rates
masked when *802.11 retry*?  And use a lower rate when
retry is called rate-fallback as I've mentioned before.  So I
think the problem here is, do we need another option in the
existing nl80211 command, if 802.11 *retry* is still allowed to
choose a rate not in the rate mask?  In my opinion, if 802.11
retry should be disabled, then all of the algorithm of the existing
rate adaptive mechanism for rtw88 should be totally re-designed
and we will have to rebuild another one.

> 
> 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); or maybe you want to differentiate management frames and data
> frames (and that's not what the current
> NL80211_CMD_SET_TX_BITRATE_MASK allows for).
> 
> I'm still not (personally) expecting that you *must* do this all via
> the existing CMD_SET_TX_BITRATE_MASK, but to satisfy everyone involved
> here, you at least need to be clear about why you aren't.
> 

Yen-Hsuan

  reply	other threads:[~2020-03-25  5:54 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-13  6:51 [PATCH] rtw88: add debugfs to fix tx rate yhchuang
2020-03-13 10:33 ` Kalle Valo
2020-03-16  2:28   ` Tony Chuang
2020-03-17  7:10     ` Kalle Valo
2020-03-17 10:32       ` Tony Chuang
2020-03-17 15:40         ` Kalle Valo
2020-03-17 15:49           ` Ben Greear
2020-03-18  9:02             ` Tony Chuang
2020-03-20 13:05               ` Johannes Berg
2020-03-25  0:03                 ` Brian Norris
2020-03-25  2:55                   ` Tony Chuang
2020-03-25  5:16                     ` Brian Norris
2020-03-25  5:54                       ` Tony Chuang [this message]
2020-03-25  9:10                         ` Johannes Berg
2020-03-25 15:52                       ` Ben Greear
2020-03-25 18:14                         ` Brian Norris
2020-05-25  9:07                           ` Johannes Berg
2020-05-25 16:16                             ` Ben Greear
2020-03-26 18:27 ` Brian Norris
2021-11-26 16:19 ` Kalle Valo
2021-11-29  2:25   ` Pkshih

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=30819fb6d90d48a9852dd0b7f59aa4f1@realtek.com \
    --to=yhchuang@realtek.com \
    --cc=briannorris@chromium.org \
    --cc=greearb@candelatech.com \
    --cc=johannes@sipsolutions.net \
    --cc=kvalo@codeaurora.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).