diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-12-23 12:11:28 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-12-23 12:11:28 +0000 |
commit | 2fcc4f3477d2e67c43f3777b511a13f7c3f19479 (patch) | |
tree | 67a37ba1c1e677150e19be91a1cb9f92ab028771 /package/network | |
parent | e6a85bcd9a97f8fa82ea2ff17d0889c30becf92d (diff) | |
download | master-187ad058-2fcc4f3477d2e67c43f3777b511a13f7c3f19479.tar.gz master-187ad058-2fcc4f3477d2e67c43f3777b511a13f7c3f19479.tar.bz2 master-187ad058-2fcc4f3477d2e67c43f3777b511a13f7c3f19479.zip |
hostapd: fix wep with netifd
Signed-off-by: Catalin Patulea <cat@vv.carleton.ca>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39156 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/services/hostapd/files/netifd.sh | 8 |
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 |