[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 (20.0 dBm)
* 2417 MHz (20.0 dBm)
* 2422 MHz (20.0 dBm)
* 2427 MHz (20.0 dBm)
* 2432 MHz (20.0 dBm)
* 2437 MHz (20.0 dBm)
* 2442 MHz (20.0 dBm)
* 2447 MHz (20.0 dBm)
* 2452 MHz (20.0 dBm)
* 2457 MHz (20.0 dBm)
* 2462 MHz (20.0 dBm)
* 2467 MHz (20.0 dBm)
* 2472 MHz (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 (0.0 dBm)
* 5200 MHz (0.0 dBm)
* 5220 MHz (0.0 dBm)
* 5240 MHz (0.0 dBm)
* 5260 MHz (0.0 dBm)
* 5280 MHz (0.0 dBm)
* 5300 MHz (0.0 dBm)
* 5320 MHz (0.0 dBm)
* 5745 MHz (0.0 dBm)
* 5765 MHz (0.0 dBm)
* 5785 MHz (0.0 dBm)
* 5805 MHz (0.0 dBm)
* 5825 MHz (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_conf_set_path_params : Final fw_path=/vendor/etc/firmware/fw_bcm43752a2_ag.bin
[ 17.292008] 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 ... 9-2-angus@akkea.ca/ 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 fromfw_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
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 dBmChannel: 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
```
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
Page:
[1]