aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-12-23 12:11:28 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-12-23 12:11:28 +0000
commitaab522e1e3b07507a071002db0aee02251b7e102 (patch)
tree2ad25de9ff4d0b1f357cc9cdd08f07f17c1b0c29 /package/network/services/hostapd
parentfd4cd3825b6a29f245dbf0809f37d6c1d5845944 (diff)
downloadupstream-aab522e1e3b07507a071002db0aee02251b7e102.tar.gz
upstream-aab522e1e3b07507a071002db0aee02251b7e102.tar.bz2
upstream-aab522e1e3b07507a071002db0aee02251b7e102.zip
hostapd: fix wep with netifd
Signed-off-by: Catalin Patulea <cat@vv.carleton.ca> SVN-Revision: 39156
Diffstat (limited to 'package/network/services/hostapd')
-rw-r--r--package/network/services/hostapd/files/netifd.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh
index 83803575b4..1589bc1d5f 100644
--- a/package/network/services/hostapd/files/netifd.sh
+++ b/package/network/services/hostapd/files/netifd.sh
@@ -18,12 +18,12 @@ hostapd_append_wep_key() {
zidx=$(($idx - 1))
json_get_var ckey "key${idx}"
[ -n "$ckey" ] && \
- append network_data "wep_key${zidx}=$(prepare_key_wep "$ckey")" "$N$T"
+ append $var "wep_key${zidx}=$(prepare_key_wep "$ckey")" "$N$T"
done
wep_keyidx=$((key - 1))
;;
*)
- append network_data "wep_key0=$(prepare_key_wep "$key")" "$N$T"
+ append $var "wep_key0=$(prepare_key_wep "$key")" "$N$T"
;;
esac
}
@@ -233,8 +233,8 @@ hostapd_set_bss_options() {
;;
wep)
local wep_keyidx=0
- hostapd_append_wep_key network_data
- append bss_conf "wep_default_key=$wep_key" "$N"
+ hostapd_append_wep_key bss_conf
+ append bss_conf "wep_default_key=$wep_keyidx" "$N"
[ -n "$wep_rekey" ] && append bss_conf "wep_rekey_period=$wep_rekey" "$N"
;;
esac