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-a3cf2f4a3e73master
parent
e6a85bcd9a
commit
2fcc4f3477
|
@ -18,12 +18,12 @@ hostapd_append_wep_key() {
|
||||||
zidx=$(($idx - 1))
|
zidx=$(($idx - 1))
|
||||||
json_get_var ckey "key${idx}"
|
json_get_var ckey "key${idx}"
|
||||||
[ -n "$ckey" ] && \
|
[ -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
|
done
|
||||||
wep_keyidx=$((key - 1))
|
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
|
esac
|
||||||
}
|
}
|
||||||
|
@ -233,8 +233,8 @@ hostapd_set_bss_options() {
|
||||||
;;
|
;;
|
||||||
wep)
|
wep)
|
||||||
local wep_keyidx=0
|
local wep_keyidx=0
|
||||||
hostapd_append_wep_key network_data
|
hostapd_append_wep_key bss_conf
|
||||||
append bss_conf "wep_default_key=$wep_key" "$N"
|
append bss_conf "wep_default_key=$wep_keyidx" "$N"
|
||||||
[ -n "$wep_rekey" ] && append bss_conf "wep_rekey_period=$wep_rekey" "$N"
|
[ -n "$wep_rekey" ] && append bss_conf "wep_rekey_period=$wep_rekey" "$N"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue