!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

865 Members
Declaratively manage your switching, routing, wireless, tunneling and more. | Don't rely on `networking.*` use systemd-networkd and NetworkManager instead. | Set `SYSTEMD_LOG_LEVEL=debug` to debug networking issues with networkd | No bad nft puns, please. | Room recommendations: #sysops:nixos.org248 Servers

Load older messages


SenderMessageTime
1 Nov 2025
@sross:matrix.orgSean Ross Hi ElvishJerricco, I just wanted to follow up on this it was a combination of networking.useNetworkd = true; and networking.vswitches.<name>.interfaces.<name> 17:00:09
@elvishjerricco:matrix.orgElvishJerricco Sean Ross: FYI, most matrix clients are really bad at threads. I wouldn't have seen this message if macOS wasn't the only OS with a good notification system :P 17:02:22
@elvishjerricco:matrix.orgElvishJerriccoso generally we recommend using replies instead of threads17:02:37
@sross:matrix.orgSean RossOkay, I'll keep that in mind thankyou.17:06:15
@crushing-smite:matrix.orgcrushing-smitecontinuing:20:44:46
@crushing-smite:matrix.orgcrushing-smite

When I change either operatingChannelWidth from 20or40 to 80 or channel from 36 to 44 (both together, or just one of these), hostapd fails to start with the following log:

-- Boot ef950a87f7f14e2bb3fb920037886385 --
Nov 01 20:31:55 nixos systemd[1]: Starting IEEE 802.11 Host Access-Point Daemon...
Nov 01 20:31:55 nixos systemd[1]: Started IEEE 802.11 Host Access-Point Daemon.
Nov 01 20:31:55 nixos hostapd[796]: wlp5s0: interface state UNINITIALIZED->COUNTRY_UPDATE
Nov 01 20:31:55 nixos hostapd[796]: Interface initialization failed
Nov 01 20:31:55 nixos hostapd[796]: wlp5s0: interface state COUNTRY_UPDATE->DISABLED
Nov 01 20:31:55 nixos hostapd[796]: wlp5s0: AP-DISABLED
Nov 01 20:31:55 nixos hostapd[796]: wlp5s0: Unable to setup interface.
Nov 01 20:31:55 nixos hostapd[796]: wlp5s0: interface state DISABLED->DISABLED
Nov 01 20:31:55 nixos hostapd[796]: wlp5s0: AP-DISABLED
Nov 01 20:31:55 nixos hostapd[796]: wlp5s0: CTRL-EVENT-TERMINATING
Nov 01 20:31:55 nixos hostapd[796]: rmdir[ctrl_interface=/run/hostapd]: Device or resource busy
Nov 01 20:31:55 nixos hostapd[796]: hostapd_free_hapd_data: Interface wlp5s0 wasn't started
Nov 01 20:31:55 nixos hostapd[796]: nl80211: deinit ifname=wlp5s0 disabled_11b_rates=0
Nov 01 20:31:56 nixos systemd[1]: hostapd.service: Main process exited, code=exited, status=1/FAILURE
Nov 01 20:31:56 nixos systemd[1]: hostapd.service: Failed with result 'exit-code'.
Nov 01 20:31:56 nixos systemd[1]: hostapd.service: Consumed 107ms CPU time, 3.9M memory peak, 2.2M read from disk.
Nov 01 20:31:56 nixos systemd[1]: hostapd.service: Scheduled restart job, restart counter is at 1.
Nov 01 20:31:56 nixos systemd[1]: Starting IEEE 802.11 Host Access-Point Daemon...
Nov 01 20:31:56 nixos systemd[1]: Started IEEE 802.11 Host Access-Point Daemon.
Nov 01 20:31:56 nixos hostapd[952]: wlp5s0: interface state UNINITIALIZED->COUNTRY_UPDATE
Nov 01 20:31:56 nixos hostapd[952]: Interface initialization failed
Nov 01 20:31:56 nixos hostapd[952]: wlp5s0: interface state COUNTRY_UPDATE->DISABLED
Nov 01 20:31:56 nixos hostapd[952]: wlp5s0: AP-DISABLED
Nov 01 20:31:56 nixos hostapd[952]: wlp5s0: Unable to setup interface.
Nov 01 20:31:56 nixos hostapd[952]: wlp5s0: interface state DISABLED->DISABLED
Nov 01 20:31:56 nixos hostapd[952]: wlp5s0: AP-DISABLED
Nov 01 20:31:56 nixos hostapd[952]: wlp5s0: CTRL-EVENT-TERMINATING
Nov 01 20:31:56 nixos hostapd[952]: rmdir[ctrl_interface=/run/hostapd]: Device or resource busy
Nov 01 20:31:56 nixos hostapd[952]: hostapd_free_hapd_data: Interface wlp5s0 wasn't started
Nov 01 20:31:56 nixos hostapd[952]: nl80211: deinit ifname=wlp5s0 disabled_11b_rates=0
Nov 01 20:31:56 nixos hostapd[952]: nl80211: Failed to remove interface wlp5s0 from bridge br0: Invalid argument
Nov 01 20:31:56 nixos systemd[1]: hostapd.service: Main process exited, code=exited, status=1/FAILURE
Nov 01 20:31:56 nixos systemd[1]: hostapd.service: Failed with result 'exit-code'.
Nov 01 20:31:56 nixos systemd[1]: hostapd.service: Scheduled restart job, restart counter is at 2.
Nov 01 20:31:56 nixos systemd[1]: Starting IEEE 802.11 Host Access-Point Daemon...
Nov 01 20:31:56 nixos systemd[1]: Started IEEE 802.11 Host Access-Point Daemon.
Nov 01 20:31:56 nixos hostapd[952]: wlp5s0: interface state UNINITIALIZED->COUNTRY_UPDATE
Nov 01 20:31:56 nixos hostapd[952]: Interface initialization failed
Nov 01 20:31:56 nixos hostapd[952]: wlp5s0: interface state COUNTRY_UPDATE->DISABLED
Nov 01 20:31:56 nixos hostapd[952]: wlp5s0: AP-DISABLED
Nov 01 20:31:56 nixos hostapd[952]: wlp5s0: Unable to setup interface.
Nov 01 20:31:56 nixos hostapd[952]: wlp5s0: interface state DISABLED->DISABLED
Nov 01 20:31:56 nixos hostapd[952]: wlp5s0: AP-DISABLED
Nov 01 20:31:56 nixos hostapd[952]: wlp5s0: CTRL-EVENT-TERMINATING
Nov 01 20:31:56 nixos hostapd[952]: rmdir[ctrl_interface=/run/hostapd]: Device or resource busy
Nov 01 20:31:56 nixos hostapd[952]: hostapd_free_hapd_data: Interface wlp5s0 wasn't started
Nov 01 20:31:56 nixos hostapd[952]: nl80211: deinit ifname=wlp5s0 disabled_11b_rates=0
Nov 01 20:31:56 nixos hostapd[952]: nl80211: Failed to remove interface wlp5s0 from bridge br0: Invalid argument
Nov 01 20:31:56 nixos systemd[1]: hostapd.service: Main process exited, code=exited, status=1/FAILURE
Nov 01 20:31:56 nixos systemd[1]: hostapd.service: Failed with result 'exit-code'.
Nov 01 20:31:56 nixos systemd[1]: hostapd.service: Scheduled restart job, restart counter is at 2.
Nov 01 20:31:56 nixos systemd[1]: Starting IEEE 802.11 Host Access-Point Daemon...
Nov 01 20:31:56 nixos systemd[1]: Started IEEE 802.11 Host Access-Point Daemon.
Nov 01 20:31:56 nixos hostapd[968]: wlp5s0: interface state UNINITIALIZED->COUNTRY_UPDATE
Nov 01 20:31:56 nixos hostapd[968]: Interface initialization failed
Nov 01 20:31:56 nixos hostapd[968]: wlp5s0: interface state COUNTRY_UPDATE->DISABLED
Nov 01 20:31:56 nixos hostapd[968]: wlp5s0: AP-DISABLED
Nov 01 20:31:56 nixos hostapd[968]: wlp5s0: Unable to setup interface.
Nov 01 20:31:56 nixos hostapd[968]: wlp5s0: interface state DISABLED->DISABLED
Nov 01 20:31:56 nixos hostapd[968]: wlp5s0: AP-DISABLED
Nov 01 20:31:56 nixos hostapd[968]: wlp5s0: CTRL-EVENT-TERMINATING
Nov 01 20:31:56 nixos hostapd[968]: rmdir[ctrl_interface=/run/hostapd]: Device or resource busy
Nov 01 20:31:56 nixos hostapd[968]: hostapd_free_hapd_data: Interface wlp5s0 wasn't started
Nov 01 20:31:56 nixos hostapd[968]: nl80211: deinit ifname=wlp5s0 disabled_11b_rates=0
Nov 01 20:31:56 nixos hostapd[968]: nl80211: Failed to remove interface wlp5s0 from bridge br0: Invalid argument
Nov 01 20:31:57 nixos systemd[1]: hostapd.service: Main process exited, code=exited, status=1/FAILURE
Nov 01 20:31:57 nixos systemd[1]: hostapd.service: Failed with result 'exit-code'.
Nov 01 20:31:57 nixos systemd[1]: hostapd.service: Scheduled restart job, restart counter is at 3.
Nov 01 20:31:57 nixos systemd[1]: Starting IEEE 802.11 Host Access-Point Daemon...
Nov 01 20:31:57 nixos systemd[1]: Started IEEE 802.11 Host Access-Point Daemon.
Nov 01 20:31:57 nixos hostapd[984]: wlp5s0: interface state UNINITIALIZED->COUNTRY_UPDATE
Nov 01 20:31:57 nixos hostapd[984]: Interface initialization failed
Nov 01 20:31:57 nixos hostapd[984]: wlp5s0: interface state COUNTRY_UPDATE->DISABLED
Nov 01 20:31:57 nixos hostapd[984]: wlp5s0: AP-DISABLED
Nov 01 20:31:57 nixos hostapd[984]: wlp5s0: Unable to setup interface.
Nov 01 20:31:57 nixos hostapd[984]: wlp5s0: interface state DISABLED->DISABLED
Nov 01 20:31:57 nixos hostapd[984]: wlp5s0: AP-DISABLED
Nov 01 20:31:57 nixos hostapd[984]: wlp5s0: CTRL-EVENT-TERMINATING
Nov 01 20:31:57 nixos hostapd[984]: rmdir[ctrl_interface=/run/hostapd]: Device or resource busy
Nov 01 20:31:57 nixos hostapd[984]: hostapd_free_hapd_data: Interface wlp5s0 wasn't started
Nov 01 20:31:57 nixos hostapd[984]: nl80211: deinit ifname=wlp5s0 disabled_11b_rates=0
Nov 01 20:31:57 nixos hostapd[984]: nl80211: Failed to remove interface wlp5s0 from bridge br0: Invalid argument
Nov 01 20:31:57 nixos systemd[1]: hostapd.service: Main process exited, code=exited, status=1/FAILURE
Nov 01 20:31:57 nixos systemd[1]: hostapd.service: Failed with result 'exit-code'.
Nov 01 20:31:57 nixos systemd[1]: hostapd.service: Scheduled restart job, restart counter is at 4.
Nov 01 20:31:57 nixos systemd[1]: Starting IEEE 802.11 Host Access-Point Daemon...
Nov 01 20:31:57 nixos systemd[1]: Started IEEE 802.11 Host Access-Point Daemon.
Nov 01 20:31:57 nixos hostapd[999]: wlp5s0: interface state UNINITIALIZED->COUNTRY_UPDATE
Nov 01 20:31:57 nixos hostapd[999]: Interface initialization failed
Nov 01 20:31:57 nixos hostapd[999]: wlp5s0: interface state COUNTRY_UPDATE->DISABLED
Nov 01 20:31:57 nixos hostapd[999]: wlp5s0: AP-DISABLED
Nov 01 20:31:57 nixos hostapd[999]: wlp5s0: Unable to setup interface.
Nov 01 20:31:57 nixos hostapd[999]: wlp5s0: interface state DISABLED->DISABLED
Nov 01 20:31:57 nixos hostapd[999]: wlp5s0: AP-DISABLED
Nov 01 20:31:57 nixos hostapd[999]: wlp5s0: CTRL-EVENT-TERMINATING
Nov 01 20:31:57 nixos hostapd[999]: rmdir[ctrl_interface=/run/hostapd]: Device or resource busy
Nov 01 20:31:57 nixos hostapd[999]: hostapd_free_hapd_data: Interface wlp5s0 wasn't started
Nov 01 20:31:57 nixos hostapd[999]: nl80211: deinit ifname=wlp5s0 disabled_11b_rates=0
Nov 01 20:31:57 nixos hostapd[999]: nl80211: Failed to remove interface wlp5s0 from bridge br0: Invalid argument
Nov 01 20:31:58 nixos systemd[1]: hostapd.service: Main process exited, code=exited, status=1/FAILURE
Nov 01 20:31:58 nixos systemd[1]: hostapd.service: Failed with result 'exit-code'.
Nov 01 20:31:58 nixos systemd[1]: hostapd.service: Scheduled restart job, restart counter is at 5.
Nov 01 20:31:58 nixos systemd[1]: hostapd.service: Start request repeated too quickly.
Nov 01 20:31:58 nixos systemd[1]: hostapd.service: Failed with result 'exit-code'.
Nov 01 20:31:58 nixos systemd[1]: Failed to start IEEE 802.11 Host Access-Point Daemon.
20:46:03
@crushing-smite:matrix.orgcrushing-smiteThe br0 interface when hostapd fails to start also loses ability to provide wired internet connection20:46:55
@crushing-smite:matrix.orgcrushing-smite (I've changed everything authentication mode to wpa2-sha256 btw, so clients do work with it now) 20:47:47
@k900:0upti.meK900 What does iw phy say for it? 20:48:49
@crushing-smite:matrix.orgcrushing-smiteRight now, or when it fails?20:49:19
@k900:0upti.meK900Doesn't matter20:49:24
@crushing-smite:matrix.orgcrushing-smitehttps://termbin.com/vmzn 20:51:07
@k900:0upti.meK900Which one of those is the one you're using for the AP?21:04:23
@crushing-smite:matrix.orgcrushing-smitephy021:06:09
@k900:0upti.meK900That looks perfectly capable of what you're trying to set up21:06:29
@k900:0upti.meK900Which is strange21:06:31
@k900:0upti.meK900Can you post the full generated hostapd.conf?21:06:37
@crushing-smite:matrix.orgcrushing-smite
# Radio base configuration: wlp5s0
################################

channel=44
country_code=DE
driver=nl80211
ht_capab=[HT40][SHORT-GI-20][SHORT-GI-40]
hw_mode=a
ieee80211ac=1
ieee80211d=1
ieee80211h=0
ieee80211n=1
noscan=0
require_ht=0
require_vht=1
vht_capab=
vht_oper_chwidth=0


# BSS 0: wlp5s0
################################

interface=wlp5s0
ap_isolate=0
auth_algs=1
beacon_int=50
bridge=br0
ctrl_interface=/run/hostapd
ctrl_interface_group=wheel
ieee80211w=1
ignore_broadcast_ssid=0
logger_stdout=-1
logger_stdout_level=0
logger_syslog=-1
logger_syslog_level=0
macaddr_acl=0
rsn_pairwise=CCMP GCMP GCMP-256
sae_require_mfp=1
ssid=SsidName
utf8_ssid=1
wmm_enabled=1
wpa=2
wpa_key_mgmt=WPA-PSK-SHA256
wpa_pairwise=CCMP GCMP GCMP-256
wpa_passphrase=password
21:07:54
@k900:0upti.meK900Are you forcing ieee80211h=0?21:08:19
@crushing-smite:matrix.orgcrushing-smitebtw, it appears channel 44 does work21:08:37
@crushing-smite:matrix.orgcrushing-smite I have settings.ieee80211h = lib.mkForce false; 21:08:48
@k900:0upti.meK900Yeah don't do that21:08:57
@crushing-smite:matrix.orgcrushing-smite So, change to true and also change to operatingChannelWidth = "80"? 21:09:22
@crushing-smite:matrix.orgcrushing-smite or just true for now? 21:09:29
@k900:0upti.meK900Just remove it entirely21:11:37
@crushing-smite:matrix.orgcrushing-smite Rebuilt, well, it works for operatingChannelWidth = "20or40"; and operatingChannelWidth = "80"; 21:16:15
@crushing-smite:matrix.orgcrushing-smite * Rebuilt, well, it works for operatingChannelWidth = "20or40"; and channel = 44; 21:16:23
@crushing-smite:matrix.orgcrushing-smite Should I try to switch to operatingChannelWidth = "80", or is there some other output you would like to see before? 21:16:57
@k900:0upti.meK900You should, yes21:17:14
@crushing-smite:matrix.orgcrushing-smite Keep channel = 44;, or bring it to lower 36? 21:20:05

Show newer messages


Back to Room ListRoom Version: 6