friendlyarm / Actions-FriendlyWrt

Build FriendlyWrt using GitHub Actions
307 stars 130 forks source link

[R2S Plus] FriendlyWrt can't configure RTL8822CS to work in both 2.4 and 5 GHz bands simultaneously #65

Open Plaque-fcc opened 2 months ago

Plaque-fcc commented 2 months ago

NanoPi R2S Plus SBC has a WiFi module based on RTL8822CS.

In LuCI I choose Network → Wireless, then Add one 5 Ghz network (select channel manually), Save & Apply. After confirming that my 5 GHz SSID is broadcasted and clients can connect, I do the same thing and configure the second wireless network, which is a 2.4 GHz network, and I select channel manually as well. Save & Apply.

After that, both my networks (they have different SSIDs and secrets) become 2.4 GHz networks. When I edit the first one, switch it back to 5 Ghz, and Save & Apply, both become 5 GHz networks.

Also, I noticed that when you set channel to <auto>, wireless configuration fails to work, the router doesn't broadcast any SSIDs. My other router (a different brand, but with the official OpenWrt image) can handle several SSIDs in both bands simultaneously just fine.

Why can it be happening? How do I fix this?

Kernel: 6.1.63 FriendlyWrt: OpenWrt 23.05.3 r23809-234f1a2efa / LuCI b07cf9dcfc37e021e5619a41c847e63afbd5d34a branch git-24.088.58402-5be51dc Ethernet: IPv4 static WAN + IPv4 DHCP Server LAN Wireless: radio0 Generic MAC80211 802.11ac/b/g/n; mode: Master. Just a very basic config.

Plaque-fcc commented 4 days ago

Fresh 2024-10-16 release, firmware R2S-R2C-Series-FriendlyWrt-23.05.img / OpenWrt 23.05.5 r24106-10cc5fcd00 No changes.

RTL8822CS wireless chip is capable of running in 5GHz 802.11ac mode, or in 2.4GHz/5GHz 802.11n model, therefore it should be possible to configure it in dual band mode.

  1. I can't set up two SSIDs each in its own band, when I set up the second SSID, it overrides band:channel selection like this: uci set wireless.radio0.band='5g'

  2. Channel autodetection doesn't work, you have to specify the channel manually.