Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] wifi: rtl8xxxu: Enable AP mode for RTL8188EU
@ 2026-10-30  7:35 hi
  2026-11-01  4:10 ` Ping-Ke Shih
  0 siblings, 1 reply; 10+ messages in thread
From: hi @ 2026-10-30  7:35 UTC (permalink / raw)
  To: Jes Sorensen; +Cc: linux-wireless, Ping-Ke Shih

From 0a3cdd4c6cc416804e49c935516a22e854a87483 Mon Sep 17 00:00:00 2001
From: Shreyansh Khajanchi <hi@shreyan.sh>
Date: Fri, 30 Oct 2026 12:34:44 +0530
Subject: [PATCH] wifi: rtl8xxxu: Enable AP mode for RTL8188EU

The RTL8188EU shares the AP mode implementation in core.c with the
other chips supported by this driver, so advertising
NL80211_IFTYPE_AP is enough to make it usable as an access point.

Set max_macid_num to 32 as well, so that max_ap_assoc_sta is
initialised. The vendor driver defines NUM_STA as 32, and starts
station MAC IDs at 2 because 0 and 1 are reserved for
broadcast/multicast. This matches RTL8192CU, which also sets
max_macid_num to 32.

Tested with an RTL8188EUS (0bda:8179) on a Raspberry Pi Zero running
6.12 (armv6): hostapd serves a 2.4 GHz WPA2 network, clients associate
and pass traffic.

Signed-off-by: Shreyansh Khajanchi <hi@shreyan.sh>
---
 drivers/net/wireless/realtek/rtl8xxxu/8188e.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/wireless/realtek/rtl8xxxu/8188e.c b/drivers/net/wireless/realtek/rtl8xxxu/8188e.c
index fea5aec..0c3ab32 100644
--- a/drivers/net/wireless/realtek/rtl8xxxu/8188e.c
+++ b/drivers/net/wireless/realtek/rtl8xxxu/8188e.c
@@ -1867,6 +1867,8 @@ struct rtl8xxxu_fileops rtl8188eu_fops = {
 	.init_reg_pkt_life_time = 1,
 	.gen2_thermal_meter = 1,
 	.hw_feature_report = 0,
+	.supports_ap = 1,
+	.max_macid_num = 32,
 	.max_sec_cam_num = 32,
 	.adda_1t_init = 0x0b1b25a0,
 	.adda_1t_path_on = 0x0bdb25a0,
-- 
2.56.0

^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [PATCH] wifi: rtl8xxxu: Enable AP mode for RTL8188EU
@ 2026-03-12 14:21 Georg Müller
  2026-03-12 14:29 ` Georg Müller
  2026-03-12 15:58 ` Bitterblue Smith
  0 siblings, 2 replies; 10+ messages in thread
From: Georg Müller @ 2026-03-12 14:21 UTC (permalink / raw)
  To: Jes.Sorensen; +Cc: linux-wireless, linux-kernel, Georg Müller

Allow devices with this driver to be used as a wireless access point.

I successfully tested this with a TP-Link TP-Link TL-WN725N adapter.

Experiments two years ago failed, but some other improvements to the
driver seemed to have resolved theses issues.

The max_macid_num is conservative. The old driver used 32 [1], some
other sources said 64. I have not enough adapters to test any of the
higher values. Given the usage of this chipset in nano dongles, I think
the 16 might be high enough.

Signed-off-by: Georg Müller <georgmueller@gmx.net>
---
 drivers/net/wireless/realtek/rtl8xxxu/8188e.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/wireless/realtek/rtl8xxxu/8188e.c b/drivers/net/wireless/realtek/rtl8xxxu/8188e.c
index 766a7a7c7d28..c6aecb28d28b 100644
--- a/drivers/net/wireless/realtek/rtl8xxxu/8188e.c
+++ b/drivers/net/wireless/realtek/rtl8xxxu/8188e.c
@@ -1867,6 +1867,8 @@ struct rtl8xxxu_fileops rtl8188eu_fops = {
 	.init_reg_pkt_life_time = 1,
 	.gen2_thermal_meter = 1,
 	.max_sec_cam_num = 32,
+	.supports_ap = 1,
+	.max_macid_num = 16,
 	.adda_1t_init = 0x0b1b25a0,
 	.adda_1t_path_on = 0x0bdb25a0,
 	/*
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-11-26  5:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
  -- 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox