mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-03-10 19:27:32 +01:00
fix wepkeyindex when wpa or wpa2 is activated
This commit is contained in:
parent
94e3897c54
commit
6b55d6d976
1 changed files with 7 additions and 1 deletions
|
|
@ -466,9 +466,15 @@ local wlan_num="$3"
|
|||
local val=""
|
||||
local type="xsd:unsignedInt"
|
||||
local permissions=""
|
||||
local encryption=""
|
||||
case "$action" in
|
||||
get_value)
|
||||
val=`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} -q get wireless.@wifi-iface[$num].key`
|
||||
encryption=`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} -q get wireless.@wifi-iface[$num].encryption`
|
||||
if [ "$encryption" = "wep-shared" -o "$encryption" = "wep-open" ]; then
|
||||
val=`/sbin/uci ${UCI_CONFIG_DIR:+-c $UCI_CONFIG_DIR} -q get wireless.@wifi-iface[$num].key`
|
||||
else
|
||||
val=""
|
||||
fi
|
||||
let num=$num+1
|
||||
freecwmp_output "InternetGatewayDevice.LANDevice.$lan_num.WLANConfiguration.$wlan_num.WEPKeyIndex" "$val" "$permissions" "$type"
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue