Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

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

39

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
39

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

Posted at 2/5/2022 01:06:16      View:3106 | Replies:8        Print      Only Author   [Copy Link] 1#
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 ... 9-2-angus@akkea.ca/ to be able to increase wifi's throughput?

Thanks in advance.

Valentin
Reply

Use props Report

91

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
91
Posted at 2/10/2022 10:55:13        Only Author  2#
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:
  1. driver=nl80211
  2. logger_syslog=127
  3. logger_syslog_level=2
  4. logger_stdout=127
  5. logger_stdout_level=2
  6. country_code=US
  7. ieee80211d=1
  8. hw_mode=g
  9. supported_rates=60 90 120 180 240 360 480 540
  10. basic_rates=60 120 240
  11. beacon_int=100
  12. dtim_period=2
  13. channel=1
  14. chanlist=1


  15. ieee80211n=1
  16. ht_coex=0

  17. radio_config_id=570b89ac214840092cda49c8238746df
  18. interface=wlan0
  19. ctrl_interface=/var/run/hostapd
  20. ap_isolate=1
  21. disassoc_low_ack=0
  22. skip_inactivity_poll=0
  23. preamble=1
  24. wmm_enabled=1
  25. ignore_broadcast_ssid=0
  26. uapsd_advertisement_enabled=1
  27. utf8_ssid=1
  28. multi_ap=0
  29. auth_algs=1
  30. wpa=0
  31. ssid=OpenWRT-95D4
  32. bridge=br-lan
  33. wds_bridge=
  34. snoop_iface=br-lan
  35. config_id=fa5f1619a6f9b1243fc2d154a4127dc4
  36. bssid=00:00:00:00:00:00
Copy the code
Reply

Use props Report

39

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
39
Posted at 2/10/2022 17:45:38        Only Author  3#
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.
Reply

Use props Report

372

Credits

7

Prestige

7

Contribution

intermediate

Rank: 3Rank: 3

Credits
372
Posted at 3/3/2022 11:14:07        Only Author  4#
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 :
  1. &sdmmc2 {
  2.      status = "okay";
  3. -    max-frequency = <100000000>;
  4. };
Copy the code


this may help
Reply

Use props Report

39

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
39
Posted at 3/3/2022 16:55:42        Only Author  5#
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
Reply

Use props Report

372

Credits

7

Prestige

7

Contribution

intermediate

Rank: 3Rank: 3

Credits
372
Posted at 3/3/2022 17:27:01        Only Author  6#
firmware.zip (868.8 KB, Down times: 13)
try this new wifi firmware, put them under /vendor/etc/firmware/
and reboot the device


Reply

Use props Report

39

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
39
Posted at 3/3/2022 18:40:19        Only Author  7#
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
Reply

Use props Report

91

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
91
Posted at 3/7/2022 14:33:51        Only Author  8#
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.46 KB, Down times: 9

Reply

Use props Report

16

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
16
Posted at 11/23/2022 18:38:08        Only Author  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.



Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list