Linux wireless drivers development
 help / color / mirror / Atom feed
From: Luka Gejak <luka.gejak@linux.dev>
To: martin@rfdeck.de
Cc: pkshih@realtek.com, rtl8821cerfe2@gmail.com,
	linux-wireless@vger.kernel.org
Subject: Re: wifi: rtw88: usb: no TX on 5 GHz after setting up a monitor interface again on the same frequency
Date: Thu, 03 Dec 2026 10:31:26 +0100	[thread overview]
Message-ID: <11467D23-6368-43B2-B059-83BF17D00E27@linux.dev> (raw)
In-Reply-To: <20261203081831.Horde.F65-ziX-SUQdZucUPml6WNf@mail.your-server.de>

On December 3, 2026 8:18:31 AM GMT+01:00, martin@rfdeck.de wrote:
>Luka Gejak <luka.gejak@linux.dev> wrote:
>> Could you try adding this at the end of the local->emulate_chanctx block
>> in ieee80211_hw_conf_init()?
>> 
>> 	changed |= IEEE80211_CONF_CHANGE_CHANNEL;
>> 
>> This restored the channel update in mac80211_hwsim. With stock rtw88,
>> could you check TX on both adapters and beacon RX on the RTL8814AU
>> after the second setup at 5180 MHz and 80 MHz width, before retuning?
>
>Hi Luka,
>
>That works. With your change in mac80211 and stock rtw88 (Ubuntu
>7.0.0-43), the first drv_config after the second drv_start now has a
>mask of 0xffffffdd instead of 0xffffff9d, so CHANNEL is set. After the
>second setup on 5180 MHz at 80 MHz width, before any retuning:
>- The RTL8814AU receives 1113 beacons in 30 s (1157 on the first
>  setup, 0 without the change).
>- The RTL8814AU and the RTL8812AU both inject 50 of 50 frames.
>- The RTL8814AU register values match the first setup.
>
>A second setup on 5200 MHz behaves the same. No new messages in dmesg,
>and the other wireless drivers on the box (mt7921u, iwlwifi, ath9k_htc
>and the other rtw88 chips) work normally with the modified mac80211.
>
>Ping-Ke pointed to the rtw89 fix for non-chanctx devices
>(e07c9af7bbc8). The same check in rtw_ops_config() also fixes it with
>stock mac80211; details are in the v3 thread. So the fix can go into
>either rtw88 or mac80211. I leave it to you and Ping-Ke which one you
>prefer.
>

Ping-Ke said he prefers the change to be in rtw88, so just let me know
whether you prefer for you or me to send it. I'm ok with either.

Best regards,
Luka Gejak

      reply	other threads:[~2026-12-03  9:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 19:50 wifi: rtw88: usb: no TX on 5 GHz after setting up a monitor interface again on the same frequency martin
2026-12-01 19:56 ` martin
2026-12-02 14:44   ` Luka Gejak
2026-12-03  7:18     ` martin
2026-12-03  9:31       ` Luka Gejak [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=11467D23-6368-43B2-B059-83BF17D00E27@linux.dev \
    --to=luka.gejak@linux.dev \
    --cc=linux-wireless@vger.kernel.org \
    --cc=martin@rfdeck.de \
    --cc=pkshih@realtek.com \
    --cc=rtl8821cerfe2@gmail.com \
    /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