aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-11-02 18:12:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-11-02 18:12:54 +0000
commit460640b6d7c524cda4332f190d57cf3df1e085a3 (patch)
tree340bc452d2466c36e9b3453f326046839ecc5243 /package
parent2fa7541613ebb2a7989766a31b9752b6c2952c6e (diff)
downloadupstream-460640b6d7c524cda4332f190d57cf3df1e085a3.tar.gz
upstream-460640b6d7c524cda4332f190d57cf3df1e085a3.tar.bz2
upstream-460640b6d7c524cda4332f190d57cf3df1e085a3.zip
hostapd: add default value to eapol_version (#20641)
r46861 introduced a new option eapol_version to hostapd, but did not provide a default value. When the option value is evaluated, the non-existing value causes errors to the systen log: "netifd: radio0: sh: out of range" Add a no-op default value 0 for eapol_version. Only values 1 or 2 are actually passed on, so 0 will not change the default action in hostapd. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> SVN-Revision: 47361
Diffstat (limited to 'package')
-rw-r--r--package/network/services/hostapd/files/netifd.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh
index bdfcbb252b..9b40a23451 100644
--- a/package/network/services/hostapd/files/netifd.sh
+++ b/package/network/services/hostapd/files/netifd.sh
@@ -194,6 +194,7 @@ hostapd_set_bss_options() {
set_default hidden 0
set_default wmm 1
set_default uapsd 1
+ set_default eapol_version 0
append bss_conf "ctrl_interface=/var/run/hostapd"
if [ "$isolate" -gt 0 ]; then