hostapd crash
Janusz Dziedzic
janusz.dziedzic at gmail.com
Sat Jan 13 07:21:12 PST 2024
sob., 13 sty 2024 o 11:37 e9hack <e9hack at gmail.com> napisał(a):
>
> 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?
>
I don't see it on 23.05.2 and banana pi r3:
root at bpi-r3-os-0014555f4dd7:~# iw dev
phy#1
Interface wlan1-1
ifindex 17
wdev 0x100000003
addr 06:14:55:5f:4d:d9
ssid MAP-0014555F4DD7-BH-5GHz
type AP
channel 36 (5180 MHz), width: 80 MHz, center1: 5210 MHz
txpower 23.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 0 0 0 0 0 0 0
Interface wlan1
ifindex 14
wdev 0x100000002
addr 04:14:55:5f:4d:d9
ssid OpenWrt-0014555F4DD7
type AP
channel 36 (5180 MHz), width: 80 MHz, center1: 5210 MHz
txpower 23.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 20 0 0 0 0 1320 20
phy#0
Interface wlan0-1.sta1
ifindex 18
wdev 0x4
addr 02:14:55:5f:4d:d9
type AP/VLAN
channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
txpower 20.00 dBm
4addr: on
Interface wlan0-1
ifindex 16
wdev 0x3
addr 02:14:55:5f:4d:d9
ssid MAP-0014555F4DD7-BH-2.4GHz
type AP
channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
txpower 20.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 0 0 0 0 0 0 0
Interface wlan0
ifindex 15
wdev 0x2
addr 00:14:55:5f:4d:d9
ssid OpenWrt-0014555F4DD7
type AP
channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
txpower 20.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 154 0 0 0 5 11892 154
root at bpi-r3-os-0014555f4dd7:~# ubus list |grep hostapd
hostapd
hostapd.wlan0
hostapd.wlan0-1
hostapd.wlan1
hostapd.wlan1-1
root at bpi-r3-os-0014555f4dd7:~#
BR
Janusz
More information about the openwrt-devel
mailing list