hostapd crash

e9hack e9hack at gmail.com
Sat Jan 13 02:28:50 PST 2024


Hi,

I did add one more AP to my wifi config for testing. This results in hostapd not starting for this device:

Thu Jan 11 13:59:12 2024 daemon.notice hostapd: Exception in ubus function: left-hand side expression is null In __iface_pending_next(), file /usr/share/hostap/hostapd.uc, line 165, byte 73:   called from function iface_pending_next (/usr/share/hostap/hostapd.uc:181:73)   called from function iface_pending_init (/usr/share/hostap/hostapd.uc:222:15)   called from function iface_restart (/usr/share/hostap/hostapd.uc:249:35)   called from function iface_set_config (/usr/share/hostap/hostapd.uc:620:52)   called from function [anonymous function] (/usr/share/hostap/hostapd.uc:827:32)   called from anonymous function (/usr/share/hostap/hostapd.uc:710:22)   `            hostapd.printf(`hostapd.add_iface failed for phy ${phy} ifname=${bss.ifname}`);`   Near here -----------------------------------------------------------------------^
Thu Jan 11 13:59:12 2024 daemon.notice netifd: radio1 (405): Command failed: ubus call hostapd config_set { "phy": "phy1", "config":"/var/run/hostapd-phy1.conf", "prev_config": "/var/run/hostapd-phy1.conf.prev"} (Unknown error)

My hostapd.uc is modified. The affected line number does have an offset by 1 related to the original file:

diff --git a/package/network/services/hostapd/files/hostapd.uc b/package/network/services/hostapd/files/hostapd.uc
index 0c89cd71cc..66e4e2353e 100644
--- a/package/network/services/hostapd/files/hostapd.uc
+++ b/package/network/services/hostapd/files/hostapd.uc
@@ -20,6 +20,7 @@ hostapd.data.file_fields = {
  	private_key2: true,
  	dh_file: true,
  	eap_sim_db: true,
+	crl_file: true,
  };
  
  function iface_remove(cfg)


The error doesn't appear when I remove a AP. It doesn't matter which one I remove.

Is there somewhere a buffer to small?

Regards,
Hartmut




More information about the openwrt-devel mailing list