OpenWrt support for Xiaomi AX9000

iw reg set DE makes no problems. BTW, a wifi config gives this result:

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'soc/10000000.pci/pci0001:00/0001:00:00.0/0001:01:00.0'
        option channel '36'
        option band '5g'
        option htmode 'VHT80'
        option disabled '1'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'

config wifi-device 'radio1'
        option type 'mac80211'
        option path 'platform/soc/c000000.wifi'
        option disabled '1'

config wifi-iface 'default_radio1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'

config wifi-device 'radio2'
        option type 'mac80211'
        option path 'platform/soc/c000000.wifi+1'
        option channel '1'
        option band '2g'
        option htmode 'HE20'
        option disabled '1'

config wifi-iface 'default_radio2'
        option device 'radio2'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'

So by default it is somehow wrongly configured.

Even if I beginn with no wifi config, then iw reg set DE, configure default wifi , it starts and than gives me that again:

[  217.199927] WARNING: CPU: 3 PID: 1599 at ath11k_reg_update_chan_list+0x24c/0x294 [ath11k]
[  217.203584] Modules linked in: iptable_nat ath11k_ahb ath11k ath10k_pci ath10k_core ath xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE xt_CT nf_nat nf_conntrack mac80211 iptable_mangle iptable_filter ipt_REJECT ip_tables cfg80211 xt_time xt_tcpudp xt_multiport xt_mark xg
[  217.250701] CPU: 3 PID: 1599 Comm: hostapd Tainted: G        W         5.15.10 #0
[  217.272937] Hardware name: Xiaomi AX9000 (DT)
[  217.280311] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  217.284655] pc : ath11k_reg_update_chan_list+0x24c/0x294 [ath11k]
[  217.291425] lr : ath11k_wmi_scan_prob_req_oui+0x28e0/0x3570 [ath11k]
[  217.297676] sp : ffffffc01549b9c0
[  217.304093] x29: ffffffc01549b9c0 x28: ffffff801305d600 x27: 0000000000000000
[  217.307311] x26: 0000000000001003 x25: 0000000000000000 x24: ffffff80065aa7e0
[  217.314429] x23: ffffff80065ac4a0 x22: ffffff80065a8c60 x21: ffffff80065a8c38
[  217.321548] x20: 0000000000000000 x19: ffffff80065aa7e0 x18: 0000000000000014
[  217.328666] x17: 0000000000000004 x16: ffffff80065ab4c0 x15: 000000000000000d
[  217.335784] x14: ffffff800512859c x13: 0000000000000067 x12: ffffff80051285e8
[  217.342901] x11: 0000000000000018 x10: 0000000000000066 x9 : 0000000000000007
[  217.350019] x8 : 0000000000000004 x7 : ffffff80065ab4e0 x6 : 00000000ffffffff
[  217.357137] x5 : 000000000000000c x4 : 0000000000000040 x3 : ffffff80065a8c60
[  217.364256] x2 : ffffff8004b5aecc x1 : 0000000000000031 x0 : 0000000000000000
[  217.371374] Call trace:
[  217.378484]  ath11k_reg_update_chan_list+0x24c/0x294 [ath11k]
Mon Jan  3 01:56:37 2022 daemon.notice netifd: bridge 'br-lan' link is up
Mon Jan  3 01:56:37 2022 daemon.notice netifd: Interface 'lan' has link connectivity
Mon Jan  3 01:56:37 2022 daemon.notice hostapd: Frequency 5180 (primary) not allowed for AP mode, flags: 0x10851
Mon Jan  3 01:56:37 2022 daemon.err hostapd: Primary frequency not allowed
Mon Jan  3 01:56:37 2022 daemon.warn hostapd: wlan1: IEEE 802.11 Configured channel (36) or frequency (5180) (secondary_channel=0) not found from the channel list of the current mode (2) IEEE 802.11a
Mon Jan  3 01:56:37 2022 daemon.warn hostapd: wlan1: IEEE 802.11 Hardware does not support configured channel
Mon Jan  3 01:56:37 2022 daemon.err hostapd: Could not select hw_mode and channel. (-3)
Mon Jan  3 01:56:37 2022 daemon.notice hostapd: wlan1: interface state UNINITIALIZED->DISABLED

What could I else try?

Perhaps try another BDF?

This makes no sense, the default config is sane

Take a look at

config wifi-device 'radio1'
option type 'mac80211'
option path 'platform/soc/c000000.wifi'
option disabled '1'

Shouldn't there be something like band 2g channel and other stuff in the default?


I just tried your last 5.10 image and it seems to work. WTF, I have to check where's the difference in my rebases variant. Was sure I've done that before. Sorry for the noise.

Thanks!

Yeah, there should be.
Can you do iw phy and post it here?
Cause if you messed up caldata it would have no way of knowing the band

Of course (without phy0 because of size):

Wiphy phy2
        wiphy index: 2
        max # scan SSIDs: 16
        max scan IEs length: 152 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.
        Available Antennas: TX 0xf RX 0xf
        Configured Antennas: TX 0xf RX 0xf
        Supported interface modes:
                 * managed
                 * AP
                 * monitor
                 * mesh point
        Band 1:
                Capabilities: 0x11ef
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        RX HT20 SGI
                        RX HT40 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: No restriction (0x00)
                HT TX/RX MCS rate indexes supported: 0-31
                HE Iftypes: managed
                        HE MAC Capabilities (0x000b9a181040):
                                +HTC HE Supported
                                TWT Requester
                                Dynamic BA Fragementation Level: 1
                                BSR
                                Broadcast TWT
                                OM Control
                                Maximum A-MPDU Length Exponent: 3
                                RX Control Frame to MultiBSS
                                A-MSDU in A-MPDU
                                OM Control UL MU Data Disable RX
                        HE PHY Capabilities: (0x02604c897fc3839c010c00):
                                HE40/2.4GHz
                                LDPC Coding in Payload
                                HE SU PPDU with 1x HE-LTF and 0.8us GI
                                STBC Tx <= 80MHz
                                STBC Rx <= 80MHz
                                Full Bandwidth UL MU-MIMO
                                DCM Max Constellation: 1
                                DCM Max Constellation Rx: 1
                                SU Beamformer
                                SU Beamformee
                                MU Beamformer
                                Beamformee STS <= 80Mhz: 7
                                Beamformee STS > 80Mhz: 3
                                Sounding Dimensions <= 80Mhz: 3
                                Ng = 16 SU Feedback
                                Ng = 16 MU Feedback
                                Codebook Size SU Feedback
                                Codebook Size MU Feedback
                                PPE Threshold Present
                                HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
                                Max NC: 3
                                STBC Rx > 80MHz
                                HE ER SU PPDU 4x HE-LTF 0.8us GI
                                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
                        PPE Threshold 0x1b 0x1c 0xc7 0x71 0x1c 0xc7 0x71 
                HE Iftypes: AP
                        HE MAC Capabilities (0x000d9a181040):
                                +HTC HE Supported
                                TWT Responder
                                Dynamic BA Fragementation Level: 1
                                BSR
                                Broadcast TWT
                                OM Control
                                Maximum A-MPDU Length Exponent: 3
                                RX Control Frame to MultiBSS
                                A-MSDU in A-MPDU
                                OM Control UL MU Data Disable RX
                        HE PHY Capabilities: (0x02604c887fc3839c010c00):
                                HE40/2.4GHz
                                LDPC Coding in Payload
                                HE SU PPDU with 1x HE-LTF and 0.8us GI
                                STBC Tx <= 80MHz
                                STBC Rx <= 80MHz
                                Full Bandwidth UL MU-MIMO
                                DCM Max Constellation Rx: 1
                                SU Beamformer
                                SU Beamformee
                                MU Beamformer
                                Beamformee STS <= 80Mhz: 7
                                Beamformee STS > 80Mhz: 3
                                Sounding Dimensions <= 80Mhz: 3
                                Ng = 16 SU Feedback
                                Ng = 16 MU Feedback
                                Codebook Size SU Feedback
                                Codebook Size MU Feedback
                                PPE Threshold Present
                                HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
                                Max NC: 3
                                STBC Rx > 80MHz
                                HE ER SU PPDU 4x HE-LTF 0.8us GI
                                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
                        PPE Threshold 0x1b 0x1c 0xc7 0x71 0x1c 0xc7 0x71 
                HE Iftypes: mesh point
                        HE MAC Capabilities (0x00098a081040):
                                +HTC HE Supported
                                Dynamic BA Fragementation Level: 1
                                BSR
                                OM Control
                                Maximum A-MPDU Length Exponent: 1
                                RX Control Frame to MultiBSS
                                A-MSDU in A-MPDU
                                OM Control UL MU Data Disable RX
                        HE PHY Capabilities: (0x02600c807d43811c000000):
                                HE40/2.4GHz
                                LDPC Coding in Payload
                                HE SU PPDU with 1x HE-LTF and 0.8us GI
                                STBC Tx <= 80MHz
                                STBC Rx <= 80MHz
                                SU Beamformer
                                SU Beamformee
                                Beamformee STS <= 80Mhz: 7
                                Beamformee STS > 80Mhz: 3
                                Sounding Dimensions <= 80Mhz: 3
                                Ng = 16 SU Feedback
                                Codebook Size SU Feedback
                                PPE Threshold Present
                                HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
                                Max NC: 3
                        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
                        PPE Threshold 0x1b 0x1c 0xc7 0x71 0x1c 0xc7 0x71 
                Frequencies:
                        * 2412 MHz [1] (30.0 dBm)
                        * 2417 MHz [2] (30.0 dBm)
                        * 2422 MHz [3] (30.0 dBm)
                        * 2427 MHz [4] (30.0 dBm)
                        * 2432 MHz [5] (30.0 dBm)
                        * 2437 MHz [6] (30.0 dBm)
                        * 2442 MHz [7] (30.0 dBm)
                        * 2447 MHz [8] (30.0 dBm)
                        * 2452 MHz [9] (30.0 dBm)
                        * 2457 MHz [10] (30.0 dBm)
                        * 2462 MHz [11] (30.0 dBm)
                        * 2467 MHz [12] (disabled)
                        * 2472 MHz [13] (disabled)
                        * 2484 MHz [14] (disabled)
        valid interface combinations:
                 * #{ managed } <= 1, #{ AP, mesh point } <= 16,
                   total <= 16, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz, 80+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
        Maximum associated stations in AP mode: 128
        Supported extended features:
                * [ RRM ]: RRM
                * [ FILS_STA ]: STA FILS (Fast Initial Link Setup)
                * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
                * [ STA_TX_PWR ]: TX power control per station
                * [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support
                * [ SCAN_FREQ_KHZ ]: scan on kHz frequency support
                * [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support
                * [ BSS_COLOR ]: BSS coloring support
Wiphy phy1
        wiphy index: 1
        max # scan SSIDs: 16
        max scan IEs length: 142 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.
        Available Antennas: TX 0xf0 RX 0xf0
        Configured Antennas: TX 0xf0 RX 0xf0
        Supported interface modes:
                 * managed
                 * AP
                 * monitor
                 * mesh point
        Band 2:
                Capabilities: 0x19e7
                        RX LDPC
                        HT20/HT40
                        Dynamic SM Power Save
                        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: No restriction (0x00)
                HT TX/RX MCS rate indexes supported: 0-31
                VHT Capabilities (0x739bf9fa):
                        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: 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
                HE Iftypes: managed
                        HE MAC Capabilities (0x000b9a181040):
                                +HTC HE Supported
                                TWT Requester
                                Dynamic BA Fragementation Level: 1
                                BSR
                                Broadcast TWT
                                OM Control
                                Maximum A-MPDU Length Exponent: 3
                                RX Control Frame to MultiBSS
                                A-MSDU in A-MPDU
                                OM Control UL MU Data Disable RX
                        HE PHY Capabilities: (0x1c604c897fdb839c010c00):
                                HE40/HE80/5GHz
                                HE160/5GHz
                                HE160/HE80+80/5GHz
                                LDPC Coding in Payload
                                HE SU PPDU with 1x HE-LTF and 0.8us GI
                                STBC Tx <= 80MHz
                                STBC Rx <= 80MHz
                                Full Bandwidth UL MU-MIMO
                                DCM Max Constellation: 1
                                DCM Max Constellation Rx: 1
                                SU Beamformer
                                SU Beamformee
                                MU Beamformer
                                Beamformee STS <= 80Mhz: 7
                                Beamformee STS > 80Mhz: 3
                                Sounding Dimensions <= 80Mhz: 3
                                Sounding Dimensions > 80Mhz: 3
                                Ng = 16 SU Feedback
                                Ng = 16 MU Feedback
                                Codebook Size SU Feedback
                                Codebook Size MU Feedback
                                PPE Threshold Present
                                HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
                                Max NC: 3
                                STBC Rx > 80MHz
                                HE ER SU PPDU 4x HE-LTF 0.8us GI
                                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
                HE Iftypes: AP
                        HE MAC Capabilities (0x000d9a181040):
                                +HTC HE Supported
                                TWT Responder
                                Dynamic BA Fragementation Level: 1
                                BSR
                                Broadcast TWT
                                OM Control
                                Maximum A-MPDU Length Exponent: 3
                                RX Control Frame to MultiBSS
                                A-MSDU in A-MPDU
                                OM Control UL MU Data Disable RX
                        HE PHY Capabilities: (0x1c604c887fdb839c010c00):
                                HE40/HE80/5GHz
                                HE160/5GHz
                                HE160/HE80+80/5GHz
                                LDPC Coding in Payload
                                HE SU PPDU with 1x HE-LTF and 0.8us GI
                                STBC Tx <= 80MHz
                                STBC Rx <= 80MHz
                                Full Bandwidth UL MU-MIMO
                                DCM Max Constellation Rx: 1
                                SU Beamformer
                                SU Beamformee
                                MU Beamformer
                                Beamformee STS <= 80Mhz: 7
                                Beamformee STS > 80Mhz: 3
                                Sounding Dimensions <= 80Mhz: 3
                                Sounding Dimensions > 80Mhz: 3
                                Ng = 16 SU Feedback
                                Ng = 16 MU Feedback
                                Codebook Size SU Feedback
                                Codebook Size MU Feedback
                                PPE Threshold Present
                                HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
                                Max NC: 3
                                STBC Rx > 80MHz
                                HE ER SU PPDU 4x HE-LTF 0.8us GI
                                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
                HE Iftypes: mesh point
                        HE MAC Capabilities (0x00098a081040):
                                +HTC HE Supported
                                Dynamic BA Fragementation Level: 1
                                BSR
                                OM Control
                                Maximum A-MPDU Length Exponent: 1
                                RX Control Frame to MultiBSS
                                A-MSDU in A-MPDU
                                OM Control UL MU Data Disable RX
                        HE PHY Capabilities: (0x1c600c807d5b811c000000):
                                HE40/HE80/5GHz
                                HE160/5GHz
                                HE160/HE80+80/5GHz
                                LDPC Coding in Payload
                                HE SU PPDU with 1x HE-LTF and 0.8us GI
                                STBC Tx <= 80MHz
                                STBC Rx <= 80MHz
                                SU Beamformer
                                SU Beamformee
                                Beamformee STS <= 80Mhz: 7
                                Beamformee STS > 80Mhz: 3
                                Sounding Dimensions <= 80Mhz: 3
                                Sounding Dimensions > 80Mhz: 3
                                Ng = 16 SU Feedback
                                Codebook Size SU Feedback
                                PPE Threshold Present
                                HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
                                Max NC: 3
                        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 MHz [36] (disabled)
                        * 5200 MHz [40] (disabled)
                        * 5220 MHz [44] (disabled)
                        * 5240 MHz [48] (disabled)
                        * 5260 MHz [52] (disabled)
                        * 5280 MHz [56] (disabled)
                        * 5300 MHz [60] (disabled)
                        * 5320 MHz [64] (disabled)
                        * 5500 MHz [100] (disabled)
                        * 5520 MHz [104] (disabled)
                        * 5540 MHz [108] (disabled)
                        * 5560 MHz [112] (disabled)
                        * 5580 MHz [116] (disabled)
                        * 5600 MHz [120] (disabled)
                        * 5620 MHz [124] (disabled)
                        * 5640 MHz [128] (disabled)
                        * 5660 MHz [132] (disabled)
                        * 5680 MHz [136] (disabled)
                        * 5700 MHz [140] (disabled)
                        * 5720 MHz [144] (disabled)
                        * 5745 MHz [149] (30.0 dBm)
                        * 5765 MHz [153] (30.0 dBm)
                        * 5785 MHz [157] (30.0 dBm)
                        * 5805 MHz [161] (30.0 dBm)
                        * 5825 MHz [165] (30.0 dBm)
                        * 5845 MHz [169] (disabled)
                        * 5865 MHz [173] (disabled)
        valid interface combinations:
                 * #{ managed } <= 1, #{ AP, mesh point } <= 16,
                   total <= 16, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz, 80+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
        Maximum associated stations in AP mode: 128
        Supported extended features:
                * [ RRM ]: RRM
                * [ FILS_STA ]: STA FILS (Fast Initial Link Setup)
                * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
                * [ STA_TX_PWR ]: TX power control per station
                * [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support
                * [ SCAN_FREQ_KHZ ]: scan on kHz frequency support
                * [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support
                * [ BSS_COLOR ]: BSS coloring support


I will later try to get in in "production" and give an update.

But only channel 149 is usable. All others give me an error again:

config wifi-device 'radio1'
        option type 'mac80211'
        option path 'platform/soc/c000000.wifi'
        option channel '36'
        option band '5g'
        option htmode 'HE20'
        option disabled '0'
        option country 'DE'

with message:

Mon Jan  3 12:53:29 2022 kern.debug kernel: [   14.794043] ath: EEPROM regdomain: 0x8114
Mon Jan  3 12:53:29 2022 kern.debug kernel: [   14.794052] ath: EEPROM indicates we should expect a country code
Mon Jan  3 12:53:29 2022 kern.debug kernel: [   14.794054] ath: doing EEPROM country->regdmn map search
Mon Jan  3 12:53:29 2022 kern.debug kernel: [   14.794056] ath: country maps to regdmn code: 0x37
Mon Jan  3 12:53:29 2022 kern.debug kernel: [   14.794060] ath: Country alpha2 being used: DE
Mon Jan  3 12:53:29 2022 kern.debug kernel: [   14.794062] ath: Regpair used: 0x37
Mon Jan  3 12:53:29 2022 kern.debug kernel: [   14.794065] ath: regdomain 0x8114 dynamically updated by user
Mon Jan  3 12:53:30 2022 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy1.conf (phy wlan1) --> new PHY
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   15.916372] ------------[ cut here ]------------
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   15.916425] WARNING: CPU: 1 PID: 2321 at ath11k_reg_update_chan_list+0x254/0x280 [ath11k]
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   15.920061] Modules linked in: ecm iptable_nat ath11k_ahb ath11k ath10k_pci ath10k_core ath xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD nf_nat nf_flow_table nf_conntrack mac80211 ipt_REJECT cfg80211 xt_time xtg
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   15.978989] CPU: 1 PID: 2321 Comm: hostapd Not tainted 5.10.83 #0
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.001219] Hardware name: Xiaomi AX9000 (DT)
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.007471] pstate: 60400005 (nZCv daif +PAN -UAO -TCO BTYPE=--)
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.011824] pc : ath11k_reg_update_chan_list+0x254/0x280 [ath11k]
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.017895] lr : ath11k_wmi_scan_prob_req_oui+0x2970/0x35f0 [ath11k]
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.023877] sp : ffffffc0112239c0
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.030294] x29: ffffffc0112239c0 x28: ffffff8002ac1800
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.033509] x27: 0000000000000000 x26: 0000000000001003
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.038891] x25: 0000000000000000 x24: ffffff80076827e0
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.044187] x23: ffffff80076844a0 x22: ffffff8007680c60
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.049482] x21: ffffff8007680c38 x20: 0000000000000000
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.054777] x19: ffffff80076827e0 x18: 0000000000000014
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.060071] x17: 0000000000000004 x16: ffffff80076834c0
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.065367] x15: 000000000000000d x14: ffffff8005c083fc
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.070662] x13: 0000000000000067 x12: ffffff8005c08448
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.075958] x11: 0000000000000018 x10: 0000000000000066
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.081253] x9 : 0000000000000007 x8 : 0000000000000004
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.086548] x7 : ffffff80076834e0 x6 : 00000000ffffffff
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.091843] x5 : 000000000000000c x4 : 0000000000000040
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.097138] x3 : ffffff8007680c60 x2 : ffffff80056696cc
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.102433] x1 : 0000000000000031 x0 : 0000000000000000
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.107729] Call trace:
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.113028]  ath11k_reg_update_chan_list+0x254/0x280 [ath11k]
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.115203]  ath11k_wmi_scan_prob_req_oui+0x2970/0x35f0 [ath11k]
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.121127]  drv_start+0x38/0x60 [mac80211]
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.127185]  ieee80211_do_open+0x224/0x850 [mac80211]
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.131094]  ieee80211_do_open+0x804/0x850 [mac80211]
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.136292]  __dev_open+0xf4/0x180
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.141320]  __dev_change_flags+0x140/0x194
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.144619]  dev_change_flags+0x28/0x6c
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.148700]  devinet_ioctl+0x544/0x6e0
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.152518]  inet_ioctl+0x304/0x370
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.156338]  sock_do_ioctl+0x48/0x2ec
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.159722]  sock_ioctl+0x278/0x550
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.163544]  __arm64_sys_ioctl+0xbc/0xe0
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.166844]  el0_svc_common.constprop.0+0x88/0x190
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.171010]  do_el0_svc+0x74/0x94
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.175608]  el0_svc+0x14/0x20
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.178992]  el0_sync_handler+0xa8/0x130
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.181946]  el0_sync+0x184/0x1c0
Mon Jan  3 12:53:30 2022 kern.warn kernel: [   16.186024] ---[ end trace d54140c187df607d ]---
Mon Jan  3 12:53:30 2022 kern.info kernel: [   16.194181] br-lan: port 5(wlan1) entered blocking state
Mon Jan  3 12:53:30 2022 kern.info kernel: [   16.194217] br-lan: port 5(wlan1) entered disabled state
Mon Jan  3 12:53:30 2022 kern.info kernel: [   16.199592] device wlan1 entered promiscuous mode
Mon Jan  3 12:53:30 2022 daemon.notice hostapd: wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
Mon Jan  3 12:53:30 2022 daemon.notice hostapd: Frequency 5180 (primary) not allowed for AP mode, flags: 0x10851
Mon Jan  3 12:53:30 2022 daemon.err hostapd: Primary frequency not allowed
Mon Jan  3 12:53:30 2022 daemon.warn hostapd: wlan1: IEEE 802.11 Configured channel (36) or frequency (5180) (secondary_channel=0) not found from the channel list of the current mode (2) IEEE 802.11a
Mon Jan  3 12:53:30 2022 daemon.warn hostapd: wlan1: IEEE 802.11 Hardware does not support configured channel
Mon Jan  3 12:53:30 2022 daemon.err hostapd: Could not select hw_mode and channel. (-3)
Mon Jan  3 12:53:30 2022 daemon.notice hostapd: wlan1: interface state COUNTRY_UPDATE->DISABLED
Mon Jan  3 12:53:30 2022 daemon.notice hostapd: wlan1: AP-DISABLED

And that is fine as the built-in 5GHz radio only handles the small part of the 5GHz, the rest is handled by the QCN9074 which doesn't work if AHB module is loaded

Haven't expected that :astonished: I thought I could use the SOC radio until the problem with QCN9074 is fixed :frowning:

BTW, with DE it only shows this channels:

                Frequencies:
                        * 5180 MHz [36] (disabled)
                        * 5200 MHz [40] (disabled)
                        * 5220 MHz [44] (disabled)
                        * 5240 MHz [48] (disabled)
                        * 5260 MHz [52] (disabled)
                        * 5280 MHz [56] (disabled)
                        * 5300 MHz [60] (disabled)
                        * 5320 MHz [64] (disabled)
                        * 5500 MHz [100] (disabled)
                        * 5520 MHz [104] (disabled)
                        * 5540 MHz [108] (disabled)
                        * 5560 MHz [112] (disabled)
                        * 5580 MHz [116] (disabled)
                        * 5600 MHz [120] (disabled)
                        * 5620 MHz [124] (disabled)
                        * 5640 MHz [128] (disabled)
                        * 5660 MHz [132] (disabled)
                        * 5680 MHz [136] (disabled)
                        * 5700 MHz [140] (disabled)
                        * 5720 MHz [144] (disabled)
                        * 5745 MHz [149] (disabled)
                        * 5765 MHz [153] (disabled)
                        * 5785 MHz [157] (disabled)
                        * 5805 MHz [161] (disabled)
                        * 5825 MHz [165] (disabled)
                        * 5845 MHz [169] (disabled)
                        * 5865 MHz [173] (disabled)

Shouldn't 149 then be active, if it's the only channel for this radio?

They have limited the channels in the BDF so you cant use the same ones, regulatory is crap in ath11k

1 Like

Damn, thanks for explanation. Qualcomm and their bungling.. :unamused:

Is there a way to boot an initramfs image without a serial and without opening enclosure of ax9000?

No, you need to use the U-boot console

Thanks!
My USB to TTL converter doesn't support 1.8V and from this device specs, it looks like this voltage is needed for AX9000, right?
BTW has anyone tested robi's yesterday changes to AX9000? (https://github.com/robimarko/openwrt/commits/ipq807x-5.15)

Yes, it must be 1.8V level otherwise you can easily fry the SoC.
What adapter do you have?

I have DSD CP2102 (https://www.amazon.co.uk/gp/product/B072K3Z3TL) - only 3.3V and 5V

Yeah, then dont try it please.
Something FT232 based is great, that is what I am using

Just ordered PL2303GC-based (https://www.amazon.co.uk/gp/product/B08VRQFNSN) - hope it'll be good?

As long as it does 1.8V I/O it will be fine

Exactly, while I usually use a slightly pricier one just yesterday I got a five pack of those. Just USD 2.50 a pop.

https://a.aliexpress.com/_msroyJ2

If anybody in Europe is in dire need I might just stuff one in an envelope and send it along. Just PM me.