Developing lightweight computation at the DSG edge

Commit d55b0c61 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[qmp-system] Fix #377 (2): use "@" for referencing 802.11 interfaces VLANs are

created on and use the $viface identifier instead of the interface name itself.
parent 2df4490f
......@@ -58,7 +58,13 @@ qmp_set_vlan() {
uci set network.${viface}_${vid}.type=8021q
uci set network.${viface}_${vid}.name=${viface}_${vid}
uci set network.${viface}_${vid}.ifname=$3
if [ -e "/sys/class/net/$dev/phy80211" ]; then
# 802.1Q VLANs for wireless interfaces
uci set network.${viface}_${vid}.ifname='@'${viface}
# [QinQ backport] 802.1q VLANs for wired interfaces
uci set network.${viface}_${vid}.ifname=$3
uci set network.${viface}_${vid}.vid=${vid}
uci set network.${viface}_${vid}_ad=interface
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment