From aab522e1e3b07507a071002db0aee02251b7e102 Mon Sep 17 00:00:00 2001 From: Felix Fietkau <nbd@openwrt.org> Date: Mon, 23 Dec 2013 12:11:28 +0000 Subject: hostapd: fix wep with netifd Signed-off-by: Catalin Patulea <cat@vv.carleton.ca> SVN-Revision: 39156 --- package/network/services/hostapd/files/netifd.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'package') diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh index 8380357..1589bc1 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 -- cgit v1.1