[ROC-RK3568-PC][Wifi] Bandwith limited to 20MHz

I have the following issue with the wifi module AP6275S: I am trying to run an access point in wifi ac mode but I when running iperf I saw the throughput is always around 125mbps. When running iw list I saw that in the capabilities only 20MHz bandwith is supported, which I think it may explain the issue:

iw list
Wiphy phy0
wiphy index: 0
max # scan SSIDs: 10
max scan IEs length: 2048 bytes
max # sched scan SSIDs: 0
max # match sets: 0
max # scan plans: 1
max scan plan interval: -1
max scan plan iterations: 0
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports roaming.
Device supports T-DLS.
Available Antennas: TX 0 RX 0
Supported interface modes:
* IBSS
* managed
* AP
* P2P-client
* P2P-GO
* P2P-device
Band 1:
Capabilities: 0x1020
HT20
Static SM Power Save
RX HT20 SGI
No RX STBC
Max AMSDU length: 3839 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 16 usec (0x07)
HT RX MCS rate indexes supported: 0-7
HT TX MCS rate indexes are undefined
Frequencies:
* 2412 MHz [1] (20.0 dBm)
* 2417 MHz [2] (20.0 dBm)
* 2422 MHz [3] (20.0 dBm)
* 2427 MHz [4] (20.0 dBm)
* 2432 MHz [5] (20.0 dBm)
* 2437 MHz [6] (20.0 dBm)
* 2442 MHz [7] (20.0 dBm)
* 2447 MHz [8] (20.0 dBm)
* 2452 MHz [9] (20.0 dBm)
* 2457 MHz [10] (20.0 dBm)
* 2462 MHz [11] (20.0 dBm)
* 2467 MHz [12] (20.0 dBm)
* 2472 MHz [13] (20.0 dBm)
Band 2:
Capabilities: 0x1020
HT20
Static SM Power Save
RX HT20 SGI
No RX STBC
Max AMSDU length: 3839 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 16 usec (0x07)
HT RX MCS rate indexes supported: 0-7
HT TX MCS rate indexes are undefined
VHT Capabilities (0x0f815832):
Max MPDU length: 11454
Supported Channel Width: neither 160 nor 80+80
RX LDPC
short GI (80 MHz)
SU Beamformer
SU Beamformee
VHT RX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT RX highest supported: 0 Mbps
VHT TX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT TX highest supported: 0 Mbps
Frequencies:
* 5180 MHz [36] (0.0 dBm)
* 5200 MHz [40] (0.0 dBm)
* 5220 MHz [44] (0.0 dBm)
* 5240 MHz [48] (0.0 dBm)
* 5260 MHz [52] (0.0 dBm)
* 5280 MHz [56] (0.0 dBm)
* 5300 MHz [60] (0.0 dBm)
* 5320 MHz [64] (0.0 dBm)
* 5745 MHz [149] (0.0 dBm)
* 5765 MHz [153] (0.0 dBm)
* 5785 MHz [157] (0.0 dBm)
* 5805 MHz [161] (0.0 dBm)
* 5825 MHz [165] (0.0 dBm)
valid interface combinations:
* #{ AP } <= 2, #{ managed } <= 4, #{ P2P-client, P2P-GO } <= 2, #{ P2P-device } <= 1, #{
IBSS } <= 1,
total <= 5, #channels <= 2
Supported extended features:
* [ LOW_SPAN_SCAN ]: low span scan
* [ LOW_POWER_SCAN ]: low power scan
* [ HIGH_ACCURACY_SCAN ]: high accuracy scan

Is this expected? I would expect to see at least HT20/HT40. Of course I set hw_mode=1 in hostapd but had no success.

I saw the following kernel messages during boot:
[ 17.291957] [dhd] dhd_conf_set_path_params : Final fw_path=/vendor/etc/firmware/fw_bcm43752a2_ag.bin
[ 17.292008] [dhd] dhd_conf_set_path_params : Final clm_path=/vendor/etc/firmware/clm_bcm43752a2_ag.blob
[ 17.293991] dhd_os_open_image1: /vendor/etc/firmware/fw_bcm43752a2_ag.bin (743607 bytes) open success
[ 17.490209] dhd_os_open_image1: /vendor/etc/firmware/clm_bcm43752a2_ag.blob (28865 bytes) open success

Is the bandwith limited because of loading this firmware? Should I update my kernel to a one containing this patch https://patchwork.kernel.org/pro … [email]9-2-angus@akkea.ca[/email]/ to be able to increase wifi’s throughput?

Thanks in advance.

Valentin

Hello, did you use openwrt system? openwrt of 3568 supports HT20 and HT40, so it is not the issure to kernel.
so you can try to edit your hostapd.conf, set hw_mode to “g”. this is a hostapd.conf for openwrt for examples:

driver=nl80211
logger_syslog=127
logger_syslog_level=2
logger_stdout=127
logger_stdout_level=2
country_code=US
ieee80211d=1
hw_mode=g
supported_rates=60 90 120 180 240 360 480 540
basic_rates=60 120 240
beacon_int=100
dtim_period=2
channel=1
chanlist=1

ieee80211n=1
ht_coex=0

radio_config_id=570b89ac214840092cda49c8238746df
interface=wlan0
ctrl_interface=/var/run/hostapd
ap_isolate=1
disassoc_low_ack=0
skip_inactivity_poll=0
preamble=1
wmm_enabled=1
ignore_broadcast_ssid=0
uapsd_advertisement_enabled=1
utf8_ssid=1
multi_ap=0
auth_algs=1
wpa=0
ssid=OpenWRT-95D4
bridge=br-lan
wds_bridge=
snoop_iface=br-lan
config_id=fa5f1619a6f9b1243fc2d154a4127dc4
bssid=00:00:00:00:00:00

Hi Javier,

I also tried openwrt image (Station_P2_OpenWRT_GPT_20211123_1812.img), however ‘iw list’ still only shows HT20 in capabilities. I am not trying to do wifi g but wifi ac, which is supposed to be supported.

Also patched 4.19 kernel to use dhd driver in wifi5 instead of wifi6 but capabilities are the same, I guess the issue comes from fw_bcm43752a2_ag.bin but no one has confirmed it yet.

you can try the newest firmware,which date is 20220222
OR you can fix the bug manually,delete this freq-limit in rk3568-firefly-roc-pc.dtsi :

 &sdmmc2 {
     status = "okay";
-    max-frequency = <100000000>;
 };

this may help

I’ve just flashed ROC-RK3568-PC-UBUNTU18.04-GPT-20220222-1540.img:
root@firefly:~# uname -a
Linux firefly 4.19.219 #370 SMP Tue Feb 22 15:35:10 CST 2022 aarch64 aarch64 aarch64 GNU/Linux

However I still see the same output of iw list:

Band 1:
Capabilities: 0x1020
HT20
Static SM Power Save
RX HT20 SGI
No RX STBC
Max AMSDU length: 3839 bytes
DSSS/CCK HT40



Band 2:
Capabilities: 0x1020
HT20
Static SM Power Save
RX HT20 SGI
No RX STBC
Max AMSDU length: 3839 bytes
DSSS/CCK HT40

I would expect at least HT20/HT40

firmware.zip (869 KB)
try this new wifi firmware, put them under /vendor/etc/firmware/
and reboot the device

Thanks, it is better, around ~240mbps, however I’m still limited because of supported bandwidth. I cannot setup HT40+ in hostapd.conf because the capability is not supported

please use wl to show wifi status

root@FusionWrt:~# ./wl status
SSID: "OpenWRT-A046"
Mode: Managed   RSSI: 0 dBm     SNR: 0 dB       noise: -95 dBm  Channel: 36/80
BSSID: 10:2C:6B:7F:A0:46        Capability: ESS
Supported Rates: [ 6(b) 9 12(b) 18 24(b) 36 48 54 ]
VHT Capable:
        Chanspec: 5GHz channel 42 80MHz (0xe02a)
        Primary channel: 36
        HT Capabilities:
        Supported MCS : [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ]
        VHT Capabilities:
        Supported VHT (tx) Rates:
                NSS: 1 MCS: 0-9
                NSS: 2 MCS: 0-9
        Supported VHT (rx) Rates:
                NSS: 1 MCS: 0-9
                NSS: 2 MCS: 0-9

wl.zip (268 KB)

Javier Posted at 3/7/2022 14:33
please use wl to show wifi status

root@FusionWrt:~# ./wl status

It worked for me. Thanks.

happy wheels

What a fantastic article, thank you for sharing such an amazing piece! The Test Data-Cloud-Consultant passing score helped me land a promotion and salary boost. Now it’s free for all. Wishing you success in your career!

This article is incredible, thank you for sharing it! Sharing DP-300 exam dumps.zip resources for free—good luck with your studies!

The article is so thought-provoking, thank you for your valuable share! Here are the Latest 312-50v13 test objectives questions for free—your key to career advancement!

Thank you for sharing such an impactful article, it deeply impressed me. Free 2V0-13.25 reliable exam guide materials resources are here—good luck to all!

競争力が激しい社会に当たり、我々CertShikenは多くの受験生の中で大人気があるのは受験生の立場からCompTIA PT0-003試験資料をリリースすることです。たとえば、ベストセラーのCompTIA PT0-003問題集は過去のデータを分析して作成ます。ほんとんどお客様は我々CertShikenのCompTIA PT0-003問題集を使用してから試験にうまく合格しましたのは弊社の試験資料の有効性と信頼性を説明できます。