2020-12-24 13:29:00

by Kai-Heng Feng

[permalink] [raw]
Subject: 802.11ac AP mode support on Realtek 8821AE?

Hi Ping-Ke,

We've found that when creating 5G AP on 8821AE, it's not on other
devices' wifi list.

Here's the steps I used to create an AP:
$ nmcli c add type wifi ifname wlp3s0 con-name hello autoconnect no ssid hello
$ nmcli c modify hello 802-11-wireless.mode ap ipv4.method shared
802-11-wireless.band a
$ nmcli connection up hello

If we change "802-11-wireless.band" to "bg", then the AP can be
scanned by other devices.
Does 8821AE have hardware capability to support 5G AP?

Kai-Heng


2020-12-24 18:21:09

by Larry Finger

[permalink] [raw]
Subject: Re: 802.11ac AP mode support on Realtek 8821AE?

On 12/24/20 7:26 AM, Kai-Heng Feng wrote:
> Hi Ping-Ke,
>
> We've found that when creating 5G AP on 8821AE, it's not on other
> devices' wifi list.
>
> Here's the steps I used to create an AP:
> $ nmcli c add type wifi ifname wlp3s0 con-name hello autoconnect no ssid hello
> $ nmcli c modify hello 802-11-wireless.mode ap ipv4.method shared
> 802-11-wireless.band a
> $ nmcli connection up hello
>
> If we change "802-11-wireless.band" to "bg", then the AP can be
> scanned by other devices.
> Does 8821AE have hardware capability to support 5G AP?

What does 'iw list' show for 5G frequencies?

Larry

2020-12-25 04:19:31

by Kai-Heng Feng

[permalink] [raw]
Subject: Re: 802.11ac AP mode support on Realtek 8821AE?

On Fri, Dec 25, 2020 at 2:18 AM Larry Finger <[email protected]> wrote:
>
> On 12/24/20 7:26 AM, Kai-Heng Feng wrote:
> > Hi Ping-Ke,
> >
> > We've found that when creating 5G AP on 8821AE, it's not on other
> > devices' wifi list.
> >
> > Here's the steps I used to create an AP:
> > $ nmcli c add type wifi ifname wlp3s0 con-name hello autoconnect no ssid hello
> > $ nmcli c modify hello 802-11-wireless.mode ap ipv4.method shared
> > 802-11-wireless.band a
> > $ nmcli connection up hello
> >
> > If we change "802-11-wireless.band" to "bg", then the AP can be
> > scanned by other devices.
> > Does 8821AE have hardware capability to support 5G AP?
>
> What does 'iw list' show for 5G frequencies?

* 5180 MHz [36] (23.0 dBm)
* 5200 MHz [40] (23.0 dBm)
* 5220 MHz [44] (23.0 dBm)
* 5240 MHz [48] (23.0 dBm)
* 5260 MHz [52] (23.0 dBm) (no IR, radar detection)
* 5280 MHz [56] (23.0 dBm) (no IR, radar detection)
* 5300 MHz [60] (23.0 dBm) (no IR, radar detection)
* 5320 MHz [64] (23.0 dBm) (no IR, radar detection)
* 5500 MHz [100] (23.0 dBm) (no IR, radar detection)
* 5520 MHz [104] (23.0 dBm) (no IR, radar detection)
* 5540 MHz [108] (23.0 dBm) (no IR, radar detection)
* 5560 MHz [112] (23.0 dBm) (no IR, radar detection)
* 5580 MHz [116] (23.0 dBm) (no IR, radar detection)
* 5600 MHz [120] (23.0 dBm) (no IR, radar detection)
* 5620 MHz [124] (23.0 dBm) (no IR, radar detection)
* 5640 MHz [128] (23.0 dBm) (no IR, radar detection)
* 5660 MHz [132] (23.0 dBm) (no IR, radar detection)
* 5680 MHz [136] (23.0 dBm) (no IR, radar detection)
* 5700 MHz [140] (23.0 dBm) (no IR, radar detection)
* 5745 MHz [149] (30.0 dBm)
* 5765 MHz [153] (30.0 dBm)
* 5785 MHz [157] (30.0 dBm)
* 5805 MHz [161] (30.0 dBm)
* 5825 MHz [165] (30.0 dBm)

Kai-Heng

>
> Larry

2020-12-30 02:17:06

by Ping-Ke Shih

[permalink] [raw]
Subject: Re: 802.11ac AP mode support on Realtek 8821AE?

On Fri, 2020-12-25 at 12:16 +0800, Kai-Heng Feng wrote:
> On Fri, Dec 25, 2020 at 2:18 AM Larry Finger <[email protected]>
> wrote:
> >
> > On 12/24/20 7:26 AM, Kai-Heng Feng wrote:
> > > Hi Ping-Ke,
> > >
> > > We've found that when creating 5G AP on 8821AE, it's not on other
> > > devices' wifi list.
> > >
> > > Here's the steps I used to create an AP:
> > > $ nmcli c add type wifi ifname wlp3s0 con-name hello autoconnect no ssid
> hello
> > > $ nmcli c modify hello 802-11-wireless.mode ap ipv4.method shared
> > > 802-11-wireless.band a
> > > $ nmcli connection up hello
> > >
> > > If we change "802-11-wireless.band" to "bg", then the AP can be
> > > scanned by other devices.
> > > Does 8821AE have hardware capability to support 5G AP?

Yes, it has hardware capability of 5G AP.

I want to make sure which chip you use. 8821AE with rtlwifi, or 8821CE with
rtw88?

---
Ping-Ke

2020-12-30 03:54:08

by Kai-Heng Feng

[permalink] [raw]
Subject: Re: 802.11ac AP mode support on Realtek 8821AE?

On Wed, Dec 30, 2020 at 10:13 AM Pkshih <[email protected]> wrote:
>
> On Fri, 2020-12-25 at 12:16 +0800, Kai-Heng Feng wrote:
> > On Fri, Dec 25, 2020 at 2:18 AM Larry Finger <[email protected]>
> > wrote:
> > >
> > > On 12/24/20 7:26 AM, Kai-Heng Feng wrote:
> > > > Hi Ping-Ke,
> > > >
> > > > We've found that when creating 5G AP on 8821AE, it's not on other
> > > > devices' wifi list.
> > > >
> > > > Here's the steps I used to create an AP:
> > > > $ nmcli c add type wifi ifname wlp3s0 con-name hello autoconnect no ssid
> > hello
> > > > $ nmcli c modify hello 802-11-wireless.mode ap ipv4.method shared
> > > > 802-11-wireless.band a
> > > > $ nmcli connection up hello
> > > >
> > > > If we change "802-11-wireless.band" to "bg", then the AP can be
> > > > scanned by other devices.
> > > > Does 8821AE have hardware capability to support 5G AP?
>
> Yes, it has hardware capability of 5G AP.
>
> I want to make sure which chip you use. 8821AE with rtlwifi, or 8821CE with
> rtw88?

8821AE with rtlwifi here.

Kai-Heng

>
> ---
> Ping-Ke
>

2021-01-05 02:09:35

by Ping-Ke Shih

[permalink] [raw]
Subject: RE: 802.11ac AP mode support on Realtek 8821AE?


> -----Original Message-----
> From: Kai-Heng Feng [mailto:[email protected]]
> Sent: Wednesday, December 30, 2020 11:53 AM
> To: Pkshih
> Cc: [email protected]; [email protected]; [email protected];
> [email protected]
> Subject: Re: 802.11ac AP mode support on Realtek 8821AE?
>
> On Wed, Dec 30, 2020 at 10:13 AM Pkshih <[email protected]> wrote:
> >
> > On Fri, 2020-12-25 at 12:16 +0800, Kai-Heng Feng wrote:
> > > On Fri, Dec 25, 2020 at 2:18 AM Larry Finger <[email protected]>
> > > wrote:
> > > >
> > > > On 12/24/20 7:26 AM, Kai-Heng Feng wrote:
> > > > > Hi Ping-Ke,
> > > > >
> > > > > We've found that when creating 5G AP on 8821AE, it's not on other
> > > > > devices' wifi list.
> > > > >
> > > > > Here's the steps I used to create an AP:
> > > > > $ nmcli c add type wifi ifname wlp3s0 con-name hello autoconnect no ssid
> > > hello
> > > > > $ nmcli c modify hello 802-11-wireless.mode ap ipv4.method shared
> > > > > 802-11-wireless.band a
> > > > > $ nmcli connection up hello
> > > > >
> > > > > If we change "802-11-wireless.band" to "bg", then the AP can be
> > > > > scanned by other devices.
> > > > > Does 8821AE have hardware capability to support 5G AP?
> >
> > Yes, it has hardware capability of 5G AP.
> >
> > I want to make sure which chip you use. 8821AE with rtlwifi, or 8821CE with
> > rtw88?
>
> 8821AE with rtlwifi here.
>

I'm not an expert in network-manager, so I try to bring up 5G softap with hostapd,
and then my cellphone can connect to it and ping ok.
Could you try it with attached hostapd configuration file?

I use default configuration but change below
interface=wlan0
ssid=test-8821ae
hw_mode=a
channel=149

The driver I use is built-in in kernel 5.9.10.
The hostap is hostap_2_9-1731-g56a1df71e (just list the version I use; I believe other version also work)

---
Ping-Ke



Attachments:
hostapd-8821ae-test.conf (97.46 kB)
hostapd-8821ae-test.conf

2021-01-05 13:22:56

by Kai-Heng Feng

[permalink] [raw]
Subject: Re: 802.11ac AP mode support on Realtek 8821AE?

On Tue, Jan 5, 2021 at 10:07 AM Pkshih <[email protected]> wrote:
>
>
> > -----Original Message-----
> > From: Kai-Heng Feng [mailto:[email protected]]
> > Sent: Wednesday, December 30, 2020 11:53 AM
> > To: Pkshih
> > Cc: [email protected]; [email protected]; [email protected];
> > [email protected]
> > Subject: Re: 802.11ac AP mode support on Realtek 8821AE?
> >
> > On Wed, Dec 30, 2020 at 10:13 AM Pkshih <[email protected]> wrote:
> > >
> > > On Fri, 2020-12-25 at 12:16 +0800, Kai-Heng Feng wrote:
> > > > On Fri, Dec 25, 2020 at 2:18 AM Larry Finger <[email protected]>
> > > > wrote:
> > > > >
> > > > > On 12/24/20 7:26 AM, Kai-Heng Feng wrote:
> > > > > > Hi Ping-Ke,
> > > > > >
> > > > > > We've found that when creating 5G AP on 8821AE, it's not on other
> > > > > > devices' wifi list.
> > > > > >
> > > > > > Here's the steps I used to create an AP:
> > > > > > $ nmcli c add type wifi ifname wlp3s0 con-name hello autoconnect no ssid
> > > > hello
> > > > > > $ nmcli c modify hello 802-11-wireless.mode ap ipv4.method shared
> > > > > > 802-11-wireless.band a
> > > > > > $ nmcli connection up hello
> > > > > >
> > > > > > If we change "802-11-wireless.band" to "bg", then the AP can be
> > > > > > scanned by other devices.
> > > > > > Does 8821AE have hardware capability to support 5G AP?
> > >
> > > Yes, it has hardware capability of 5G AP.
> > >
> > > I want to make sure which chip you use. 8821AE with rtlwifi, or 8821CE with
> > > rtw88?
> >
> > 8821AE with rtlwifi here.
> >
>
> I'm not an expert in network-manager, so I try to bring up 5G softap with hostapd,
> and then my cellphone can connect to it and ping ok.
> Could you try it with attached hostapd configuration file?
>
> I use default configuration but change below
> interface=wlan0
> ssid=test-8821ae
> hw_mode=a
> channel=149
>
> The driver I use is built-in in kernel 5.9.10.
> The hostap is hostap_2_9-1731-g56a1df71e (just list the version I use; I believe other version also work)

Using hostapd directly can make AP in 5G work. So apparently the issue
lies between NetworkManager and WPA supplicant.
However, though it works with hostapd, the signal strength is
extremely weak. Is this expected?

Kai-Heng

>
> ---
> Ping-Ke
>
>

2021-01-08 05:56:07

by Ping-Ke Shih

[permalink] [raw]
Subject: Re: 802.11ac AP mode support on Realtek 8821AE?

On Tue, 2021-01-05 at 12:30 +0000, Kai-Heng Feng wrote:
> On Tue, Jan 5, 2021 at 10:07 AM Pkshih <[email protected]> wrote:
> >
> >
> > > -----Original Message-----
> > > From: Kai-Heng Feng [mailto:[email protected]]
> > > Sent: Wednesday, December 30, 2020 11:53 AM
> > > To: Pkshih
> > > Cc: [email protected]; [email protected]; hugh.chao@c
> anonical.com;
> > > [email protected]
> > > Subject: Re: 802.11ac AP mode support on Realtek 8821AE?
> > >
> > > On Wed, Dec 30, 2020 at 10:13 AM Pkshih <[email protected]> wrote:
> > > >
> > > > On Fri, 2020-12-25 at 12:16 +0800, Kai-Heng Feng wrote:
> > > > > On Fri, Dec 25, 2020 at 2:18 AM Larry Finger <[email protected]
> t>
> > > > > wrote:
> > > > > >
> > > > > > On 12/24/20 7:26 AM, Kai-Heng Feng wrote:
> > > > > > > Hi Ping-Ke,
> > > > > > >
> > > > > > > We've found that when creating 5G AP on 8821AE, it's not on other
> > > > > > > devices' wifi list.
> > > > > > >
> > > > > > > Here's the steps I used to create an AP:
> > > > > > > $ nmcli c add type wifi ifname wlp3s0 con-name hello autoconnect
> no ssid
> > > > > hello
> > > > > > > $ nmcli c modify hello 802-11-wireless.mode ap ipv4.method shared
> > > > > > > 802-11-wireless.band a
> > > > > > > $ nmcli connection up hello
> > > > > > >
> > > > > > > If we change "802-11-wireless.band" to "bg", then the AP can be
> > > > > > > scanned by other devices.
> > > > > > > Does 8821AE have hardware capability to support 5G AP?
> > > >
> > > > Yes, it has hardware capability of 5G AP.
> > > >
> > > > I want to make sure which chip you use. 8821AE with rtlwifi, or 8821CE
> with
> > > > rtw88?
> > >
> > > 8821AE with rtlwifi here.
> > >
> >
> > I'm not an expert in network-manager, so I try to bring up 5G softap with
> hostapd,
> > and then my cellphone can connect to it and ping ok.
> > Could you try it with attached hostapd configuration file?
> >
> > I use default configuration but change below
> > interface=wlan0
> > ssid=test-8821ae
> > hw_mode=a
> > channel=149
> >
> > The driver I use is built-in in kernel 5.9.10.
> > The hostap is hostap_2_9-1731-g56a1df71e (just list the version I use; I
> believe other version also work)
>
> Using hostapd directly can make AP in 5G work. So apparently the issue
> lies between NetworkManager and WPA supplicant.
> However, though it works with hostapd, the signal strength is
> extremely weak. Is this expected?
>

I found PHY and RF parameters are not updated properly years ago.
It would be much better if attached patch is applied. Please help to
try if it also works for you. 

side note: I don't submit this patch immediately, because I need
time to verify this patch before submitting.

---
Ping-Ke


Attachments:
0001-rtlwifi-8821ae-upgrade-PHY-and-RF-parameters.patch (22.04 kB)
0001-rtlwifi-8821ae-upgrade-PHY-and-RF-parameters.patch

2021-01-08 08:21:42

by Kai-Heng Feng

[permalink] [raw]
Subject: Re: 802.11ac AP mode support on Realtek 8821AE?

On Fri, Jan 8, 2021 at 1:53 PM Pkshih <[email protected]> wrote:
>
> On Tue, 2021-01-05 at 12:30 +0000, Kai-Heng Feng wrote:
> > On Tue, Jan 5, 2021 at 10:07 AM Pkshih <[email protected]> wrote:
> > >
> > >
> > > > -----Original Message-----
> > > > From: Kai-Heng Feng [mailto:[email protected]]
> > > > Sent: Wednesday, December 30, 2020 11:53 AM
> > > > To: Pkshih
> > > > Cc: [email protected]; [email protected]; hugh.chao@c
> > anonical.com;
> > > > [email protected]
> > > > Subject: Re: 802.11ac AP mode support on Realtek 8821AE?
> > > >
> > > > On Wed, Dec 30, 2020 at 10:13 AM Pkshih <[email protected]> wrote:
> > > > >
> > > > > On Fri, 2020-12-25 at 12:16 +0800, Kai-Heng Feng wrote:
> > > > > > On Fri, Dec 25, 2020 at 2:18 AM Larry Finger <[email protected]
> > t>
> > > > > > wrote:
> > > > > > >
> > > > > > > On 12/24/20 7:26 AM, Kai-Heng Feng wrote:
> > > > > > > > Hi Ping-Ke,
> > > > > > > >
> > > > > > > > We've found that when creating 5G AP on 8821AE, it's not on other
> > > > > > > > devices' wifi list.
> > > > > > > >
> > > > > > > > Here's the steps I used to create an AP:
> > > > > > > > $ nmcli c add type wifi ifname wlp3s0 con-name hello autoconnect
> > no ssid
> > > > > > hello
> > > > > > > > $ nmcli c modify hello 802-11-wireless.mode ap ipv4.method shared
> > > > > > > > 802-11-wireless.band a
> > > > > > > > $ nmcli connection up hello
> > > > > > > >
> > > > > > > > If we change "802-11-wireless.band" to "bg", then the AP can be
> > > > > > > > scanned by other devices.
> > > > > > > > Does 8821AE have hardware capability to support 5G AP?
> > > > >
> > > > > Yes, it has hardware capability of 5G AP.
> > > > >
> > > > > I want to make sure which chip you use. 8821AE with rtlwifi, or 8821CE
> > with
> > > > > rtw88?
> > > >
> > > > 8821AE with rtlwifi here.
> > > >
> > >
> > > I'm not an expert in network-manager, so I try to bring up 5G softap with
> > hostapd,
> > > and then my cellphone can connect to it and ping ok.
> > > Could you try it with attached hostapd configuration file?
> > >
> > > I use default configuration but change below
> > > interface=wlan0
> > > ssid=test-8821ae
> > > hw_mode=a
> > > channel=149
> > >
> > > The driver I use is built-in in kernel 5.9.10.
> > > The hostap is hostap_2_9-1731-g56a1df71e (just list the version I use; I
> > believe other version also work)
> >
> > Using hostapd directly can make AP in 5G work. So apparently the issue
> > lies between NetworkManager and WPA supplicant.
> > However, though it works with hostapd, the signal strength is
> > extremely weak. Is this expected?
> >
>
> I found PHY and RF parameters are not updated properly years ago.
> It would be much better if attached patch is applied. Please help to
> try if it also works for you.

Thanks, the signal strength still isn't super strong but much better
than the previous state.

Tested-by: Kai-Heng Feng <[email protected]>

>
> side note: I don't submit this patch immediately, because I need
> time to verify this patch before submitting.
>
> ---
> Ping-Ke
>