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