hostapd: fix mixed wep/wpa with netifd
authorFelix Fietkau <nbd@openwrt.org>
Sat, 28 Dec 2013 11:07:37 +0000 (11:07 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 28 Dec 2013 11:07:37 +0000 (11:07 +0000)
Signed-off-by: Catalin Patulea <cat@vv.carleton.ca>
SVN-Revision: 39174

package/network/services/hostapd/files/netifd.sh

index 3f99480097bb32aca323fb25e272b9f791737244..dd2256578dccdf7502e508801b2aea06ac07f23e 100644 (file)
@@ -233,6 +233,7 @@ hostapd_set_bss_options() {
                ;;
                wep)
                        local wep_keyidx=0
+                       json_get_vars key
                        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"