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:55:46 +0000 (14:55 +0100)
commit633c35aaa46d96721ea11462a510ae7c41d18378
tree3c50882dbe05f9b7876ce78c4ca2dae61eb27c27
parent6699f58fdbfd74cd3206bd1bc3311e395204ba30
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