openwrtv3/package
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
..
base-files base-files: add back missing function for find_mtd_part to /lib/functions.sh (fixes #15496) 2014-04-08 21:17:49 +00:00
boot grub2: disable mkfont - fix build on Archlinux 2014-03-30 19:55:43 +00:00
devel upgrade the Linaro binutils to 2.24-2013.12 2014-01-07 15:03:55 +00:00
firmware linux-firmware: add a new package for firmware (currently only builds r8169 firmware) 2014-04-10 14:43:30 +00:00
kernel kernel: add a dependency of kmod-r8169 on r8169-firmware 2014-04-10 14:43:33 +00:00
libs OpenSSL: update to 1.0.1g 2014-04-08 05:24:36 +00:00
network hostapd: fix "bad number" error due to missing wps_pbc_in_m1 option (since r39995) 2014-04-12 14:28:34 +00:00
system uci: fix import with not yet existing packages, preserve config permissions on commit, fix Lua detection in cmake 2014-04-11 16:14:09 +00:00
utils ubi-utils: fix git tree path, a regex went mad 2014-04-05 16:34:30 +00:00
Makefile target/sdk: use .config instead of unconditionally enabling all build dirs 2014-03-13 12:12:58 +00:00