[RFC PATCH v4 0/5] wifi: rtl8xxxu: implement AP mode for 8188EU

From: Georg Müller

Date: Thu Nov 26 2026 - 05:58:11 EST


This series tries to implement AP mode for Realtek RTL8188EU chips.

As requested by Mehmet, this is my current state so he can continue
with it. It builds, but I did not test it on hardware since v3.

Still open, see the discussion in the v3 thread:
- RTL8188E_MAX_MAC_ID_NUM is still 16; Bitterblue suggested 64.
- Beacons: the hardware clears the beacon queue after the first
beacon (REG_MBID_NUM), and the TBTT hold time differs from the
vendor driver. Mehmet has fixes for both.
- Enabling AP mode (patch 4) should move to the end of the series,
after the beacon fixes.
- max_ap_assoc_sta is max_macid_num - 1, but mac ids 0 and 1 are
reserved, so the last allowed station is refused with -ENOSPC.

---
Changes in v4:
- add commit messages and missing Signed-off-by
- allocate ra_info with devm_kcalloc() on the USB interface in probe
- limit the TX report items to RTL8188E_MAX_MAC_ID_NUM
- refuse stations whose mac id has no ra_info entry
- add patch to set the macid in the TX descriptor; fall back to
ra_info[0] when macid is a security CAM index
Changes in v3:
- fix compile errors caused by testing on machine with older kernel
Changes in v2:
- add patch to move dynamic_tx_rpt_timing_counter from ra_info to priv
- convert ra_info to a dynamic array
- update max report mac id after station add/remove

v3: https://lore.kernel.org/all/20260313135321.3196688-1-georgmueller@xxxxxxx/

Georg Müller (5):
wifi: rtl8xxxu: move dynamic_tx_rpt_timing_counter from ra_info to
priv
wifi: rtl8xxxu: handle rate control per mac_id for 8188e
wifi: rtl8xxxu: update max report mac id on station add / remove for
8188e chips
wifi: rtl8xxxu: Enable AP mode for RTL8188EU
wifi: rtl8xxxu: set macid in TX descriptor for 8188e

drivers/net/wireless/realtek/rtl8xxxu/8188e.c | 28 +++++----
drivers/net/wireless/realtek/rtl8xxxu/core.c | 57 +++++++++++++++++--
.../net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 5 +-
3 files changed, 72 insertions(+), 18 deletions(-)


base-commit: 4dce97c6c265544342e716e62fd24bbb232590c5
--
2.56.1