Linux wireless drivers development
 help / color / mirror / Atom feed
From: Mehmet Fide <mehmet.fide@gmail.com>
To: Shreyansh Khajanchi <hi@shreyan.sh>
Cc: "Ping-Ke Shih" <pkshih@realtek.com>,
	"Jes Sorensen" <Jes.Sorensen@gmail.com>,
	"Georg Müller" <georgmueller@gmx.net>,
	"Bitterblue Smith" <rtl8821cerfe2@gmail.com>,
	linux-wireless@vger.kernel.org, mehmet.fide@screeningeagle.com
Subject: Re: [PATCH] wifi: rtl8xxxu: Enable AP mode for RTL8188EU
Date: Thu, 26 Nov 2026 06:21:52 +0100	[thread overview]
Message-ID: <20261126052152.2887192-1-mehmet.fide@gmail.com> (raw)
In-Reply-To: <81c3d0056a0849078715e0f0be074d1e@realtek.com>

Hi Shreyansh, Ping-Ke,

Here are the air captures and TIM results Ping-Ke asked for. Georg's
RFC [1] enables AP mode on the same chip; the beacon problem below is
the same with both.

Setup: rtw-next 18d0bedbb5f0 plus this patch, Edimax EW-7811Un V2
(RTL8188EUS) as AP, hostapd on channel 6, beacon_int 100,
dtim_period 2, open and WPA2. The client is an RTL8822CE (rtw88) with
power save on; it dozes (PM=1, and mac80211 on the AP marks it PS_STA
and buffers frames for it). Two MT7921AU sniffers capture the air and
agree on the beacon contents. Received packets are counted with
tcpdump on the client. In each run the AP pings the client 20 times,
then sends 20 UDP broadcasts, one per second. Reference AP with the
same client: ath9k_htc.

Beacons, this patch alone (4 runs): 4 to 8 beacons in 20 s instead of
about 195. The client never dozes, so TIM cannot be checked. Georg's
RFC sends one beacon after hostapd starts and then none. With two
changes from [1] (REG_MBID_NUM |= BIT(3) | BIT(4) in AP mode, as the
vendor driver does, and the vendor TBTT hold time) there is a beacon
at every TBTT. The TIM results below are with these two changes,
16 runs.

What works:
- Association and traffic, open and WPA2.
- Unicast TIM: the client's AID is set while mac80211 has frames
  buffered for it.

What does not work:
- The DTIM count does not count down. mac80211 counts it down once per
  ieee80211_beacon_get(), and the hardware repeats the uploaded
  beacon, so the count stays at one value until the next upload.
  ath9k_htc sends 1, 0, 1, 0.
- The multicast bit is never set, and broadcast frames go out when
  they are queued, not after a DTIM beacon. rtl8xxxu does not set
  HOST_BROADCAST_PS_BUFFERING, so mac80211 does not buffer them.
  ath9k_htc sets the bit in the DTIM beacons and sends the broadcasts
  after them.

What works with problems:
- Unicast delivery to the dozing client depends on how many beacons
  happen to carry DTIM count 0. In 3 runs only 2 of 200, 2 of 217 and
  3 of 213 did, and none of the 20 pings reached the client although
  its AID was set in almost every beacon. In runs with 40 % or more
  such beacons, 12 to 20 pings arrived. With ath9k_htc every run
  delivered 20 of 20.
- "rtl8xxxu_send_beacon_frame: Failed to read beacon valid bit"
  appeared in 11 of these 16 runs.
- Frames sent to the 8188e are often not acked (62-73 % carry the
  retry bit), in station mode as well. Details are in [1].

[1] https://lore.kernel.org/linux-wireless/20261125160616.1201001-1-mehmet.fide@gmail.com/

Best regards,
Mehmet

  reply	other threads:[~2026-11-26  5:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-30  7:35 [PATCH] wifi: rtl8xxxu: Enable AP mode for RTL8188EU hi
2026-11-01  4:10 ` Ping-Ke Shih
2026-11-26  5:21   ` Mehmet Fide [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-03-12 14:21 Georg Müller
2026-03-12 14:29 ` Georg Müller
2026-03-12 15:58 ` Bitterblue Smith
2026-03-12 16:08   ` Georg Müller
2026-03-12 17:06     ` Bitterblue Smith
2026-03-12 22:20       ` Bitterblue Smith
2026-03-12 23:52         ` Georg Müller

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=20261126052152.2887192-1-mehmet.fide@gmail.com \
    --to=mehmet.fide@gmail.com \
    --cc=Jes.Sorensen@gmail.com \
    --cc=georgmueller@gmx.net \
    --cc=hi@shreyan.sh \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mehmet.fide@screeningeagle.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