Skip to contentSkip to conversation

wifi: rtl8xxxu: Enable AP mode for RTL8192FU

PATCH In review Bitterblue Smith 3 participants 6 messages Jul 10, 2023 – Jul 25, 2023 RTL8XXXU wireless driver (rtl8xxxu)

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 wifi: rtl8xxxu: Enable AP mode for RTL8192FU

Theoretically this chip can handle 127 clients.

Tested only very briefly but it should work as well as the RTL8188FU.

---
 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c +2 -0
index 18dc5221a9c0..28e93835e05a 100644
@@ -2079,6 +2079,8 @@ struct rtl8xxxu_fileops rtl8192fu_fops = {
 	.ampdu_max_time = 0x5e,
 	.ustime_tsf_edca = 0x50,
 	.max_aggr_num = 0x1f1f,
+	.supports_ap = 1,
+	.max_macid_num = 128,
 	.trxff_boundary = 0x3f3f,
 	.pbp_rx = PBP_PAGE_SIZE_256,
 	.pbp_tx = PBP_PAGE_SIZE_256,
Signature · 1 line
2.41.0
#1 lore raw

PATCH 2/4 wifi: rtl8xxxu: Enable AP mode for RTL8710BU (RTL8188GU)

Theoretically this chip can handle 15 clients.

Tested only very briefly but it should work as well as the RTL8188FU.

---
 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8710b.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8710b.c +2 -0
index f0d17b75c5f1..871b8cca8a18 100644
@@ -1875,6 +1875,8 @@ struct rtl8xxxu_fileops rtl8710bu_fops = {
 	 */
 	.ustime_tsf_edca = 0x28,
 	.max_aggr_num = 0x0c14,
+	.supports_ap = 1,
+	.max_macid_num = 16,
 	.adda_1t_init = 0x03c00016,
 	.adda_1t_path_on = 0x03c00016,
 	.trxff_boundary = 0x3f7f,
Signature · 1 line
2.41.0
#2 lore raw

PATCH 3/4 wifi: rtl8xxxu: Enable AP mode for RTL8192EU

In reply to Bitterblue Smith

Theoretically this chip can handle 127 clients.

Tested only very briefly but it should work as well as the RTL8188FU.

---
 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c +2 -0
index f673aa9ba15a..47bcaec6f2db 100644
@@ -1767,6 +1767,8 @@ struct rtl8xxxu_fileops rtl8192eu_fops = {
 	.has_s0s1 = 0,
 	.gen2_thermal_meter = 1,
 	.needs_full_init = 1,
+	.supports_ap = 1,
+	.max_macid_num = 128,
 	.adda_1t_init = 0x0fc01616,
 	.adda_1t_path_on = 0x0fc01616,
 	.adda_2t_path_on_a = 0x0fc01616,
Signature · 1 line
2.41.0
#3 lore raw

PATCH 4/4 wifi: rtl8xxxu: Enable AP mode for RTL8723BU

In reply to Bitterblue Smith

Theoretically this chip can handle 127 clients.

Only compile tested but it should work as well as the RTL8188FU.

---
 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c +2 -0
index 13ad5d5b73f4..954369ed6226 100644
@@ -1742,6 +1742,8 @@ struct rtl8xxxu_fileops rtl8723bu_fops = {
 	.ampdu_max_time = 0x5e,
 	.ustime_tsf_edca = 0x50,
 	.max_aggr_num = 0x0c14,
+	.supports_ap = 1,
+	.max_macid_num = 128,
 	.adda_1t_init = 0x01c00014,
 	.adda_1t_path_on = 0x01c00014,
 	.adda_2t_path_on_a = 0x01c00014,
Signature · 1 line
2.41.0
Reviewed-by on v1 1/4
#4 lore raw
In reply to Bitterblue Smith
Quoted 9 lines

-----Original Message-----
From: Bitterblue Smith <[email protected]>
Sent: Tuesday, July 11, 2023 5:03 AM
To: [email protected]
Cc: Jes Sorensen <[email protected]>; Ping-Ke Shih <[email protected]>
Subject: [PATCH 1/4] wifi: rtl8xxxu: Enable AP mode for RTL8192FU

Quoted 5 lines

Theoretically this chip can handle 127 clients.

Tested only very briefly but it should work as well as the RTL8188FU.

With your positive results, it should be good to have this patchset, so

Quoted 22 lines
---
 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c +2 -1
index 18dc5221a9c0..28e93835e05a 100644
@@ -2079,6 +2079,8 @@ struct rtl8xxxu_fileops rtl8192fu_fops = {
        .ampdu_max_time = 0x5e,
        .ustime_tsf_edca = 0x50,
        .max_aggr_num = 0x1f1f,
+       .supports_ap = 1,
+       .max_macid_num = 128,
        .trxff_boundary = 0x3f3f,
        .pbp_rx = PBP_PAGE_SIZE_256,
        .pbp_tx = PBP_PAGE_SIZE_256,
--

2.41.0

------Please consider the environment before printing this e-mail.

#5 lore raw
In reply to Bitterblue Smith
Quoted 6 lines · Bitterblue Smith

Theoretically this chip can handle 127 clients.

Tested only very briefly but it should work as well as the RTL8188FU.

4 patches applied to wireless-next.git, thanks.

efbc7e791a51 wifi: rtl8xxxu: Enable AP mode for RTL8192FU dd71aca9a58b wifi: rtl8xxxu: Enable AP mode for RTL8710BU (RTL8188GU) 8c34b62167b4 wifi: rtl8xxxu: Enable AP mode for RTL8192EU 4831a80908f1 wifi: rtl8xxxu: Enable AP mode for RTL8723BU

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches