Signed-off-by: Catalin Patulea <cat@vv.carleton.ca>
SVN-Revision: 39156
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
}
;;
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