mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ar71xx: ag71xx: keep VLAN tags if VLAN is not enabled
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30768 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -631,12 +631,16 @@ static void ar7240sw_setup_port(struct ar7240sw *as, unsigned port, u8 portmask)
|
|||||||
mode = AR7240_PORT_VLAN_MODE_PORT_ONLY;
|
mode = AR7240_PORT_VLAN_MODE_PORT_ONLY;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (as->vlan && (as->vlan_tagged & BIT(port))) {
|
if (as->vlan) {
|
||||||
|
if (as->vlan_tagged & BIT(port))
|
||||||
ctrl |= AR7240_PORT_CTRL_VLAN_MODE_ADD <<
|
ctrl |= AR7240_PORT_CTRL_VLAN_MODE_ADD <<
|
||||||
AR7240_PORT_CTRL_VLAN_MODE_S;
|
AR7240_PORT_CTRL_VLAN_MODE_S;
|
||||||
} else {
|
else
|
||||||
ctrl |= AR7240_PORT_CTRL_VLAN_MODE_STRIP <<
|
ctrl |= AR7240_PORT_CTRL_VLAN_MODE_STRIP <<
|
||||||
AR7240_PORT_CTRL_VLAN_MODE_S;
|
AR7240_PORT_CTRL_VLAN_MODE_S;
|
||||||
|
} else {
|
||||||
|
ctrl |= AR7240_PORT_CTRL_VLAN_MODE_KEEP <<
|
||||||
|
AR7240_PORT_CTRL_VLAN_MODE_S;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!portmask) {
|
if (!portmask) {
|
||||||
|
|||||||
Reference in New Issue
Block a user