You are not logged in.
I'm trying to create a 5GHz Access Point, 80MHz wide starting from channel 132, with a RTL8822CE using NetworkManager + wpa_supplicant. However this error shows up:
wpa_supplicant[505]: dbus: fill_dict_with_properties dbus_interface=fi.w1.wpa_supplicant1.Interface.P2PDevice dbus_property=P2PDeviceConfig getter failed
wpa_supplicant[505]: Note: nl80211 driver interface is not designed to be used with ap_scan=2; this can result in connection failures
wpa_supplicant[505]: Frequency 5660 (primary) not allowed for AP mode, flags: 0x959 RADAR
wpa_supplicant[505]: Primary frequency not allowed
wpa_supplicant[505]: Could not select hw_mode and channel. (-3)
wpa_supplicant[505]: wlp2s0: interface state UNINITIALIZED->DISABLED
wpa_supplicant[505]: wlp2s0: AP-DISABLED
wpa_supplicant[505]: wlp2s0: Unable to setup interface.
wpa_supplicant[505]: Failed to initialize AP interfaceBut I can't see why it's not allowed?
$ iw reg get
global
country AU: DFS-ETSI
(915 - 920 @ 4), (N/A, 30), (N/A)
(920 - 928 @ 8), (N/A, 30), (N/A)
(2400 - 2483 @ 40), (N/A, 36), (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 - 5600 @ 80), (N/A, 26), (0 ms), DFS
(5650 - 5730 @ 80), (N/A, 26), (0 ms), DFS
(5730 - 5850 @ 80), (N/A, 36), (N/A), AUTO-BW
(5850 - 5875 @ 20), (N/A, 13), (N/A), AUTO-BW
(5925 - 6425 @ 160), (N/A, 23), (N/A), NO-OUTDOOR
(57000 - 71000 @ 2160), (N/A, 43), (N/A), NO-OUTDOOR$ iw phy phy0 info
Wiphy phy0
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: 2 usec (0x04)
HT Max RX data rate: 300 Mbps
HT TX/RX MCS rate indexes supported: 0-15, 32
VHT Capabilities (0x03d071b2):
Max MPDU length: 11454
Supported Channel Width: neither 160 nor 80+80
RX LDPC
short GI (80 MHz)
TX STBC
SU Beamformee
MU Beamformee
+HTC-VHT
VHT RX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT RX highest supported: 780 Mbps
VHT TX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT TX highest supported: 780 Mbps
VHT extended NSS: not supported
Bitrates (non-HT):
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
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] (disabled)
* 5620.0 MHz [124] (disabled)
* 5640.0 MHz [128] (disabled)
* 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] (26.0 dBm) (radar detection)
* 5745.0 MHz [149] (36.0 dBm)
* 5765.0 MHz [153] (36.0 dBm)
* 5785.0 MHz [157] (36.0 dBm)
* 5805.0 MHz [161] (36.0 dBm)
* 5825.0 MHz [165] (36.0 dBm)
Supported commands:
* new_interface
* set_interface
* new_key
* start_ap
* new_station
* new_mpath
* set_mesh_config
* set_bss
* authenticate
* associate
* deauthenticate
* disassociate
* join_ibss
* join_mesh
* remain_on_channel
* set_tx_bitrate_mask
* frame
* frame_wait_cancel
* set_wiphy_netns
* set_channel
* tdls_mgmt
* tdls_oper
* probe_client
* set_noack_map
* register_beacons
* start_p2p_device
* set_mcast_rate
* connect
* disconnect
* set_qos_map
* set_multicast_to_unicast
* set_sar_specs
WoWLAN support:
* wake up on disconnect
* wake up on magic packet
* wake up on pattern match, up to 12 patterns of 1-128 bytes,
maximum packet offset 0 bytes
* can do GTK rekeying
* wake up on GTK rekey failure
* wake up on network detection, up to 4 match sets
software interface modes (can always be added):
* AP/VLAN
* monitor
valid interface combinations:
* #{ managed } <= 1, #{ AP } <= 1,
total <= 2, #channels <= 1
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
Device supports TX status socket option.
Device supports HT-IBSS.
Device supports SAE with AUTHENTICATE command
Device supports scan flush.
Device supports per-vif TX power setting
Driver supports full state transitions for AP/GO clients
Driver supports a userspace MPM
Device supports configuring vdev MAC-addr on create.
Device supports randomizing MAC-addr in scans.
max # scan plans: 1
max scan plan interval: -1
max scan plan iterations: 0
Supported TX frame types:
* IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
Supported RX frame types:
* IBSS: 0x40 0xb0 0xc0 0xd0
* managed: 0x40 0xb0 0xd0
* AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* mesh point: 0xb0 0xc0 0xd0
* P2P-client: 0x40 0xd0
* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* P2P-device: 0x40 0xd0
Supported extended features:
* [ RRM ]: RRM
* [ SET_SCAN_DWELL ]: scan dwell setting
* [ FILS_STA ]: STA FILS (Fast Initial Link Setup)
* [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
* [ TXQS ]: FQ-CoDel-enabled intermediate TXQs
* [ SCAN_RANDOM_SN ]: use random sequence numbers in scans
* [ CAN_REPLACE_PTK0 ]: can safely replace PTK 0 when rekeying
* [ 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
* [ POWERED_ADDR_CHANGE ]: can change MAC address while up$ nmcli con show br-port-wap
connection.id: br-port-wap
connection.uuid: 5cd0a84e-5d6d-43be-a60b-ca0f9420751b
connection.stable-id: --
connection.type: 802-11-wireless
connection.interface-name: wlp2s0
connection.autoconnect: yes
connection.autoconnect-priority: 0
connection.autoconnect-retries: -1 (default)
connection.multi-connect: 0 (default)
connection.auth-retries: -1
connection.timestamp: 1734869605
connection.permissions: --
connection.zone: --
connection.controller: 503dff56-811d-48f2-8e74-93c5a82fc63c
connection.master: 503dff56-811d-48f2-8e74-93c5a82fc63c
connection.slave-type: bridge
connection.port-type: bridge
connection.autoconnect-slaves: -1 (default)
connection.autoconnect-ports: -1 (default)
connection.down-on-poweroff: -1 (default)
connection.secondaries: --
connection.gateway-ping-timeout: 0
connection.metered: unknown
connection.lldp: default
connection.mdns: -1 (default)
connection.llmnr: -1 (default)
connection.dns-over-tls: -1 (default)
connection.mptcp-flags: 0x0 (default)
connection.wait-device-timeout: -1
connection.wait-activation-delay: -1
802-11-wireless.ssid: SSID
802-11-wireless.mode: ap
802-11-wireless.band: a
802-11-wireless.channel: 132
802-11-wireless.bssid: --
802-11-wireless.mac-address: --
802-11-wireless.cloned-mac-address: --
802-11-wireless.generate-mac-address-mask:--
802-11-wireless.mac-address-denylist: --
802-11-wireless.mac-address-randomization:default
802-11-wireless.mtu: auto
802-11-wireless.seen-bssids: 86:5E:0C:E1:F8:A4,A2:86:E8:A0:7C:EE,CE:F2:0F:ED:B7:15,92:42:74:75:FF:5B,92:66:06:54:71:83,AA:86:EA:D4:B8:AC,EA:72:15:4C:6C:03,76:56:F2:7C:67:66,12:ED:D0:1C:4D:F4,D6:B2:B7:39:2A:2B,2E:B8:2A:B7:6B:9>
802-11-wireless.hidden: no
802-11-wireless.powersave: 0 (default)
802-11-wireless.wake-on-wlan: 0x1 (default)
802-11-wireless.ap-isolation: -1 (default)
802-11-wireless.channel-width: 80 (80mhz)
802-11-wireless-security.key-mgmt: sae
802-11-wireless-security.wep-tx-keyidx: 0
802-11-wireless-security.auth-alg: --
802-11-wireless-security.proto: rsn
802-11-wireless-security.pairwise: ccmp
802-11-wireless-security.group: ccmp
802-11-wireless-security.pmf: 0 (default)
802-11-wireless-security.leap-username: --
802-11-wireless-security.wep-key0: <hidden>
802-11-wireless-security.wep-key1: <hidden>
802-11-wireless-security.wep-key2: <hidden>
802-11-wireless-security.wep-key3: <hidden>
802-11-wireless-security.wep-key-flags: 0 (none)
802-11-wireless-security.wep-key-type: unknown
802-11-wireless-security.psk: <hidden>
802-11-wireless-security.psk-flags: 0 (none)
802-11-wireless-security.leap-password: <hidden>
802-11-wireless-security.leap-password-flags:0 (none)
802-11-wireless-security.wps-method: 0x1 (disabled)
802-11-wireless-security.fils: 0 (default)
bridge-port.priority: 32
bridge-port.path-cost: 100
bridge-port.hairpin-mode: no
bridge-port.vlans: --Last edited by Beemo (2024-12-22 19:46:55)
Offline
(5650 - 5730 @ 80), (N/A, 26), (0 ms), DFSThat frequency band is used by radar installations near you (relatively, could be 20 km or more away) , choose another channel .
see https://en.wikipedia.org/wiki/Dynamic_f … _selection
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
That frequency band is used by radar installations near you (relatively
Indeed it's something about DFS. However I tried several channels in the DFS band and they are all not working (same error). I picked a non-DFS channel and it worked.
According to iw, all the DFS channels are "usable":
$ iw phy phy0 channels
Band 2:
* 5180 MHz [36]
Maximum TX power: 23.0 dBm
Channel widths: 20MHz HT40+ VHT80
* 5200 MHz [40]
Maximum TX power: 23.0 dBm
Channel widths: 20MHz HT40- HT40+ VHT80
* 5220 MHz [44]
Maximum TX power: 23.0 dBm
Channel widths: 20MHz HT40- HT40+ VHT80
* 5240 MHz [48]
Maximum TX power: 23.0 dBm
Channel widths: 20MHz HT40- HT40+ VHT80
* 5260 MHz [52]
Maximum TX power: 20.0 dBm
Radar detection
Channel widths: 20MHz HT40- HT40+ VHT80
DFS state: usable (for 12010 sec)
DFS CAC time: 60000 ms
* 5280 MHz [56]
Maximum TX power: 20.0 dBm
Radar detection
Channel widths: 20MHz HT40- HT40+ VHT80
DFS state: usable (for 12010 sec)
DFS CAC time: 60000 ms
* 5300 MHz [60]
Maximum TX power: 20.0 dBm
Radar detection
Channel widths: 20MHz HT40- HT40+ VHT80
DFS state: usable (for 12010 sec)
DFS CAC time: 60000 ms
* 5320 MHz [64]
Maximum TX power: 20.0 dBm
Radar detection
Channel widths: 20MHz HT40- VHT80
DFS state: usable (for 12010 sec)
DFS CAC time: 60000 ms
* 5500 MHz [100]
Maximum TX power: 26.0 dBm
Radar detection
Channel widths: 20MHz HT40+ VHT80
DFS state: usable (for 12010 sec)
DFS CAC time: 60000 ms
* 5520 MHz [104]
Maximum TX power: 26.0 dBm
Radar detection
Channel widths: 20MHz HT40- HT40+ VHT80
DFS state: usable (for 12010 sec)
DFS CAC time: 60000 ms
* 5540 MHz [108]
Maximum TX power: 26.0 dBm
Radar detection
Channel widths: 20MHz HT40- HT40+ VHT80
DFS state: usable (for 12010 sec)
DFS CAC time: 60000 ms
* 5560 MHz [112]
Maximum TX power: 26.0 dBm
Radar detection
Channel widths: 20MHz HT40- HT40+ VHT80
DFS state: usable (for 12010 sec)
DFS CAC time: 60000 ms
* 5580 MHz [116]
Maximum TX power: 26.0 dBm
Radar detection
Channel widths: 20MHz HT40- VHT80
DFS state: usable (for 12010 sec)
DFS CAC time: 60000 ms
* 5600 MHz [120] (disabled)
* 5620 MHz [124] (disabled)
* 5640 MHz [128] (disabled)
* 5660 MHz [132]
Maximum TX power: 26.0 dBm
Radar detection
Channel widths: 20MHz HT40+ VHT80
DFS state: usable (for 12010 sec)
DFS CAC time: 60000 ms
* 5680 MHz [136]
Maximum TX power: 26.0 dBm
Radar detection
Channel widths: 20MHz HT40- HT40+ VHT80
DFS state: usable (for 12010 sec)
DFS CAC time: 60000 ms
* 5700 MHz [140]
Maximum TX power: 26.0 dBm
Radar detection
Channel widths: 20MHz HT40- HT40+ VHT80
DFS state: usable (for 12010 sec)
DFS CAC time: 60000 ms
* 5720 MHz [144]
Maximum TX power: 26.0 dBm
Radar detection
Channel widths: 20MHz HT40- VHT80
DFS state: usable (for 12010 sec)
DFS CAC time: 60000 ms
* 5745 MHz [149]
Maximum TX power: 36.0 dBm
Channel widths: 20MHz HT40+ VHT80
* 5765 MHz [153]
Maximum TX power: 36.0 dBm
Channel widths: 20MHz HT40- HT40+ VHT80
* 5785 MHz [157]
Maximum TX power: 36.0 dBm
Channel widths: 20MHz HT40- HT40+ VHT80
* 5805 MHz [161]
Maximum TX power: 36.0 dBm
Channel widths: 20MHz HT40- HT40+ VHT80
* 5825 MHz [165]
Maximum TX power: 36.0 dBm
Channel widths: 20MHz HT40- VHT80Do I need to somehow manually enable DFS?
P.S. What's wrong about the following commands?
$ sudo iw dev wlp2s0 cac channel 1
command failed: Invalid argument (-22)
$ sudo iw dev wlp2s0 cac channel 132
command failed: Invalid argument (-22)
$ sudo iw dev wlp2s0 cac freq 5500
command failed: Invalid argument (-22)
$ sudo iw dev wlp2s0 cac
Usage: iw [options] dev <devname> cac channel <channel> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
dev <devname> cac freq <freq> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]
dev <devname> cac freq <control freq> [5|10|20|40|80|80+80|160] [<center1_freq> [<center2_freq>]]
Options:
--debug enable netlink debuggingOffline
I think I might be in the same boat as this old post online. The iw outputs shows what's available, not what's actually usable by me, but it seems hostapd will show that. And in his output, all DFS channels are missing.
So, is there a way to enable DFS or to show that it's not supported by driver / hardware?
EDIT: Actually I think because wifi.channel in NetworkManager is fixed, DFS is not used. I might need to look into hostapd instead.
EDIT2: The Realtek driver rtw88 likely doesn't have DFS. Some general info here.
Last edited by Beemo (2024-12-22 21:29:38)
Offline