Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luci-mod-status: channel_analysis: detect 160 MHz capable AP #7367

Merged
merged 1 commit into from
Nov 9, 2024

Conversation

abajk
Copy link
Contributor

@abajk abajk commented Oct 30, 2024

Implement a workaround to detect an 160MHz capable AP. It was introduced in the mac80211 in 2016 with 802.11ac Wave 2. APs capable of 160 MHz are detected by the shift of central frequencies. More detailed description in the link [1]. Every AP I have seen presents support for 160 MHz this way.

[1] torvalds/linux@23665aa
Fixes: #6262
Signed-off-by: Aleksander Jan Bajkowski olek2@wp.pl

obraz

  • This PR is not from my main or master branch 💩, but a separate branch ✅
  • Each commit has a valid ✒️ Signed-off-by: <my@email.address> row (via git commit --signoff)
  • Each commit and PR title has a valid 📝 <package name>: title first line subject for packages
  • Incremented 🆙 any PKG_VERSION in the Makefile
  • Tested on: WAX206 (mediatek/mt7622), OpenWRT snapshot, Firefox 131.0.3 ✅
  • ( Preferred ) Mention: @Ansuel the original code author for feedback
  • ( Preferred ) Screenshot or mp4 of changes:
  • ( Optional ) Closes: e.g. luci-mod-status: 160mhz channels are not properly displayed on the graph #6262
  • Description: (describe the changes proposed in this PR)

@abajk
Copy link
Contributor Author

abajk commented Oct 30, 2024

These are my first lines of code in js, so any feedback welcome :D

@systemcrash
Copy link
Contributor

Everything looks good, actually. Although what and where is the 'newer interop workaround'?

@systemcrash
Copy link
Contributor

@knarrff I think you dabbled in this area also. Any thoughts?

@abajk
Copy link
Contributor Author

abajk commented Oct 30, 2024

I found that the issue was once reported by the @hnyman.

@abajk
Copy link
Contributor Author

abajk commented Oct 30, 2024

Everything looks good, actually. Although what and where is the 'newer interop workaround'?

The workaround is described in the linked commit description:

Number of deployed 80 MHz capable VHT stations that do not support 80+80
and 160 MHz bandwidths seem to misbehave when trying to connect to an AP
that advertises 80+80 or 160 MHz channel bandwidth in the VHT Operation
element. To avoid such issues with deployed devices, modify the design
based on recently accepted IEEE 802.11 standard changes (*).

This allows poorly implemented VHT 80 MHz stations to connect with the
AP in 80 MHz mode. 80+80 and 160 MHz capable stations need to support
the new workaround mechanism to allow full bandwidth to be used.
However, there are more or less no impacted station with 80+80/160
capability deployed.

@systemcrash
Copy link
Contributor

So, your code is already 'adjusted' based on the workaround?

@systemcrash
Copy link
Contributor

BTW: does this code depend on fixes which are already in iwinfo/master?

@abajk
Copy link
Contributor Author

abajk commented Oct 30, 2024

BTW: does this code depend on fixes which are already in iwinfo/master?

This code doesn't depend on other changes in iwinfo. As far as I've seen, both iwinfo and iw only display raw data from received IEs (802.11 Information Element).

Are you asking about other endianness issues described in the linked issue?

@systemcrash
Copy link
Contributor

Are you asking about other endianness issues described in the linked issue?

No - just whether it's just this PR and no other requirements. I tested it but it appears that all my neighbours use 80 MHz only so could not verify :p

@castillofrancodamian
Copy link
Contributor

castillofrancodamian commented Oct 31, 2024

Could you please check this which is related? Other than that, how is it possible to do a channel scan with an AP in DFS?

@systemcrash
Copy link
Contributor

systemcrash commented Oct 31, 2024 via email

@knarrff
Copy link
Contributor

knarrff commented Nov 1, 2024

@knarrff I think you dabbled in this area also. Any thoughts?

Without testing: looks good to me, apart from the minor cosmetics issue on line 321.

@abajk abajk force-pushed the channel-160mhz branch 3 times, most recently from aa745f7 to 3c8ead2 Compare November 1, 2024 17:52
Implement a workaround to detect an 160MHz capable AP. It was introduced
in the mac80211 in 2016 with 802.11ac Wave 2. APs capable of 160 MHz are
detected by the shift of central frequencies. More detailed description
in the link [1]. Every AP I have seen presents support for 160 MHz in this way.

[1] torvalds/linux@23665aa
Fixes: openwrt#6262
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
@abajk
Copy link
Contributor Author

abajk commented Nov 7, 2024

Everything looks good, actually. Although what and where is the 'newer interop workaround'?

Just changed the comment to describe more precisely what is the newer interop workaround.

@Neustradamus
Copy link

Hope to have one day the fix!

@systemcrash
Copy link
Contributor

@Neustradamus are you able to verify that the fix works for you?

I've tested it, but apparently nobody nearby yet uses 160MHz. 🤷‍♂️

@hnyman
Copy link
Contributor

hnyman commented Nov 9, 2024

The patch looks good,
although I get somewhat mixed results:

I configured both of my routers for 160 MHz and patched LuCI in them.
(MT6000 channel 100, E8450/RT3200 channel 36)

Before: (from MT6000)
image

After patch (MT6000): My other router (WPA2RKOE, E8450/RT3200) is still shown as only 80 MHz, but some other (unfamiliar) routers are shown as 160 MHz
image

But from the RT3200, both routers look like 160 MHz.
image

MT6000 seen from RT3200:

Cell 06 - Address: 60:22:...
          ESSID: "WPA2RKOE"
          Mode: Master  Frequency: 5.500 GHz  Band: 5 GHz  Channel: 100
          Signal: -59 dBm  Quality: 51/70
          Encryption: WPA2 PSK (CCMP)
          HT Operation:
                    Primary Channel: 100
                    Secondary Channel Offset: above
                    Channel Width: 40 MHz or higher
          VHT Operation:
                    Center Frequency 1: 106
                    Center Frequency 2: 114
                    Channel Width: 80 MHz

But this is apparently not LuCI's fault, as iwinfo reports only 80 MHz (no secondary center frequency),
RT3200 seen from MT6000:

Cell 05 - Address: 32:00:...
          ESSID: "WPA2RKOE"
          Mode: Master  Frequency: 5.180 GHz  Band: 5 GHz  Channel: 36
          Signal: -61 dBm  Quality: 49/70
          Encryption: WPA2 PSK (CCMP)
          HT Operation:
                    Primary Channel: 36
                    Secondary Channel Offset: above
                    Channel Width: 20 MHz
          VHT Operation:
                    Center Frequency 1: 42
                    Center Frequency 2: 0
                    Channel Width: 80 MHz

while local iwinfo in RT3200 thinks that it is 160 MHz:

root@router4:/www# iwinfo
hn5wpa2r  ESSID: "WPA2RKOE"
          Access Point: 32:00:...
          Mode: Master  Channel: 36 (5.180 GHz)  HT Mode: HE160
          Center Channel 1: 50 2: unknown
          Tx-Power: 20 dBm  Link Quality: unknown/70

@systemcrash
Copy link
Contributor

I wonder how iwinfo results might vary if you put one AP in client mode, and join the two, to see how readings change (this might be a way to verify readings when connectivity works). They possibly depend on firmware (ath10k, ath11k, whatever).

So if you think this is OK, we can merge it.

@Neustradamus
Copy link

@hnyman: Thanks for your results :)
Strange about different results :/
Maybe a bug in iwinfo but not in LuCI.

@hnyman hnyman merged commit 96fa870 into openwrt:master Nov 9, 2024
4 of 5 checks passed
@abajk
Copy link
Contributor Author

abajk commented Nov 9, 2024

But this is apparently not LuCI's fault, as iwinfo reports only 80 MHz (no secondary center frequency), RT3200 seen from MT6000:

Cell 05 - Address: 32:00:...
          ESSID: "WPA2RKOE"
          Mode: Master  Frequency: 5.180 GHz  Band: 5 GHz  Channel: 36
          Signal: -61 dBm  Quality: 49/70
          Encryption: WPA2 PSK (CCMP)
          HT Operation:
                    Primary Channel: 36
                    Secondary Channel Offset: above
                    Channel Width: 20 MHz
          VHT Operation:
                    Center Frequency 1: 42
                    Center Frequency 2: 0
                    Channel Width: 80 MHz

I'm curious what the iw dev <iface name> scan shows in this case.

@abajk abajk deleted the channel-160mhz branch November 9, 2024 17:25
@Neustradamus
Copy link

Thanks to @abajk and @hnyman for merging :)

@hnyman
Copy link
Contributor

hnyman commented Nov 9, 2024

RT3200 seen from MT6000:
...
I'm curious what the iw dev scan shows in this case.

You mean as seen from MT6000 ?

root@router6000:~# iwinfo hn5wpa2r scan
...
Cell 04 - Address: 32:00:22:F8:A5:21
          ESSID: "WPA2RKOE"
          Mode: Master  Frequency: 5.180 GHz  Band: 5 GHz  Channel: 36
          Signal: -61 dBm  Quality: 49/70
          Encryption: WPA2 PSK (CCMP)
          HT Operation:
                    Primary Channel: 36
                    Secondary Channel Offset: above
                    Channel Width: 20 MHz
          VHT Operation:
                    Center Frequency 1: 42
                    Center Frequency 2: 0
                    Channel Width: 80 MHz
root@router6000:~# iw hn5wpa2r scan
...
BSS 32:00:2... (on hn5wpa2r)
        last seen: 25539.783s [boottime]
        TSF: 173317890856 usec (2d, 00:08:37)
        freq: 5180.0
        beacon interval: 100 TUs
        capability: ESS (0x1111)
        signal: -60.00 dBm
        last seen: 3310 ms ago
        Information elements from Probe Response frame:
        SSID: WPA2RKOE
        RSN:     * Version: 1
                 * Group cipher: CCMP
                 * Pairwise ciphers: CCMP
                 * Authentication suites: PSK FT/PSK PSK/SHA-256
                 * Capabilities: 16-PTKSA-RC 1-GTKSA-RC MFP-required MFP-capable (0x40cc)
        BSS Load:
                 * station count: 1
                 * channel utilisation: 6/255
                 * available admission capacity: 0 [*32us]
        HT capabilities:
                Capabilities: 0x9ef
                        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
                        No DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 4 usec (0x05)
                HT TX/RX MCS rate indexes supported: 0-31
        HT operation:
                 * primary channel: 36
                 * secondary channel offset: above
                 * STA channel width: any
        VHT capabilities:
                VHT Capabilities (0x738b79f1):
                        Max MPDU length: 7991
                        Supported Channel Width: 160Mhz (1/2 NSS)
                        RX LDPC
                        short GI (80 MHz)
                        short GI (160/80+80 MHz)
                        TX STBC
                        SU Beamformer
                        SU Beamformee
                        MU Beamformer
                        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: 0 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: 0 Mbps
                VHT extended NSS: supported
        VHT operation:
                 * channel width: 1 (80 MHz)
                 * center freq segment 1: 42
                 * center freq segment 2: 0
                 * VHT basic MCS set: 0xfffc
        HE capabilities:
                HE MAC Capabilities (0x00051a081044):
                        +HTC HE Supported
                        TWT Responder
                        BSR
                        OM Control
                        Maximum A-MPDU Length Exponent: 3
                        BQR
                        A-MSDU in A-MPDU
                        OM Control UL MU Data Disable RX
                HE PHY Capabilities: (0x0c200e926f0baf10000c00):
                        HE40/HE80/5GHz
                        HE160/5GHz
                        LDPC Coding in Payload
                        NDP with 4x HE-LTF and 3.2us GI
                        STBC Tx <= 80MHz
                        STBC Rx <= 80MHz
                        DCM Max Constellation: 2
                        DCM Max Constellation Rx: 2
                        SU Beamformer
                        SU Beamformee
                        MU Beamformer
                        Beamformee STS <= 80Mhz: 3
                        Beamformee STS > 80Mhz: 3
                        Sounding Dimensions <= 80Mhz: 3
                        Sounding Dimensions > 80Mhz: 1
                        Codebook Size SU Feedback
                        Codebook Size MU Feedback
                        Triggered SU Beamforming Feedback
                        Triggered MU Beamforming Feedback
                        Partial Bandwidth Extended Range
                        PPE Threshold Present
                        Max NC: 2
                        TX 1024-QAM
                        RX 1024-QAM
                HE RX MCS and NSS set <= 80 MHz
                        1 streams: MCS 0-11
                        2 streams: MCS 0-11
                        3 streams: MCS 0-11
                        4 streams: MCS 0-11
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                HE TX MCS and NSS set <= 80 MHz
                        1 streams: MCS 0-11
                        2 streams: MCS 0-11
                        3 streams: MCS 0-11
                        4 streams: MCS 0-11
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                HE RX MCS and NSS set 160 MHz
                        1 streams: MCS 0-11
                        2 streams: MCS 0-11
                        3 streams: not supported
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                HE TX MCS and NSS set 160 MHz
                        1 streams: MCS 0-11
                        2 streams: MCS 0-11
                        3 streams: not supported
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                PPE Threshold 0x3b 0x1c 0xc7 0x71 0x1c 0xc7 0x71 0x1c 0xc7 0x71

And what the device RT3200 itself thinks about itself:

root@router4:~# iw hn5wpa2r info
Interface hn5wpa2r
        ifindex 22
        wdev 0x100000004
        addr 32:00:22:f8:a5:21
        ssid WPA2RKOE
        type AP
        wiphy 1
        channel 36 (5180 MHz), width: 160 MHz, center1: 5250 MHz
        txpower 20.00 dBm
        multicast TXQ:
                qsz-byt qsz-pkt flows   drops   marks   overlmt hashcol tx-bytes   tx-packets
                0       0       1501    0       0       0       0       525898     2587
root@router4:~# iw list
Wiphy wl1
        wiphy index: 1
        max # scan SSIDs: 4
        max scan IEs length: 2190 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports AP-side u-APSD.
        Device supports T-DLS.
        Available Antennas: TX 0xf RX 0xf
        Configured Antennas: TX 0xf RX 0xf
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
                 * P2P-client
                 * P2P-GO
        Band 2:
                Capabilities: 0x9ff
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        RX Greenfield
                        RX HT20 SGI
                        RX HT40 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 7935 bytes
                        No DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 4 usec (0x05)
                HT TX/RX MCS rate indexes supported: 0-31
                VHT Capabilities (0x739b79f1):
                        Max MPDU length: 7991
                        Supported Channel Width: 160Mhz (1/2 NSS)
                        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: 0 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: 0 Mbps
                VHT extended NSS: supported
                HE Iftypes: managed
                        HE MAC Capabilities (0x08011a000040):
                                +HTC HE Supported
                                Trigger Frame MAC Padding Duration: 2
                                OM Control
                                Maximum A-MPDU Length Exponent: 3
                                A-MSDU in A-MPDU
                        HE PHY Capabilities: (0x4c700e926d0bf3164e3f00):
                                HE40/HE80/5GHz
                                HE160/5GHz
                                242 tone RUs/5GHz
                                Device Class: 1
                                LDPC Coding in Payload
                                HE SU PPDU with 1x HE-LTF and 0.8us GI
                                NDP with 4x HE-LTF and 3.2us GI
                                STBC Tx <= 80MHz
                                STBC Rx <= 80MHz
                                DCM Max Constellation: 2
                                DCM Max Constellation Rx: 2
                                SU Beamformer
                                SU Beamformee
                                Beamformee STS <= 80Mhz: 3
                                Beamformee STS > 80Mhz: 3
                                Sounding Dimensions <= 80Mhz: 3
                                Sounding Dimensions > 80Mhz: 1
                                Codebook Size SU Feedback
                                Codebook Size MU Feedback
                                Triggered CQI Feedback
                                Partial Bandwidth Extended Range
                                Partial Bandwidth DL MU-MIMO
                                PPE Threshold Present
                                Power Boost Factor ar
                                HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
                                Max NC: 2
                                20MHz in 40MHz HE PPDU 2.4GHz
                                20MHz in 160/80+80MHz HE PPDU
                                80MHz in 160/80+80MHz HE PPDU
                                DCM Max BW: 1
                                Longer Than 16HE SIG-B OFDM Symbols
                                Non-Triggered CQI Feedback
                                TX 1024-QAM
                                RX 1024-QAM
                                RX Full BW SU Using HE MU PPDU with Compression SIGB
                                RX Full BW SU Using HE MU PPDU with Non-Compression SIGB
                        HE RX MCS and NSS set <= 80 MHz
                                1 streams: MCS 0-11
                                2 streams: MCS 0-11
                                3 streams: MCS 0-11
                                4 streams: MCS 0-11
                                5 streams: not supported
                                6 streams: not supported
                                7 streams: not supported
                                8 streams: not supported
                        HE TX MCS and NSS set <= 80 MHz
                                1 streams: MCS 0-11
                                2 streams: MCS 0-11
                                3 streams: MCS 0-11
                                4 streams: MCS 0-11
                                5 streams: not supported
                                6 streams: not supported
                                7 streams: not supported
                                8 streams: not supported
                        HE RX MCS and NSS set 160 MHz
                                1 streams: MCS 0-11
                                2 streams: MCS 0-11
                                3 streams: not supported
                                4 streams: not supported
                                5 streams: not supported
                                6 streams: not supported
                                7 streams: not supported
                                8 streams: not supported
                        HE TX MCS and NSS set 160 MHz
                                1 streams: MCS 0-11
                                2 streams: MCS 0-11
                                3 streams: not supported
                                4 streams: not supported
                                5 streams: not supported
                                6 streams: not supported
                                7 streams: not supported
                                8 streams: not supported
                        PPE Threshold 0x3b 0x1c 0xc7 0x71 0x1c 0xc7 0x71 0x1c 0xc7 0x71
                HE Iftypes: AP
                        HE MAC Capabilities (0x00051a081044):
                                +HTC HE Supported
                                TWT Responder
                                BSR
                                OM Control
                                Maximum A-MPDU Length Exponent: 3
                                BQR
                                A-MSDU in A-MPDU
                                OM Control UL MU Data Disable RX
                        HE PHY Capabilities: (0x0c200e926f0baf10000c00):
                                HE40/HE80/5GHz
                                HE160/5GHz
                                LDPC Coding in Payload
                                NDP with 4x HE-LTF and 3.2us GI
                                STBC Tx <= 80MHz
                                STBC Rx <= 80MHz
                                DCM Max Constellation: 2
                                DCM Max Constellation Rx: 2
                                SU Beamformer
                                SU Beamformee
                                MU Beamformer
                                Beamformee STS <= 80Mhz: 3
                                Beamformee STS > 80Mhz: 3
                                Sounding Dimensions <= 80Mhz: 3
                                Sounding Dimensions > 80Mhz: 1
                                Codebook Size SU Feedback
                                Codebook Size MU Feedback
                                Triggered SU Beamforming Feedback
                                Triggered MU Beamforming Feedback
                                Partial Bandwidth Extended Range
                                PPE Threshold Present
                                Max NC: 2
                                TX 1024-QAM
                                RX 1024-QAM
                        HE RX MCS and NSS set <= 80 MHz
                                1 streams: MCS 0-11
                                2 streams: MCS 0-11
                                3 streams: MCS 0-11
                                4 streams: MCS 0-11
                                5 streams: not supported
                                6 streams: not supported
                                7 streams: not supported
                                8 streams: not supported
                        HE TX MCS and NSS set <= 80 MHz
                                1 streams: MCS 0-11
                                2 streams: MCS 0-11
                                3 streams: MCS 0-11
                                4 streams: MCS 0-11
                                5 streams: not supported
                                6 streams: not supported
                                7 streams: not supported
                                8 streams: not supported
                        HE RX MCS and NSS set 160 MHz
                                1 streams: MCS 0-11
                                2 streams: MCS 0-11
                                3 streams: not supported
                                4 streams: not supported
                                5 streams: not supported
                                6 streams: not supported
                                7 streams: not supported
                                8 streams: not supported
                        HE TX MCS and NSS set 160 MHz
                                1 streams: MCS 0-11
                                2 streams: MCS 0-11
                                3 streams: not supported
                                4 streams: not supported
                                5 streams: not supported
                                6 streams: not supported
                                7 streams: not supported
                                8 streams: not supported
                        PPE Threshold 0x3b 0x1c 0xc7 0x71 0x1c 0xc7 0x71 0x1c 0xc7 0x71
                HE Iftypes: mesh point
                        HE MAC Capabilities (0x00011a000040):
                                +HTC HE Supported
                                OM Control
                                Maximum A-MPDU Length Exponent: 3
                                A-MSDU in A-MPDU
                        HE PHY Capabilities: (0x0c200c0000000000008000):
                                HE40/HE80/5GHz
                                HE160/5GHz
                                LDPC Coding in Payload
                                STBC Tx <= 80MHz
                                STBC Rx <= 80MHz
                        HE RX MCS and NSS set <= 80 MHz
                                1 streams: MCS 0-11
                                2 streams: MCS 0-11
                                3 streams: MCS 0-11
                                4 streams: MCS 0-11
                                5 streams: not supported
                                6 streams: not supported
                                7 streams: not supported
                                8 streams: not supported
                        HE TX MCS and NSS set <= 80 MHz
                                1 streams: MCS 0-11
                                2 streams: MCS 0-11
                                3 streams: MCS 0-11
                                4 streams: MCS 0-11
                                5 streams: not supported
                                6 streams: not supported
                                7 streams: not supported
                                8 streams: not supported
                        HE RX MCS and NSS set 160 MHz
                                1 streams: MCS 0-11
                                2 streams: MCS 0-11
                                3 streams: not supported
                                4 streams: not supported
                                5 streams: not supported
                                6 streams: not supported
                                7 streams: not supported
                                8 streams: not supported
                        HE TX MCS and NSS set 160 MHz
                                1 streams: MCS 0-11
                                2 streams: MCS 0-11
                                3 streams: not supported
                                4 streams: not supported
                                5 streams: not supported
                                6 streams: not supported
                                7 streams: not supported
                                8 streams: not supported
                Frequencies:
                        * 5180.0 MHz [36] (23.0 dBm)
                        * 5200.0 MHz [40] (23.0 dBm)
                        * 5220.0 MHz [44] (23.0 dBm)
                        * 5240.0 MHz [48] (23.0 dBm)
                        * 5260.0 MHz [52] (20.0 dBm) (radar detection)
                        * 5280.0 MHz [56] (20.0 dBm) (radar detection)
                        * 5300.0 MHz [60] (20.0 dBm) (radar detection)
                        * 5320.0 MHz [64] (20.0 dBm) (radar detection)
                        * 5500.0 MHz [100] (26.0 dBm) (radar detection)
                        * 5520.0 MHz [104] (26.0 dBm) (radar detection)
                        * 5540.0 MHz [108] (26.0 dBm) (radar detection)
                        * 5560.0 MHz [112] (26.0 dBm) (radar detection)
                        * 5580.0 MHz [116] (26.0 dBm) (radar detection)
                        * 5600.0 MHz [120] (26.0 dBm) (radar detection)
                        * 5620.0 MHz [124] (26.0 dBm) (radar detection)
                        * 5640.0 MHz [128] (26.0 dBm) (radar detection)
                        * 5660.0 MHz [132] (26.0 dBm) (radar detection)
                        * 5680.0 MHz [136] (26.0 dBm) (radar detection)
                        * 5700.0 MHz [140] (26.0 dBm) (radar detection)
                        * 5720.0 MHz [144] (13.0 dBm) (radar detection)
                        * 5745.0 MHz [149] (13.0 dBm)
                        * 5765.0 MHz [153] (13.0 dBm)
                        * 5785.0 MHz [157] (13.0 dBm)
                        * 5805.0 MHz [161] (13.0 dBm)
                        * 5825.0 MHz [165] (13.0 dBm)
                        * 5845.0 MHz [169] (13.0 dBm)
                        * 5865.0 MHz [173] (13.0 dBm)
                        * 5885.0 MHz [177] (disabled)
        valid interface combinations:
                 * #{ IBSS } <= 1, #{ AP, mesh point } <= 16, #{ managed } <= 19,
                   total <= 19, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz, 160 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
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Supported extended features:
                * [ VHT_IBSS ]: VHT-IBSS
                * [ RRM ]: RRM
                * [ BEACON_RATE_LEGACY ]: legacy beacon rate setting
                * [ BEACON_RATE_HT ]: HT beacon rate setting
                * [ BEACON_RATE_VHT ]: VHT beacon rate setting
                * [ FILS_STA ]: STA FILS (Fast Initial Link Setup)
                * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
                * [ ACK_SIGNAL_SUPPORT ]: ack signal level support
                * [ TXQS ]: FQ-CoDel-enabled intermediate TXQs
                * [ SCAN_RANDOM_SN ]: use random sequence numbers in scans
                * [ SCAN_MIN_PREQ_CONTENT ]: use probe request with only rate IEs in scans
                * [ CAN_REPLACE_PTK0 ]: can safely replace PTK 0 when rekeying
                * [ AIRTIME_FAIRNESS ]: airtime fairness scheduling
                * [ AQL ]: Airtime Queue Limits (AQL)
                * [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support
                * [ DEL_IBSS_STA ]: deletion of IBSS station support
                * [ SCAN_FREQ_KHZ ]: scan on kHz frequency support
                * [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support
                * [ FILS_DISCOVERY ]: FILS discovery frame transmission support
                * [ UNSOL_BCAST_PROBE_RESP ]: unsolicated broadcast probe response transmission support
                * [ BEACON_RATE_HE ]: HE beacon rate support (AP/mesh)
                * [ BSS_COLOR ]: BSS coloring support
                * [ POWERED_ADDR_CHANGE ]: can change MAC address while up

@abajk
Copy link
Contributor Author

abajk commented Nov 9, 2024

RT3200 is the compiled case. It supports MIMO 4x4 80MHz or MIMO 2x2 160MHz. As far as I can see it exposes support for 160 MHz in 802.11ax mode (HE) , but only 80 MHz in 802.11ac (VHT). VHT does not allow for different bandwidths for different MIMO configurations. Iwinfo currently does not display 802.11ax (HE mode) information.

@abajk
Copy link
Contributor Author

abajk commented Nov 9, 2024

However, maybe I am wrong and 1/2 NSS (spatial streams) can also be defined in VHT. I have a Netgear WAX206 that has the same radio, so I have a test enviroment.

@abajk
Copy link
Contributor Author

abajk commented Nov 10, 2024

@hnyman I can't enable VHT160 on WAX206. Do you know how luci detects hardware capabilities?

@hnyman
Copy link
Contributor

hnyman commented Nov 10, 2024

It gets the info from iwinfo via rpcd.

The key question is that can you successfully enable that manually, by editing WiFi config file?

@abajk
Copy link
Contributor Author

abajk commented Nov 10, 2024

It turns out that it doesn't. I have changed HE160 to VHT160 in /etc/config/wireless and executed wifi reload. It did not throw any error, but the network does not come up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

luci-mod-status: 160mhz channels are not properly displayed on the graph
7 participants