From: "Berg, Benjamin" <benjamin.berg@intel.com>
To: "pkshih@realtek.com" <pkshih@realtek.com>,
"iacobcatalin@gmail.com" <iacobcatalin@gmail.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"johannes@sipsolutions.net" <johannes@sipsolutions.net>,
"regressions@lists.linux.dev" <regressions@lists.linux.dev>
Subject: Re: [PATCH REGRESSION] wifi: mac80211: also accept RX frames reported on channel center frequency
Date: Fri, 4 Dec 2026 09:58:03 +0000 [thread overview]
Message-ID: <e618dce9c12c58ed3540cf22ec6b921f24d93557.camel@intel.com> (raw)
In-Reply-To: <3c4332c6cffd404e8547f0b7153a2b93@realtek.com>
Hi,
On Fri, 2026-12-04 at 02:49 +0000, Ping-Ke Shih wrote:
> Catalin Iacob <iacobcatalin@gmail.com> wrote:
> > On Thu, Dec 03, 2026 at 05:04:58PM +0000, Berg, Benjamin wrote:
> > > So, the field is documented as
> > >
> > > * @freq: frequency the radio was tuned to when receiving this frame, in MHz
> > > * This field must be set for management frames, but isn't strictly needed
> > > * for data (other) frames - for those it only affects radiotap reporting.
> > >
> > > and I always thought that this was supposed to be the control frequency
> > > rather than the channel center frequency.
> > >
> > > Would it be possible to change the reporting on the driver side to so
> > > that everyone agrees on the same definition?
> >
> > I looked through the rtw code, it doesn't seem trivial to me because
> > part of it comes from hardware, e.g. phy_ppdu->chan_index in
> > rtw8922a_fill_freq_with_ppdu and similar code for other Realtek models
> > and I don't know how "normalized" what the hardware reports is. I expect
> > Ping-Ke Shih will answer around feasibility of doing this for Realtek.
>
> Unfortunately the hardware report is controlled by firmware. I'd ask
> firmware to change from center channel to primary channel. However,
> it takes some time to develop and deliver to users. Can we apply
> this patch in advance?
So, I could also imagine two approaches in the driver right now.
One would be to just not report the information for data frames. The
link_sta will be set and mac80211 just double checks that the
information is consistent.
The other could be to simply rewrite it in the driver. That should be
pretty easy to do, at least if we know that the frame was not received
during some off-channel operation.
That said, one could relax the check.
Benjamin
________________________________________
Intel Deutschland GmbH
Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany
Tel: +49 (89) 99143-0
www.intel.de
Managing Directors: Candice Moore, Jeffrey Schneiderman, Ramachandran Sitaraman
Chairperson of the Supervisory Board: Sonja Pierer
Registered Seat: Munich Commercial Register B: Amtsgericht Munich HRB 186928
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
prev parent reply other threads:[~2026-12-04 9:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 16:53 [PATCH REGRESSION] wifi: mac80211: also accept RX frames reported on channel center frequency Catalin Iacob
2026-12-03 17:04 ` Berg, Benjamin
2026-12-03 21:02 ` Catalin Iacob
2026-12-04 2:49 ` Ping-Ke Shih
2026-12-04 4:08 ` Lachlan Hodges
2026-12-04 11:57 ` Catalin Iacob
2026-12-04 9:58 ` Berg, Benjamin [this message]
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=e618dce9c12c58ed3540cf22ec6b921f24d93557.camel@intel.com \
--to=benjamin.berg@intel.com \
--cc=iacobcatalin@gmail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=pkshih@realtek.com \
--cc=regressions@lists.linux.dev \
/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