openwrtv4/package/network/services/hostapd/files
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
..
hostapd-full.config wifi: Introduce 802.11ac support 2014-02-03 13:31:44 +00:00
hostapd-mini.config wifi: Introduce 802.11ac support 2014-02-03 13:31:44 +00:00
hostapd.sh hostapd: recognize 8021x as an authentication mode 2013-10-08 11:09:52 +00:00
multicall.c packages: sort network related packages into package/network/ 2012-10-10 12:32:29 +00:00
netifd.sh hostapd: fix "bad number" error due to missing wps_pbc_in_m1 option (since r39995) 2014-04-12 14:28:34 +00:00
wpa_supplicant-full.config hostapd: remove random pool support - the entropy it gathers is questionable and we have better entropy sources on common platforms now 2013-11-18 13:54:26 +00:00
wpa_supplicant-mini.config hostapd: remove random pool support - the entropy it gathers is questionable and we have better entropy sources on common platforms now 2013-11-18 13:54:26 +00:00
wpa_supplicant-p2p.config hostapd: remove random pool support - the entropy it gathers is questionable and we have better entropy sources on common platforms now 2013-11-18 13:54:26 +00:00
wpa_supplicant.sh wpa_supplicant: fix beacon_int configuration option 2013-10-18 11:47:47 +00:00
wps-hotplug.sh hostapd: change the wildcard for the hostapd control socket directory 2013-12-02 13:08:14 +00:00