mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 22:24:39 +02:00
generic: ar8216: don't use 0 as default VID on AR8327
VID0 is reserved for priority-tagged packets. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34862 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b84d44e379
commit
7eb00109f8
@ -1125,7 +1125,9 @@ ar8327_init_port(struct ar8216_priv *priv, int port)
|
|||||||
|
|
||||||
priv->write(priv, AR8327_REG_PORT_HEADER(port), 0);
|
priv->write(priv, AR8327_REG_PORT_HEADER(port), 0);
|
||||||
|
|
||||||
priv->write(priv, AR8327_REG_PORT_VLAN0(port), 0);
|
t = 1 << AR8327_PORT_VLAN0_DEF_SVID_S;
|
||||||
|
t |= 1 << AR8327_PORT_VLAN0_DEF_CVID_S;
|
||||||
|
priv->write(priv, AR8327_REG_PORT_VLAN0(port), t);
|
||||||
|
|
||||||
t = AR8327_PORT_VLAN1_OUT_MODE_UNTOUCH << AR8327_PORT_VLAN1_OUT_MODE_S;
|
t = AR8327_PORT_VLAN1_OUT_MODE_UNTOUCH << AR8327_PORT_VLAN1_OUT_MODE_S;
|
||||||
priv->write(priv, AR8327_REG_PORT_VLAN1(port), t);
|
priv->write(priv, AR8327_REG_PORT_VLAN1(port), t);
|
||||||
|
Loading…
Reference in New Issue
Block a user