mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00: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
40c3a23321
commit
cd8ad1441e
@ -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_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;
|
||||
priv->write(priv, AR8327_REG_PORT_VLAN1(port), t);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user