Linux wireless drivers development
 help / color / mirror / Atom feed
From: Luka Gejak <luka.gejak@linux.dev>
To: "Pablo Martínez Ríos" <pabloriosmartinez@gmail.com>
Cc: linux-wireless@vger.kernel.org,
	Bitterblue Smith <rtl8821cerfe2@gmail.com>,
	Ping-Ke Shih <pkshih@realtek.com>
Subject: Re: rtw88: RTL8822BE (10ec:b822) never authenticates on 5 GHz with a Huawei router; poor 2.4 GHz link; same hardware works fine on Windows
Date: Tue, 01 Dec 2026 07:29:18 +0100	[thread overview]
Message-ID: <79770308-4769-474A-91D9-018540547533@linux.dev> (raw)
In-Reply-To: <CALTviD=k51ukkAcOMpFPvo=pM6J0BREa2EJpqVbunHQkAopR_w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2133 bytes --]

Hi Pablo,

Thanks for checking both widths. Two comments below.

On November 29, 2026 11:14:17 AM GMT+01:00, Pablo Martínez Ríos
<pabloriosmartinez@gmail.com> wrote:

> So with the radio on CH=36 BW=0 the station-mode authentication still
> fails;

That takes the wide channel setup out of the station test. Both paths
use the same PCI management queue and request a firmware TX report.
The station uses its interface MACID, usually zero with just one
interface. The monitor on its own uses zero. The station's MAC address
is programmed at interface setup and the AP BSSID before auth. The
driver sets up rate adaptation for the AP at association.

There can still be a rate difference. The station uses the lowest
basic rate from the BSS and the monitor on its own uses 6 Mbps. Could
you check the rates marked with a star in iw scan dump? If the lowest
basic rate is above 6 Mbps, try writing 1 to rtw88/force_lowest_basic_rate
in debugfs and repeat the upstairs test at 20 MHz. That forces 6 Mbps
for auth. Please restore the previous value afterwards.

[ ... ]

> a debug patch printing the TX descriptor and TX report status

I found something specific to try. Just before sending auth, the
station calls rtw_ops_mgd_prepare_tx(). That selects the 2.4 GHz
coexistence path even on channel 36. On your RFE type the 5 GHz path
uses different antenna switch settings and gives WiFi a fixed grant.
Writing 0 to coex_enable skips that notification. The write itself
leaves the antenna switch and grants as they were.

If the rate check does not explain it, could you try the attached diff
with coex enabled and the router still at 20 MHz? A few attempts from
the same spot with the original build, with the diff, and then with
the original again would show if auth follows that change. With
debug_mask including 0x40 you should see the connect notification
change from "2G start" to "5G start".

The same card capture could still help if it shows an incoming ACK or
auth response. The outgoing copy comes from TX status, and rtw88 does
not fill in the actual TX rate there. I'd start with the test above.

Best regards,
Luka Gejak

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: test-5ghz-coex.patch --]
[-- Type: text/x-diff; name=test-5ghz-coex.patch, Size: 652 bytes --]

diff --git a/drivers/net/wireless/realtek/rtw88/mac80211.c b/drivers/net/wireless/realtek/rtw88/mac80211.c
--- a/drivers/net/wireless/realtek/rtw88/mac80211.c
+++ b/drivers/net/wireless/realtek/rtw88/mac80211.c
@@ -710,6 +710,9 @@ static void rtw_ops_mgd_prepare_tx(struct ieee80211_hw *hw,
 	mutex_lock(&rtwdev->mutex);
 	rtw_leave_lps_deep(rtwdev);
-	rtw_coex_connect_notify(rtwdev, COEX_ASSOCIATE_START);
+	if (rtwdev->hal.current_band_type == RTW_BAND_5G)
+		rtw_coex_connect_notify(rtwdev, COEX_ASSOCIATE_5G_START);
+	else
+		rtw_coex_connect_notify(rtwdev, COEX_ASSOCIATE_START);
 	rtw_chip_prepare_tx(rtwdev);
 	mutex_unlock(&rtwdev->mutex);
 }

      reply	other threads:[~2026-12-01  6:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-03 22:29 rtw88: RTL8822BE (10ec:b822) never authenticates on 5 GHz with a Huawei router; poor 2.4 GHz link; same hardware works fine on Windows Pablo Martínez Ríos
2026-11-04  1:33 ` Ping-Ke Shih
2026-11-04 10:45   ` Bitterblue Smith
2026-11-11 10:15     ` Pablo Martínez Ríos
2026-11-11 11:58       ` Bitterblue Smith
2026-11-11 21:00         ` Pablo Martínez Ríos
2026-11-12 15:50           ` Bitterblue Smith
2026-11-12 20:44             ` Luka Gejak
2026-11-24 17:20               ` Pablo Martínez Ríos
2026-11-25 22:10                 ` Luka Gejak
2026-11-29 10:14                   ` Pablo Martínez Ríos
2026-12-01  6:29                     ` 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=79770308-4769-474A-91D9-018540547533@linux.dev \
    --to=luka.gejak@linux.dev \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pabloriosmartinez@gmail.com \
    --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