[OpenWrt-Devel] [PATCH 2/2] bug #19345 netifd: radio0: sh: bad number / hostapd

Hannu Nyman hannu.nyman at iki.fi
Sat Apr 11 06:42:11 EDT 2015

Two errors "netifd: radio0: sh: bad number" have recently surfaced in system 
log in trunk when wifi interfaces come up. I tracked the errors to checking 
numerical values of some config options without ensuring that the option has 
any value.

The errors I see have apparently been introduced by r45051 (ieee80211r in 
hostapd) and r45326 (start_disabled in mac80211). My patches fix two 
instances of "bad number", but there may be a third one, as the original 
report in bug 19345 pre-dates r45326 and already has two "bad number" errors 
for radio0.


Signed-off-by: Hannu Nyman <hannu.nyman at iki.fi>

-------------- next part --------------
Index: package/network/services/hostapd/files/netifd.sh
--- package/network/services/hostapd/files/netifd.sh	(revision 45369)
+++ package/network/services/hostapd/files/netifd.sh	(working copy)
@@ -346,6 +350,7 @@
 	if [ "$wpa" -ge "1" ]; then
 		json_get_vars nasid ieee80211r
+		set_default ieee80211r 0
 		[ -n "$nasid" ] && append bss_conf "nas_identifier=$nasid" "$N"
 		if [ "$ieee80211r" -gt "0" ]; then
-------------- next part --------------
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list