Issues with wifi HOSTAPD_START_FAILED

Hi

I am running a firmware version OpenWrt 23.05.0-rc3 r23389-5deed175a5 / LuCI openwrt-23.05 branch git-23.219.80063-bece581 .
and I find problems with the wifi interfaces that I am not able to raise any of them as I continually get this error:

Fri Sep 22 21:36:22 2023 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy phy0-ap0) --> new PHY
Fri Sep 22 21:36:22 2023 daemon.err hostapd: Line 18: unknown configuration item 'radio_config_id'
Fri Sep 22 21:36:22 2023 daemon.err hostapd: FT (IEEE 802.11r) requires nas_identifier to be configured as a 1..48 octet string
Fri Sep 22 21:36:22 2023 daemon.err hostapd: 2 errors found in configuration file '/var/run/hostapd-phy0.conf'
Fri Sep 22 21:36:22 2023 daemon.err hostapd: Failed to set up interface with /var/run/hostapd-phy0.conf
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040): Command failed: ubus call hostapd config_add {"iface":"phy0-ap0", "config":"/var/run/hostapd-phy0.conf"} (Invalid argument)
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040): Usage: ubus [<options>] <command> [arguments...]
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040): Options:
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040):  -s <socket>:		Set the unix domain socket to connect to
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040):  -t <timeout>:		Set the timeout (in seconds) for a command to complete
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040):  -S:			Use simplified output (for scripts)
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040):  -v:			More verbose output
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040):  -m <type>:		(for monitor): include a specific message type
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040): 			(can be used more than once)
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040):  -M <r|t>		(for monitor): only capture received or transmitted traffic
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040):
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040): Commands:
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040):  - list [<path>]			List objects
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040):  - call <path> <method> [<message>]	Call an object method
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040):  - subscribe <path> [<path>...]	Subscribe to object(s) notifications
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040):  - listen [<path>...]			Listen for events
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040):  - send <type> [<message>]		Send an event
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040):  - wait_for <object> [<object>...]	Wait for multiple objects to appear on ubus
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040):  - monitor				Monitor ubus traffic
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040):
Fri Sep 22 21:36:22 2023 daemon.notice netifd: radio0 (2040): Device setup failed: HOSTAPD_START_FAILED
Fri Sep 22 21:36:22 2023 daemon.notice netifd: Wireless device 'radio0' set retry=0
Fri Sep 22 21:36:22 2023 daemon.crit netifd: Wireless device 'radio0' setup failed, retry=0
Fri Sep 22 21:36:22 2023 daemon.notice netifd: Wireless device 'radio0' is now down

any idea about why im having this issues?

thanks!

1 Like

Here setup done on my aps that are facing this issues:

I got firmware from last release published from openwrt.

1 Like

I have the same problem but with a qca9377 wifi card.

  • In version 22.03.5 (x86/64/generic-ext4-combined-efi.img) it worked fine.
  • In version 23.05.0-rc3 (x86/64/generic-ext4-combined-efi.img) it does not work. I am using a fresh install. I only installed the necessary drivers for the wifi card. Installing available package updates did not help.
Sat Sep 23 10:44:41 2023 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy phy0-ap0) --> new PHY
Sat Sep 23 10:44:41 2023 daemon.err hostapd: Line 20: unknown configuration item 'radio_config_id'
Sat Sep 23 10:44:41 2023 daemon.err hostapd: 1 errors found in configuration file '/var/run/hostapd-phy0.conf'
Sat Sep 23 10:44:41 2023 daemon.err hostapd: Failed to set up interface with /var/run/hostapd-phy0.conf
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481): Command failed: ubus call hostapd config_add {"iface":"phy0-ap0", "config":"/var/run/hostapd-phy0.conf"} (Invalid argument)
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481): Usage: ubus [<options>] <command> [arguments...]
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481): Options:
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481):  -s <socket>:             Set the unix domain socket to connect to
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481):  -t <timeout>:            Set the timeout (in seconds) for a command to complete
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481):  -S:                      Use simplified output (for scripts)
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481):  -v:                      More verbose output
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481):  -m <type>:               (for monitor): include a specific message type
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481):                   (can be used more than once)
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481):  -M <r|t>         (for monitor): only capture received or transmitted traffic
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481):
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481): Commands:
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481):  - list [<path>]                  List objects
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481):  - call <path> <method> [<message>]       Call an object method
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481):  - subscribe <path> [<path>...]   Subscribe to object(s) notifications
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481):  - listen [<path>...]                     Listen for events
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481):  - send <type> [<message>]                Send an event
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481):  - wait_for <object> [<object>...]        Wait for multiple objects to appear on ubus
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481):  - monitor                                Monitor ubus traffic
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481):
Sat Sep 23 10:44:41 2023 daemon.notice netifd: radio0 (3481): Device setup failed: HOSTAPD_START_FAILED
Sat Sep 23 10:44:41 2023 daemon.notice netifd: Wireless device 'radio0' set retry=0
Sat Sep 23 10:44:41 2023 daemon.crit netifd: Wireless device 'radio0' setup failed, retry=0
Sat Sep 23 10:44:41 2023 daemon.notice netifd: Wireless device 'radio0' is now down

The solution that helped me: AX3600 hostapd unknown configuration item 'radio_config_id' [SNAPSHOT r23375-cdfcac6e24] - #20 by davidrapan

Fix in source code here: https://github.com/openwrt/openwrt/commit/ed0ad7759c6ff823f3d43c5189cf6c2d59529244

1 Like