openwrtv4/package/network/services
Felix Fietkau 0d7e8ba3a9 hostapd: fix "bad number" error due to missing wps_pbc_in_m1 option (since r39995)
r39995 introduced a new parameter wps_pbc_in_m1 to wifi wps config, but
apparently did not provide a default value 0.

When that option's non-existing value is later evaluated in
/lib/netifd/hostapd.sh, it causes the "bad number" error to be logged in
syslog if user has not set the wps_pbc_in_m1 option. The error materialises
only if user has enabled wps.
    Sat Apr 12 13:25:01 2014 daemon.notice netifd: radio1 (1254): sh: bad number
    Sat Apr 12 13:25:01 2014 daemon.notice netifd: radio0 (1253): sh: bad number

Discussion in bug 15508: https://dev.openwrt.org/ticket/15508#comment:3

Error is caused by line 282:
https://dev.openwrt.org/browser/trunk/package/network/services/hostapd/files/netifd.sh#L282

My patch sets the parameter's default value to 0, which does nothing. The
default might also be set a bit later in the function, but this felt like the
most clear place to do that.

Signed-off-by hnyman <hannu.nyman@iki.fi>

SVN-Revision: 40469
2014-04-12 14:28:34 +00:00
..
authsae authsae: update to latest version 2014-02-18 13:33:13 +00:00
dnsmasq dnsmasq: add dnsmasq.d config folder & improve odhcpd coexistence 2014-01-17 14:00:09 +00:00
dropbear dropbear: move options.h editing to Build/Configure 2014-03-29 17:10:52 +00:00
ead ead: clean up 2014-03-21 15:54:59 +00:00
hostapd hostapd: fix "bad number" error due to missing wps_pbc_in_m1 option (since r39995) 2014-04-12 14:28:34 +00:00
ipset-dns procd: convert various packages to procd style init.d scripts 2013-09-17 21:45:30 +00:00
lldpd lldpd: build without libreadline 2014-01-29 13:10:39 +00:00
odhcpd odhcpd: use correct defaults for interfaces not in UCI 2014-04-09 12:29:43 +00:00
openvpn polarssl: update to version 1.3.4 and add openssl compat patch 2014-03-14 15:05:46 +00:00
openvpn-easy-rsa openvpn-easy-rsa: restore essential patch to make it actually work on the target (#14324) 2013-10-15 12:23:21 +00:00
ppp ppp: remove ppp requirement from chat 2014-03-21 15:54:52 +00:00
relayd relayd: add uci validation 2014-02-18 13:34:12 +00:00
samba36 samba36: revert r40341 2014-03-30 19:05:25 +00:00
uhttpd uhttpd: do not attempt to configure Lua handler if referenced file does not exist 2014-04-11 16:13:27 +00:00