Hostapd crashing after a few applies

Hello everyone,
i have a master OpenWRT build from today 2 pm. It is running on a 8Devices Carambola2 using ath79. When i apply configuration for Wifi with wifi or /etc/config/network reload, hostapd is crashing. This usually happens after the 5th attempt without changing the config in /etc/config/wireless. When i reboot the device everything is running perfectly.

cat /etc/config/wireless

config wifi-device 'radio0'
	option type 'mac80211'
	option hwmode '11g'
	option path 'platform/ahb/18100000.wmac'
	option htmode 'HT20'
	option noscan '1'
	option legacy_rates '0'
	option country 'DE'
	option channel '11'
	option txpower '20'
	option disabled '0'
	option log_level '1'

config wifi-iface 'wifinet0'
	option mode 'ap'
	option network 'lan'
	option device 'radio0'
	option ssid '0021-test-1-24'
	option disabled '0'
	option hidden '0'
	option encryption 'psk2'
	option key 'wireless123'

config wifi-iface 'wifinet1'
	option mode 'ap'
	option network 'lan'
	option device 'radio0'
	option ssid '0021-test-2-24'
	option disabled '0'
	option hidden '0'
	option encryption 'psk2'
	option key 'wireless123'

config wifi-iface 'wifinet2'
	option mode 'ap'
	option network 'lan'
	option device 'radio0'
	option ssid '0021-test-3-24'
	option disabled '0'
	option hidden '0'
	option encryption 'psk2'
	option key 'wireless123'

Here are debug messages from hostapd when using /etc/init.d/network reload

Thu Nov 26 16:11:51 2020 daemon.notice hostapd: Remove interface 'wlan0'
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: hostapd_interface_deinit_free(0x77df0550)
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: hostapd_interface_deinit_free: num_bss=2 conf->num_bss=2
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: hostapd_interface_deinit(0x77df0550)
Thu Nov 26 16:11:51 2020 daemon.notice hostapd: wlan0: interface state ENABLED->DISABLED
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: hostapd_bss_deinit: deinit bss wlan0-1
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: wlan0-1: Deauthenticate all stations
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: send_mlme - da=ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 no_encrypt=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: send_mlme - Use bss->freq=2462
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: send_mlme -> send_frame_cmd
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: Drop oldest pending send frame cookie 0x0
Thu Nov 26 16:11:51 2020 daemon.notice hostapd: wlan0-1: AP-DISABLED
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: hostapd_cleanup(hapd=0x77ecd010 (wlan0-1))
Thu Nov 26 16:11:51 2020 daemon.notice hostapd: wlan0-1: CTRL-EVENT-TERMINATING
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: Control interface directory not empty - leaving it behind
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: hostapd_free_hapd_data(wlan0-1)
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: wpa_driver_nl80211_if_remove(type=2 ifname=wlan0-1) ifindex=22 added_if=1
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: Remove interface ifindex=22
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: if_indices[16]: 21(-1)
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: if_indices[16]: 21(-1)
Thu Nov 26 16:11:51 2020 daemon.notice hostapd: nl80211: Failed to remove interface wlan0-1 from bridge br-lan: No such device
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: Not the first BSS - remove it
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: Teardown AP(wlan0-1) - device_ap_sme=0 use_monitor=0
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: Unsubscribe mgmt frames handle 0xdfb21059 (AP teardown)
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: Remove beacon (ifindex=22)
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: hostapd_bss_deinit: deinit bss wlan0
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: wlan0: Deauthenticate all stations
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: send_mlme - da=ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 no_encrypt=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: send_mlme - Use bss->freq=2462
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: send_mlme -> send_frame_cmd
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: Drop oldest pending send frame cookie 0x0
Thu Nov 26 16:11:51 2020 daemon.notice hostapd: wlan0: AP-DISABLED
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: hostapd_cleanup(hapd=0x77e06290 (wlan0))
Thu Nov 26 16:11:51 2020 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: Control interface directory not empty - leaving it behind
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: hostapd_free_hapd_data(wlan0)
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: hostapd_interface_deinit_free: driver=0x55658b4c drv_priv=0x5565be90 -> hapd_deinit
Thu Nov 26 16:11:51 2020 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: Could not remove interface wlan0 from bridge br-lan: Invalid argument
Thu Nov 26 16:11:51 2020 daemon.notice hostapd: nl80211: Failed to remove interface wlan0 from bridge br-lan: Invalid argument
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: Remove monitor interface: refcount=0
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: Remove beacon (ifindex=21)
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: netlink: Operstate: ifindex=21 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: nl80211: Unsubscribe mgmt frames handle 0xdded36c9 (deinit)
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: hostapd_interface_free(0x77df0550)
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: hostapd_interface_free: free hapd 0x77e06290
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: hostapd_interface_free: free hapd 0x77ecd010
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: hostapd_cleanup_iface(0x77df0550)
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: hostapd_cleanup_iface_partial(0x77df0550)
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: hostapd_cleanup_iface: free iface=0x77df0550
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: RTM_NEWLINK: ifi_index=22 ifname=wlan0-1 operstate=33554432 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: RTM_DELLINK: ifi_index=22 ifname=wlan0-1 operstate=33554432 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: RTM_DELLINK: Interface 'wlan0-1' removed
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: RTM_NEWLINK: ifi_index=21 ifname=wlan0 operstate=33554432 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: RTM_DELLINK: ifi_index=21 ifname=wlan0 operstate=33554432 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: RTM_DELLINK: Interface 'wlan0' removed
Thu Nov 26 16:11:51 2020 daemon.debug hostapd: Signal 15 received - terminating
Thu Nov 26 16:11:51 2020 daemon.info procd: Instance wpad::hostapd s in a crash loop 6 crashes, 101 seconds since last crash
Thu Nov 26 16:12:24 2020 daemon.notice netifd: radio0 (12482): WARNING (wireless_add_process): executable path /usr/sbin/hostapd does not match process  path (/proc/exe)

Here are debug messages from hostapd when using wifi

Thu Nov 26 17:03:22 2020 daemon.notice hostapd: Remove interface 'wlan0'
Thu Nov 26 17:03:22 2020 daemon.debug hostapd: hostapd_interface_deinit_free(0x77d4e550)
Thu Nov 26 17:03:22 2020 daemon.debug hostapd: hostapd_interface_deinit_free: num_bss=3 conf->num_bss=3
Thu Nov 26 17:03:22 2020 daemon.debug hostapd: hostapd_interface_deinit(0x77d4e550)
Thu Nov 26 17:03:22 2020 daemon.notice hostapd: wlan0: interface state ENABLED->DISABLED
Thu Nov 26 17:03:22 2020 daemon.debug hostapd: hostapd_bss_deinit: deinit bss wlan0-2
Thu Nov 26 17:03:22 2020 daemon.debug hostapd: wlan0-2: Deauthenticate all stations
Thu Nov 26 17:03:22 2020 daemon.debug hostapd: nl80211: send_mlme - da=ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 no_encrypt=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
Thu Nov 26 17:03:22 2020 daemon.debug hostapd: nl80211: send_mlme - Use bss->freq=2462
Thu Nov 26 17:03:22 2020 daemon.debug hostapd: nl80211: send_mlme -> send_frame_cmd
Thu Nov 26 17:03:22 2020 daemon.debug hostapd: nl80211: Drop oldest pending send frame cookie 0x0
Thu Nov 26 17:03:22 2020 daemon.notice hostapd: wlan0-2: AP-DISABLED
Thu Nov 26 17:03:22 2020 daemon.debug hostapd: hostapd_cleanup(hapd=0x556d1020 (wlan0-2))
Thu Nov 26 17:03:22 2020 daemon.notice hostapd: wlan0-2: CTRL-EVENT-TERMINATING
Thu Nov 26 17:03:22 2020 daemon.debug hostapd: Control interface directory not empty - leaving it behind
Thu Nov 26 17:03:22 2020 daemon.debug hostapd: hostapd_free_hapd_data(wlan0-2)
Thu Nov 26 17:03:22 2020 daemon.debug hostapd: nl80211: wpa_driver_nl80211_if_remove(type=2 ifname=wlan0-2) ifindex=26 added_if=1
Thu Nov 26 17:03:22 2020 daemon.debug hostapd: nl80211: Remove interface ifindex=26
Thu Nov 26 17:03:22 2020 daemon.debug hostapd: nl80211: if_indices[16]: 5(24) 24(-1) 25(-1) 5(25) 5(26)
Thu Nov 26 17:03:22 2020 daemon.debug hostapd: nl80211: if_indices[16]: 5(24) 24(-1) 25(-1) 5(25)
Thu Nov 26 17:03:23 2020 daemon.notice hostapd: nl80211: Failed to remove interface wlan0-2 from bridge br-lan: No such device
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: Not the first BSS - remove it
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: Teardown AP(wlan0-2) - device_ap_sme=0 use_monitor=0
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: Unsubscribe mgmt frames handle 0xdde6bce9 (AP teardown)
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: Remove beacon (ifindex=26)
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: hostapd_bss_deinit: deinit bss wlan0-1
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: wlan0-1: Deauthenticate all stations
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: send_mlme - da=ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 no_encrypt=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: send_mlme - Use bss->freq=2462
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: send_mlme -> send_frame_cmd
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: Drop oldest pending send frame cookie 0x0
Thu Nov 26 17:03:23 2020 daemon.notice hostapd: wlan0-1: AP-DISABLED
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: hostapd_cleanup(hapd=0x77e2b010 (wlan0-1))
Thu Nov 26 17:03:23 2020 daemon.notice hostapd: wlan0-1: CTRL-EVENT-TERMINATING
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: Control interface directory not empty - leaving it behind
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: hostapd_free_hapd_data(wlan0-1)
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: wpa_driver_nl80211_if_remove(type=2 ifname=wlan0-1) ifindex=25 added_if=1
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: Remove interface ifindex=25
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: if_indices[16]: 5(24) 24(-1) 5(25)
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: if_indices[16]: 5(24) 24(-1)
Thu Nov 26 17:03:23 2020 daemon.notice hostapd: nl80211: Failed to remove interface wlan0-1 from bridge br-lan: No such device
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: Not the first BSS - remove it
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: Teardown AP(wlan0-1) - device_ap_sme=0 use_monitor=0
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: Unsubscribe mgmt frames handle 0xff5c6669 (AP teardown)
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: Remove beacon (ifindex=25)
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: hostapd_bss_deinit: deinit bss wlan0
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: wlan0: Deauthenticate all stations
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: send_mlme - da=ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 no_encrypt=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: send_mlme - Use bss->freq=2462
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: send_mlme -> send_frame_cmd
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: Drop oldest pending send frame cookie 0x0
Thu Nov 26 17:03:23 2020 daemon.notice hostapd: wlan0: AP-DISABLED
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: hostapd_cleanup(hapd=0x77d64290 (wlan0))
Thu Nov 26 17:03:23 2020 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: Control interface directory not empty - leaving it behind
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: hostapd_free_hapd_data(wlan0)
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: hostapd_interface_deinit_free: driver=0x55653b4c drv_priv=0x55656e10 -> hapd_deinit
Thu Nov 26 17:03:23 2020 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: Remove monitor interface: refcount=0
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: Remove beacon (ifindex=24)
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: netlink: Operstate: ifindex=24 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: nl80211: Unsubscribe mgmt frames handle 0xddede549 (deinit)
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: hostapd_interface_free(0x77d4e550)
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: hostapd_interface_free: free hapd 0x77d64290
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: hostapd_interface_free: free hapd 0x77e2b010
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: hostapd_interface_free: free hapd 0x556d1020
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: hostapd_cleanup_iface(0x77d4e550)
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: hostapd_cleanup_iface_partial(0x77d4e550)
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: hostapd_cleanup_iface: free iface=0x77d4e550
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_NEWLINK: ifi_index=26 ifname=wlan0-2 operstate=33554432 linkmode=0 master=5 ifi_family=0 ifi_flags=0x1002 ()
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_NEWLINK: ifi_index=26 ifname=wlan0-2 master=5 operstate=33554432 ifi_family=7 ifi_flags=0x1002 ()
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_NEWLINK: ifi_index=26 ifname=wlan0-2 master=5 operstate=33554432 ifi_family=7 ifi_flags=0x1002 ()
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_DELLINK: ifi_index=26 ifname=wlan0-2 master=5 operstate=33554432 ifi_family=7 ifi_flags=0x1002 ()
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_DELLINK: ifi_index=26 ifname=wlan0-2 operstate=33554432 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_DELLINK: Interface 'wlan0-2' removed
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_NEWLINK: ifi_index=25 ifname=wlan0-1 operstate=33554432 linkmode=0 master=5 ifi_family=0 ifi_flags=0x1002 ()
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_NEWLINK: ifi_index=25 ifname=wlan0-1 master=5 operstate=33554432 ifi_family=7 ifi_flags=0x1002 ()
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_NEWLINK: ifi_index=25 ifname=wlan0-1 master=5 operstate=33554432 ifi_family=7 ifi_flags=0x1002 ()
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_DELLINK: ifi_index=25 ifname=wlan0-1 master=5 operstate=33554432 ifi_family=7 ifi_flags=0x1002 ()
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_DELLINK: ifi_index=25 ifname=wlan0-1 operstate=33554432 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_DELLINK: Interface 'wlan0-1' removed
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_NEWLINK: ifi_index=24 ifname=wlan0 operstate=100663296 linkmode=0 master=5 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_NEWLINK: ifi_index=24 ifname=wlan0 master=5 operstate=100663296 ifi_family=7 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_DELLINK: ifi_index=24 ifname=wlan0 master=5 operstate=100663296 ifi_family=7 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_NEWLINK: ifi_index=24 ifname=wlan0 operstate=100663296 linkmode=0 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_NEWLINK: ifi_index=24 ifname=wlan0 operstate=33554432 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_DELLINK: ifi_index=24 ifname=wlan0 operstate=33554432 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: RTM_DELLINK: Interface 'wlan0' removed
Thu Nov 26 17:03:23 2020 daemon.debug hostapd: Signal 15 received - terminating
Thu Nov 26 17:03:23 2020 daemon.info procd: Instance wpad::hostapd s in a crash loop 6 crashes, 24 seconds since last crash
Thu Nov 26 17:03:56 2020 daemon.notice netifd: radio0 (4867): WARNING (wireless_add_process): executable path /usr/sbin/hostapd does not match process  path (/proc/exe)

Does someone have an idea what I could still control or what is causing this problem.

Many thanks for the effort in advance

Where on Earth today at 2pm? :smiley:

  • Notice anything?
  • Perhaps it would help if you can explain why you're editing the wireless config; and then proceed to reload the network?
  • It may also be helpful if you explain why you perform the action multiple times
  • It may also help to explain why you do this without making changes

This statement was a bit too much :see_no_evil: sorry

When you use /etc/init.d/network reload it will also trigger wifi

reload_service() {
	local rv=0

	init_switch
	ubus call network reload || rv=1
	/sbin/wifi reload_legacy
	return $rv
}

It is not important if you try to do it in a few minutes or in a few hours. And I think it should work every time no matter how often I have already changed settings. I just found out that it occurs after a after a certain number of attempts during troubleshooting.

Same here. During troubleshooting I found out that I have no need to change the settings to reproduce this error.

These are just the minimum requirements to reproduce this behavior.

Before that I usually tried to enable and disable the radio or a specific wifi interface.

  • Does that mean you don't wish to tell us why you hit the button - even when you don't have to edit anything?
  • I'm not sure why you showed the script
  • I was more so seeking your personal motive/use case that discovered it

:open_mouth: Ummmm...OK...I guess that does mean you don't wish to tell us.

Ummmm...OK... :confused:

Well, all I can suggest is wait 'til the next Snapshot.

I did a master build so I can experiment a bit with 802.11k, 802.11v and DAWN and luci-app-dawn.

I tested different settings and just played arround. That is why i applied the configuration so often. And after a few settings i wondered why the wifi interface didn't come up. At first I thought the configuration was wrong and I reset the last change. But after saving again, the wifi interface still did not come up. After rebooting the device every thing was working great till i had made a few changes again.

Then i tried to find out why the wifi interface sometimes doesn't start anymore. Until I found out that it is enough to run the wifi command a few times, with and without making changes to the configuration.

I downloaded the latest development snapshot today and tried this without any extra packages and with the basic wifi configuration. After a few times (5 to 6) running wifi the crash appears. Rebooting the device and anything is working great again. Then i installed LuCI. I changed the SSID a few times (just for testing) via LuCI and after the 5th or 6th attempt the crash appears again. After rebooting everything was working great again.

Then i installed a stable release build v19.07.4 and made the same test again. Everything is okay with v19.07.4. I made about 10 attempts on changing something. The wifi interface always started again.

I made this topic because i want to help find out why this behavior occurs but i don't know what to do after increasing the log level of hostapd.

Maybe there is an idea what i can do to find out more about the crash.