summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-12-22 18:30:04 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-12-22 18:30:04 +0000
commitc3cb63661f7d5513b4ecd2594a3918f39570a1c9 (patch)
tree0af919d1776764c86c727e70ebfdc6b2942f1c5b /target/linux
parentfa9d06c7f418720bf4507b1f74de6d8d508df86b (diff)
downloadmtk-20170518-c3cb63661f7d5513b4ecd2594a3918f39570a1c9.zip
mtk-20170518-c3cb63661f7d5513b4ecd2594a3918f39570a1c9.tar.gz
mtk-20170518-c3cb63661f7d5513b4ecd2594a3918f39570a1c9.tar.bz2
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> SVN-Revision: 34862
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8216.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c
index e47a7da..8dcaf0a 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8216.c
+++ b/target/linux/generic/files/drivers/net/phy/ar8216.c
@@ -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);