| 1 Nov 2025 |
Sean 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 | 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 | so generally we recommend using replies instead of threads | 17:02:37 |
Sean Ross | Okay, I'll keep that in mind thankyou. | 17:06:15 |
crushing-smite | continuing: | 20:44:46 |
crushing-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 | The br0 interface when hostapd fails to start also loses ability to provide wired internet connection | 20:46:55 |
crushing-smite | (I've changed everything authentication mode to wpa2-sha256 btw, so clients do work with it now) | 20:47:47 |
K900 | What does iw phy say for it? | 20:48:49 |
crushing-smite | Right now, or when it fails? | 20:49:19 |
K900 | Doesn't matter | 20:49:24 |
crushing-smite | https://termbin.com/vmzn
| 20:51:07 |
K900 | Which one of those is the one you're using for the AP? | 21:04:23 |
crushing-smite | phy0 | 21:06:09 |
K900 | That looks perfectly capable of what you're trying to set up | 21:06:29 |
K900 | Which is strange | 21:06:31 |
K900 | Can you post the full generated hostapd.conf? | 21:06:37 |
crushing-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 | Are you forcing ieee80211h=0? | 21:08:19 |
crushing-smite | btw, it appears channel 44 does work | 21:08:37 |
crushing-smite | I have settings.ieee80211h = lib.mkForce false; | 21:08:48 |
K900 | Yeah don't do that | 21:08:57 |
crushing-smite | So, change to true and also change to operatingChannelWidth = "80"? | 21:09:22 |
crushing-smite | or just true for now? | 21:09:29 |
K900 | Just remove it entirely | 21:11:37 |
crushing-smite | Rebuilt, well, it works for operatingChannelWidth = "20or40"; and operatingChannelWidth = "80"; | 21:16:15 |
crushing-smite | * Rebuilt, well, it works for operatingChannelWidth = "20or40"; and channel = 44; | 21:16:23 |
crushing-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 | You should, yes | 21:17:14 |
crushing-smite | Keep channel = 44;, or bring it to lower 36? | 21:20:05 |