Is hostapd in official repos compiled without Wi-Fi 6 support enabled?

Can’t get wifi 6E to work, even though my device (mediatek MT7922) supports it. I get the following error on creating a network

sudo hostapd -d /etc/hostapd/hostapd-6ghz.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd-6ghz.conf
Line 17: unknown configuration item 'op_class'
Line 22: unknown configuration item 'ieee80211ax'
2 errors found in configuration file '/etc/hostapd/hostapd-6ghz.conf'
Failed to set up interface with /etc/hostapd/hostapd-6ghz.conf
hostapd_init: free iface 0x5647f4865d50
Failed to initialize interface

output of iw list

Band 4:
                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: (0x4c70ce126dc0b3064e3f00):
                                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
                                Full Bandwidth UL MU-MIMO
                                Partial Bandwidth UL MU-MIMO
                                DCM Max Constellation: 2
                                DCM Max Constellation Rx: 2
                                SU Beamformee
                                Beamformee STS <= 80MHz: 3
                                Beamformee STS > 80MHz: 3
                                Ng = 16 SU Feedback
                                Ng = 16 MU Feedback
                                Codebook Size SU Feedback
                                Codebook Size MU Feedback
                                Triggered CQI Feedback
                                Partial Bandwidth Extended Range
                                PPE Threshold Present
                                Power Boost Factor ar
                                HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
                                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: not supported
                                4 streams: not supported
                                5 streams: not supported
                                6 streams: not supported
                                7 streams: not supported
--
                Frequencies:
                        * 5955.0 MHz [1] (24.0 dBm)
                        * 5975.0 MHz [5] (24.0 dBm)
                        * 5995.0 MHz [9] (24.0 dBm)
                        * 6015.0 MHz [13] (24.0 dBm)
                        * 6035.0 MHz [17] (24.0 dBm)
                        * 6055.0 MHz [21] (24.0 dBm)
                        * 6075.0 MHz [25] (24.0 dBm)
                        * 6095.0 MHz [29] (24.0 dBm)
                        * 6115.0 MHz [33] (24.0 dBm)
                        * 6135.0 MHz [37] (24.0 dBm)
                        * 6155.0 MHz [41] (24.0 dBm)
                        * 6175.0 MHz [45] (24.0 dBm)
                        * 6195.0 MHz [49] (24.0 dBm)
                        * 6215.0 MHz [53] (24.0 dBm)
                        * 6235.0 MHz [57] (24.0 dBm)
                        * 6255.0 MHz [61] (24.0 dBm)
                        * 6275.0 MHz [65] (24.0 dBm)
                        * 6295.0 MHz [69] (24.0 dBm)
                        * 6315.0 MHz [73] (24.0 dBm)
                        * 6335.0 MHz [77] (24.0 dBm)
                        * 6355.0 MHz [81] (24.0 dBm)
                        * 6375.0 MHz [85] (24.0 dBm)
                        * 6395.0 MHz [89] (24.0 dBm)
                        * 6415.0 MHz [93] (24.0 dBm)
                        * 6435.0 MHz [97] (disabled)
                        * 6455.0 MHz [101] (disabled)
                        * 6475.0 MHz [105] (disabled)
                        * 6495.0 MHz [109] (disabled)
                        * 6515.0 MHz [113] (disabled)
                        * 6535.0 MHz [117] (disabled)
                        * 6555.0 MHz [121] (disabled)
                        * 6575.0 MHz [125] (disabled)
                        * 6595.0 MHz [129] (disabled)
                        * 6615.0 MHz [133] (disabled)
                        * 6635.0 MHz [137] (disabled)
                        * 6655.0 MHz [141] (disabled)
                        * 6675.0 MHz [145] (disabled)
                        * 6695.0 MHz [149] (disabled)
                        * 6715.0 MHz [153] (disabled)
                        * 6735.0 MHz [157] (disabled)
                        * 6755.0 MHz [161] (disabled)
                        * 6775.0 MHz [165] (disabled)
                        * 6795.0 MHz [169] (disabled)
                        * 6815.0 MHz [173] (disabled)
                        * 6835.0 MHz [177] (disabled)
                        * 6855.0 MHz [181] (disabled)
                        * 6875.0 MHz [185] (disabled)
                        * 6895.0 MHz [189] (disabled)
                        * 6915.0 MHz [193] (disabled)
                        * 6935.0 MHz [197] (disabled)
                        * 6955.0 MHz [201] (disabled)
                        * 6975.0 MHz [205] (disabled)
                        * 6995.0 MHz [209] (disabled)
                        * 7015.0 MHz [213] (disabled)
                        * 7035.0 MHz [217] (disabled)
                        * 7055.0 MHz [221] (disabled)
                        * 7075.0 MHz [225] (disabled)
                        * 7095.0 MHz [229] (disabled)
                        * 7115.0 MHz [233] (disabled)

Please see → Software access point - ArchWiki → more specifically see → Wi-Fi link layer and do note - according to the link - only WPA2 is supported.

Inherited from upstream Arch Linux - based on the above link:

Q: Is hostapd in official repos compiled without WiFi 6 support enabled?
A: No.

 $ mbn info hostapd -q
Branch         : archlinux
Name           : hostapd
Version        : 2.11-4
Repository     : extra
Build Date     : Wed 21 Aug 2024 16:09:07 
Packager       : David Runge <dvzrv@archlinux.org>
Branch         : unstable
Name           : hostapd
Version        : 2.11-4
Repository     : extra
Build Date     : Wed 21 Aug 2024 16:09:07 
Packager       : David Runge <dvzrv@archlinux.org>
Branch         : testing
Name           : hostapd
Version        : 2.11-4
Repository     : extra
Build Date     : Wed 21 Aug 2024 16:09:07 
Packager       : David Runge <dvzrv@archlinux.org>
Branch         : stable
Name           : hostapd
Version        : 2.11-4
Repository     : extra
Build Date     : Wed 21 Aug 2024 16:09:07 
Packager       : David Runge <dvzrv@archlinux.org>

Check your wi-fi regulatory domain.

Your iw list output shows the 6GHz is there, simply not enabled. The regulatory domain determines whether or not this is enabled based on your location.

It’s documented in the Arch wiki, but I find the page in the CachyOS wiki more directly addresses the issue and how to remedy it.

I discovered this, BTW, because one of my laptops came with an MT7922. If refused to use 6GHz until I discovered this. Said laptop now has an MT7925 for WiFi 7.