2023-07-10 21:14:46

by Bitterblue Smith

[permalink] [raw]
Subject: [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.

Signed-off-by: Bitterblue Smith <[email protected]>
---
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c
index 18dc5221a9c0..28e93835e05a 100644
--- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c
+++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c
@@ -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


2023-07-10 21:15:46

by Bitterblue Smith

[permalink] [raw]
Subject: [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.

Signed-off-by: Bitterblue Smith <[email protected]>
---
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8710b.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8710b.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8710b.c
index f0d17b75c5f1..871b8cca8a18 100644
--- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8710b.c
+++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8710b.c
@@ -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,
--
2.41.0

2023-07-10 21:16:50

by Bitterblue Smith

[permalink] [raw]
Subject: [PATCH 3/4] wifi: rtl8xxxu: Enable AP mode for RTL8192EU

Theoretically this chip can handle 127 clients.

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

Signed-off-by: Bitterblue Smith <[email protected]>
---
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c
index f673aa9ba15a..47bcaec6f2db 100644
--- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c
+++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c
@@ -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,
--
2.41.0

2023-07-17 03:12:27

by Ping-Ke Shih

[permalink] [raw]
Subject: RE: [PATCH 1/4] wifi: rtl8xxxu: Enable AP mode for RTL8192FU



> -----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
>
> Theoretically this chip can handle 127 clients.
>
> Tested only very briefly but it should work as well as the RTL8188FU.
>
> Signed-off-by: Bitterblue Smith <[email protected]>

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

Reviewed-by: Ping-Ke Shih <[email protected]>

> ---
> drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c
> b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c
> index 18dc5221a9c0..28e93835e05a 100644
> --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c
> +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c
> @@ -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.

2023-07-25 15:03:57

by Kalle Valo

[permalink] [raw]
Subject: Re: [PATCH 1/4] wifi: rtl8xxxu: Enable AP mode for RTL8192FU

Bitterblue Smith <[email protected]> wrote:

> Theoretically this chip can handle 127 clients.
>
> Tested only very briefly but it should work as well as the RTL8188FU.
>
> Signed-off-by: Bitterblue Smith <[email protected]>
> Reviewed-by: Ping-Ke Shih <[email protected]>

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

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

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