Lack of 5GHz when VHT160 on R7800

Hello people,
Yesterday I've received my R7800. As a first step I've installed luci 19.07, but I can not make my 5GHz to work with VHT160.
Channel is 36.

How to fix it?

channel 36 doesn't permit vht160...
You should set channel 100 if the dfs permits and the regulatory permits it... Also take notice that the wifi card needs to support it... With all my device i tested only a mac book pro had a supported wifi card... (broadcom something)

2 Likes

I set channel 100 and VHT160 the result:

Wed Sep 16 15:24:31 2020 daemon.notice hostapd: wlan0: interface state DFS->DFS
Wed Sep 16 15:24:31 2020 daemon.notice hostapd: wlan0: DFS-CAC-START freq=5500 chan=100 sec_chan=1, width=2, seg0=114, seg1=0, cac_time=60s
Wed Sep 16 15:24:31 2020 kern.warn kernel: [67642.985689] ath10k_pci 0000:01:00.0: peer-unmap-event: unknown peer id 0
Wed Sep 16 15:24:31 2020 daemon.err hostapd: DFS start_dfs_cac() failed, -1
Wed Sep 16 15:24:31 2020 daemon.notice hostapd: wlan0: INTERFACE-DISABLED
Wed Sep 16 15:24:31 2020 daemon.err hostapd: nl80211: Could not configure driver mode
Wed Sep 16 15:24:31 2020 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Wed Sep 16 15:24:31 2020 daemon.err hostapd: nl80211 driver initialization failed.
Wed Sep 16 15:24:31 2020 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->DISABLED
Wed Sep 16 15:24:31 2020 daemon.notice hostapd: wlan0: AP-DISABLED
Wed Sep 16 15:24:31 2020 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Wed Sep 16 15:24:31 2020 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Wed Sep 16 15:24:31 2020 daemon.notice netifd: radio0 (8026): WARNING (wireless_add_process): executable path /usr/sbin/wpad does not match process 2729 path ()
Wed Sep 16 15:24:31 2020 daemon.notice netifd: radio0 (8026): Device setup failed: HOSTAPD_START_FAILED

Make sure the country code is set as your country. Leaving it unset only allows channels/modes that are legal in every country, which disables a lot of functionality.

I'm not sure if this driver allows VHT160. Use iw list to see hardware/driver capabilities.

1 Like

(spoiler: it does)

I have country set as PL

root@LuCi:~# iw reg get
global
country PL: DFS-ETSI
        (2400 - 2483 @ 40), (N/A, 20), (N/A)
        (5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
        (5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
        (5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
        (5725 - 5875 @ 80), (N/A, 13), (N/A)
        (57000 - 66000 @ 2160), (N/A, 40), (N/A)

phy#1
country US: DFS-FCC
        (2402 - 2472 @ 40), (N/A, 30), (N/A)
        (5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
        (5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
        (5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
        (5735 - 5835 @ 80), (N/A, 30), (N/A)
        (57240 - 71000 @ 2160), (N/A, 40), (N/A)

phy#0
country US: DFS-FCC
        (2402 - 2472 @ 40), (N/A, 30), (N/A)
        (5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
        (5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
        (5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
        (5735 - 5835 @ 80), (N/A, 30), (N/A)
        (57240 - 71000 @ 2160), (N/A, 40), (N/A)

root@LuCi:~# iw list
Wiphy phy1
        max # scan SSIDs: 16
        max scan IEs length: 209 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 AP-side u-APSD.
        Available Antennas: TX 0xf RX 0xf
        Configured Antennas: TX 0xf RX 0xf
        Supported interface modes:
                 * managed
                 * AP
                 * monitor
                 * mesh point
                 * P2P-client
                 * P2P-GO
                 * P2P-device
        Band 1:
                Capabilities: 0x19ef
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        RX HT20 SGI
                        RX HT40 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 7935 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 8 usec (0x06)
                HT TX/RX MCS rate indexes supported: 0-31
                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)
                        * 2484 MHz [14] (disabled)
        valid interface combinations:
                 * #{ managed } <= 1, #{ AP, mesh point } <= 16,
                   total <= 16, #channels <= 1, STA/AP BI must match, radar dete                                                                                                                                                             ct widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz }

        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
        Supported extended features:
                * [ VHT_IBSS ]: VHT-IBSS
                * [ RRM ]: RRM
                * [ SET_SCAN_DWELL ]: scan dwell setting
                * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
                * [ TXQS ]: FQ-CoDel-enabled intermediate TXQs
Wiphy phy0
        max # scan SSIDs: 16
        max scan IEs length: 199 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 AP-side u-APSD.
        Available Antennas: TX 0xf RX 0xf
        Configured Antennas: TX 0xf RX 0xf
        Supported interface modes:
                 * managed
                 * AP
                 * monitor
                 * mesh point
                 * P2P-client
                 * P2P-GO
                 * P2P-device
        Band 2:
                Capabilities: 0x19ef
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        RX HT20 SGI
                        RX HT40 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 7935 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 8 usec (0x06)
                HT TX/RX MCS rate indexes supported: 0-31
                VHT Capabilities (0x339b79fa):
                        Max MPDU length: 11454
                        Supported Channel Width: 160 MHz, 80+80 MHz
                        RX LDPC
                        short GI (80 MHz)
                        short GI (160/80+80 MHz)
                        TX STBC
                        SU Beamformer
                        SU Beamformee
                        MU Beamformer
                        MU Beamformee
                        RX antenna pattern consistency
                        TX antenna pattern consistency
                VHT RX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: MCS 0-9
                        4 streams: MCS 0-9
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT RX highest supported: 1560 Mbps
                VHT TX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: MCS 0-9
                        4 streams: MCS 0-9
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT TX highest supported: 1560 Mbps
                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] (20.0 dBm) (radar detection)
                        * 5280 MHz [56] (20.0 dBm) (radar detection)
                        * 5300 MHz [60] (20.0 dBm) (radar detection)
                        * 5320 MHz [64] (20.0 dBm) (radar detection)
                        * 5500 MHz [100] (26.0 dBm) (radar detection)
                        * 5520 MHz [104] (26.0 dBm) (radar detection)
                        * 5540 MHz [108] (26.0 dBm) (radar detection)
                        * 5560 MHz [112] (26.0 dBm) (radar detection)
                        * 5580 MHz [116] (26.0 dBm) (radar detection)
                        * 5600 MHz [120] (26.0 dBm) (radar detection)
                        * 5620 MHz [124] (26.0 dBm) (radar detection)
                        * 5640 MHz [128] (26.0 dBm) (radar detection)
                        * 5660 MHz [132] (26.0 dBm) (radar detection)
                        * 5680 MHz [136] (26.0 dBm) (radar detection)
                        * 5700 MHz [140] (26.0 dBm) (radar detection)
                        * 5720 MHz [144] (disabled)
                        * 5745 MHz [149] (13.0 dBm)
                        * 5765 MHz [153] (13.0 dBm)
                        * 5785 MHz [157] (13.0 dBm)
                        * 5805 MHz [161] (13.0 dBm)
                        * 5825 MHz [165] (13.0 dBm)
                        * 5845 MHz [169] (13.0 dBm)
                        * 5865 MHz [173] (13.0 dBm)
        valid interface combinations:
                 * #{ managed } <= 1, #{ AP, mesh point } <= 16,
                   total <= 16, #channels <= 1, STA/AP BI must match, radar dete                                                                                                                                                             ct widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz }

        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
        Supported extended features:
                * [ VHT_IBSS ]: VHT-IBSS
                * [ RRM ]: RRM
                * [ SET_SCAN_DWELL ]: scan dwell setting
                * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
                * [ TXQS ]: FQ-CoDel-enabled intermediate TXQs

As you see above - everything is fine, but 5GHz network still does not work...

You cutoff the remainder of the line which was going to indicate if you're using the fixed driver that allows DFS at 160MHz or not.
Can you paste the full output?

full output of what?

Apologies, was viewing on a phone screen when i initially replied. I can see now that the full response is included, just separated all the way to the right.

Here's the problem:

valid interface combinations:
                ...
                radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz }

You are missing the 160 and 80+80MHz DFS configs. This was fixed in ath10k-ct between 19.07.3 and 19.07.4 (from memory). So which exact version of 19.07 are you running and what version of ath10k-ct are you running?

Without the fixed driver, it won't work.

root@LuCi:~# opkg list-installed ath*
ath10k-firmware-qca988x - 2019-10-03-d622d160-1
ath10k-firmware-qca9984-ct - 2020-07-02-1
root@LuCi:~# opkg list-installed kmod-ath*
kmod-ath - 4.14.195+4.19.137-1-2
kmod-ath10k-ct - 4.14.195+2019-09-09-5e8cd86f-1

My kernel is 4.14.195
Where can I find the latest kmod-ath10k-ct that fix the problem?
also can you please check if the other drivers / firmware I've got are correct?

You appear to have a new enough version. I don't understand why you have ath10k-firmware-qca988x as well? That isn't appropriate for your device. I'm wondering if that firmware file is trying to load first (they are loaded in a preferential order).

I would try removing that and rebooting, then check your DFS capabilities again.

I've removed the firmware 988x.
I set country India and channel 100 and now the 5GHz wake up.

root@LuCi:~# iw reg get
global
country IN: DFS-UNSET
        (2402 - 2482 @ 40), (N/A, 20), (N/A)
        (5150 - 5250 @ 80), (N/A, 30), (N/A)
        (5250 - 5350 @ 80), (N/A, 24), (N/A)
        (5470 - 5725 @ 160), (N/A, 24), (N/A)
        (5725 - 5875 @ 80), (N/A, 30), (N/A)

Have made a few tests with AX200 card and also with 2019 Macbook Pro.

  1. Luci reports Macbook as connected with above 1000Mbps rates but with 80MHz bandwidth
  2. AX200 is visible as both 160MHz and above 1000Mbps but only under Windows.
  3. With iperf3 test the best results are with AX200 under Linux, which is reported as 866Mbps and 80MHz by Luci (although iw info from laptop is stating 160MHz).
    Altogether 160MHz seems to not be mature enough.

Macbook (Pro) has 3 wifi streams, means max 1300mbit/s.

Regarding VHT160, see my post: AX200 (iwlwifi) and 160MHz width Channels?