hostapd: fix stray "out of range" shell errors in hostapd.sh
authorJo-Philipp Wich <jo@mein.io>
Mon, 23 Jan 2017 13:52:27 +0000 (14:52 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 23 Jan 2017 13:56:20 +0000 (14:56 +0100)
commitb850218584c0a7bc573579b0d21d243e7ae1bf03
treebfc3b41b0b7885670fd3641d6625621ebe45386b
parentef08595c3fc85dc3bd99d5e0688f687cd1066eb6
hostapd: fix stray "out of range" shell errors in hostapd.sh

The hostapd_append_wpa_key_mgmt() procedure uses the possibly uninitialized
$ieee80211r and $ieee80211w variables in a numerical comparisation, leading
to stray "netifd: radio0 (0000): sh: out of range" errors in logread when
WPA-PSK security is enabled.

Ensure that those variables are substituted with a default value in order to
avoid emitting this (harmless) shell error.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
package/network/services/hostapd/Makefile
package/network/services/hostapd/files/netifd.sh