#19345: netifd: radio0: sh: bad number
-------------------------------+-----------------------------------------
  Reporter:  braveheart_leo@…  |      Owner:  developers
      Type:  defect            |     Status:  new
  Priority:  normal            |  Milestone:  Chaos Calmer (trunk)
 Component:  packages          |    Version:  Trunk
Resolution:                    |   Keywords:  netifd radio0 sh bad number
-------------------------------+-----------------------------------------

Comment (by hnyman):

 The first "bad number" surfaces if the "ieee80211r" option has no value in
 /etc/config/wireless.

 r45051 introduced the config option, but apparently a missing value causes
 this error.

 I added some debug statements to /lib/netifd/hostapd.sh  ( =
 trunk/package/network/services/hostapd/files/netifd.sh ) and also
 configured my radio0 to have that option as 0. Now the error is produced
 only for radio1 that is missing the config option ieee80211r.

 {{{
 Sat Apr 11 10:55:50 2015 daemon.notice netifd: radio0 (9164): ieee80211r=0
 Sat Apr 11 10:55:50 2015 daemon.notice netifd: radio0 (9164): sh: bad
 number
 Sat Apr 11 10:55:50 2015 daemon.notice netifd: radio1 (9160): ieee80211r=
 Sat Apr 11 10:55:50 2015 daemon.notice netifd: radio1 (9160): sh: bad
 number
 Sat Apr 11 10:55:50 2015 daemon.notice netifd: radio1 (9160): sh: bad
 number
 }}}
 The second "bad number" is coming from elsewhere. Haven't yet found it.

 I added a default value 0 for the option, and the error gets eliminated
 (but naturally the missing nasid causes other errors as I tested radio0
 with ieee80211=1...):
 {{{
 root@OpenWrt2:/etc/config# diff /rom/lib/netifd/hostapd.sh
 /lib/netifd/hostapd.sh
 --- /rom/lib/netifd/hostapd.sh
 +++ /lib/netifd/hostapd.sh
 @@ -350,8 +350,10 @@

         if [ "$wpa" -ge "1" ]; then
                 json_get_vars nasid ieee80211r
 +               set_default ieee80211r 0
                 [ -n "$nasid" ] && append bss_conf "nas_identifier=$nasid"
 "$N"

 +echo ieee80211r=$ieee80211r
                 if [ "$ieee80211r" -gt "0" ]; then
                         json_get_vars mobility_domain r0_key_lifetime
 r1_key_holder \
                         reassociation_deadline pmk_r1_push

 --------------------
 LOGREAD:

 Sat Apr 11 11:02:19 2015 daemon.notice netifd: radio0 (10853):
 ieee80211r=1
 Sat Apr 11 11:02:19 2015 daemon.notice netifd: radio0 (10853): sh: bad
 number
 Sat Apr 11 11:02:19 2015 daemon.notice netifd: radio0 (10853):
 Configuration file: /var/run/hostapd-phy0.conf
 Sat Apr 11 11:02:19 2015 daemon.notice netifd: radio0 (10853): FT (IEEE
 802.11r) requires nas_identifier to be configured as a 1..48 octet string
 Sat Apr 11 11:02:19 2015 daemon.notice netifd: radio0 (10853): 1 errors
 found in configuration file '/var/run/hostapd-phy0.conf'
 Sat Apr 11 11:02:19 2015 daemon.notice netifd: radio0 (10853): Failed to
 set up interface with /var/run/hostapd-phy0.conf
 Sat Apr 11 11:02:19 2015 daemon.notice netifd: radio0 (10853): Failed to
 initialize interface
 Sat Apr 11 11:02:20 2015 daemon.notice netifd: radio0 (10853): Device
 setup failed: HOSTAPD_START_FAILED
 Sat Apr 11 11:02:20 2015 daemon.notice netifd: radio1 (10896):
 ieee80211r=0
 Sat Apr 11 11:02:20 2015 daemon.notice netifd: radio1 (10896): sh: bad
 number

--
Ticket URL: <https://dev.openwrt.org/ticket/19345#comment:1>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to