Skip to content
Snippets Groups Projects
Commit 5c0df9d5 authored by Xiaofeng Meng's avatar Xiaofeng Meng Committed by Reidar Cederqvist
Browse files

wifi-ve-300_5_x: iface ifname incorrectly generated

parent bc03acb6
No related branches found
No related tags found
1 merge request!11wifi-ve-300_5_x: iface ifname incorrectly generated
......@@ -2,8 +2,8 @@
. /lib/functions.sh
wlan2_list="wlan2.1 wlan2.2 wlan2.3 wlan2.4"
wlan0_list="wlan0.1 wlan0.2 wlan0.3 wlan0.4"
wlan2_list="wlan2 wlan2.1 wlan2.2 wlan2.3"
wlan0_list="wlan0 wlan0.1 wlan0.2 wlan0.3"
wlan2_idlist=
wlan2_nowlist=
......@@ -33,12 +33,10 @@ _update_used_ifs() {
v=$(uci get wireless.@wifi-iface[$i].ifname)
ret="$?"
[ "$ret" = "0" ] && {
[ "$d" = "$v" ] || {
eval nowlist=\${${d}_nowlist}
nowlist="$nowlist $v"
eval ${d}_nowlist=\${nowlist}
#echo "<$d> Used VIFs: $nowlist" > /dev/console
}
eval nowlist=\${${d}_nowlist}
nowlist="$nowlist $v"
eval ${d}_nowlist=\${nowlist}
#echo "<$d> Used VIFs: $nowlist" > /dev/console
}
#i=$((i+1))
done
......@@ -184,4 +182,4 @@ network_add_vifs() {
config_load wireless
config_foreach add_to_network wifi-iface "$nets"
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment