I got one mini PCIe module from Aliexpress and it works fine except for 5Ghz 160Mhz mode. I have the country settings on GB and from what I see on Wikipedia, 160Hz is allowed. I even tried selecting the channel manually to pick one that is for sure allowed in the UK.But It always disables itself. Here is the log I get:
Tue Mar 14 15:28:20 2023 daemon.notice hostapd: Remove interface 'wlan1'
Tue Mar 14 15:28:20 2023 daemon.notice hostapd: wlan1: interface state ENABLED->DISABLED
Tue Mar 14 15:28:20 2023 daemon.notice hostapd: wlan1: AP-DISABLED
Tue Mar 14 15:28:20 2023 daemon.notice hostapd: wlan1: CTRL-EVENT-TERMINATING
Tue Mar 14 15:28:20 2023 daemon.err hostapd: rmdir[ctrl_interface=/var/run/hostapd]: Permission denied
Tue Mar 14 15:28:20 2023 daemon.notice hostapd: nl80211: deinit ifname=wlan1 disabled_11b_rates=0
Tue Mar 14 15:28:20 2023 daemon.notice netifd: Network device 'wlan1' link is down
Tue Mar 14 15:28:20 2023 kern.info kernel: [ 3713.004607] device wlan1 left promiscuous mode
Tue Mar 14 15:28:20 2023 kern.info kernel: [ 3713.005305] br-lan: port 2(wlan1) entered disabled state
Tue Mar 14 15:28:20 2023 daemon.notice netifd: Wireless device 'radio1' is now down
Tue Mar 14 15:28:20 2023 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy1.conf (phy wlan1) --> new PHY
Tue Mar 14 15:28:20 2023 daemon.notice hostapd: wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
Tue Mar 14 15:28:20 2023 kern.info kernel: [ 3713.233203] br-lan: port 2(wlan1) entered blocking state
Tue Mar 14 15:28:20 2023 kern.info kernel: [ 3713.233829] br-lan: port 2(wlan1) entered disabled state
Tue Mar 14 15:28:20 2023 kern.info kernel: [ 3713.234586] device wlan1 entered promiscuous mode
Tue Mar 14 15:28:20 2023 kern.info kernel: [ 3713.235312] br-lan: port 2(wlan1) entered blocking state
Tue Mar 14 15:28:20 2023 kern.info kernel: [ 3713.235802] br-lan: port 2(wlan1) entered forwarding state
Tue Mar 14 15:28:20 2023 daemon.notice hostapd: wlan1: interface state COUNTRY_UPDATE->HT_SCAN
Tue Mar 14 15:28:20 2023 daemon.notice hostapd: wlan1: interface state HT_SCAN->DFS
Tue Mar 14 15:28:20 2023 daemon.notice hostapd: wlan1: DFS-CAC-START freq=5260 chan=52 sec_chan=1, width=2, seg0=50, seg1=0, cac_time=60s
Tue Mar 14 15:28:20 2023 daemon.err hostapd: nl80211: kernel reports: (extension) channel is disabled
Tue Mar 14 15:28:20 2023 daemon.err hostapd: DFS start_dfs_cac() failed, -1
Tue Mar 14 15:28:20 2023 daemon.err hostapd: Interface initialization failed
Tue Mar 14 15:28:20 2023 daemon.notice hostapd: wlan1: interface state DFS->DISABLED
Tue Mar 14 15:28:20 2023 daemon.notice hostapd: wlan1: AP-DISABLED
Tue Mar 14 15:28:21 2023 kern.info kernel: [ 3714.043503] br-lan: port 2(wlan1) entered disabled state
Tue Mar 14 15:28:21 2023 daemon.notice netifd: Wireless device 'radio1' is now up
And the output if iw reg get
root@OpenWrt:/etc/modules.d# iw reg get
global
country GB: 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 - 5730 @ 160), (N/A, 26), (0 ms), DFS
(5725 - 5850 @ 80), (N/A, 23), (N/A), NO-OUTDOOR
(5925 - 6425 @ 160), (N/A, 23), (N/A), NO-OUTDOOR
(57000 - 71000 @ 2160), (N/A, 40), (N/A)
Can anyone help explain what is going on?
Using OpenWrt 22.03.2 r19803-9a599fee93 / LuCI openwrt-22.03 branch git-22.288.45147-96ec0cd
as a virtual machine on Proxmox, with the PCIe wifi card passed through.