summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-01-20 07:06:10 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-01-20 07:06:10 +0000
commitfbc389ae9d6e920561555e011a02109978d33b3a (patch)
treead90540e15d6aa02301979fe1a8321df3215b190 /target
parentba7bfddaaed9bc067199b1e3208b1c634ebc7b5f (diff)
downloadmtk-20170518-fbc389ae9d6e920561555e011a02109978d33b3a.zip
mtk-20170518-fbc389ae9d6e920561555e011a02109978d33b3a.tar.gz
mtk-20170518-fbc389ae9d6e920561555e011a02109978d33b3a.tar.bz2
rtl8366_smi: fix port->flags calculation in rtl8366_get_ports
SVN-Revision: 19237
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c b/target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c
index b9158d6..a79de4e 100644
--- a/target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c
+++ b/target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c
@@ -1498,7 +1498,8 @@ static int rtl8366_get_ports(struct switch_dev *dev,
continue;
port->id = i;
- port->flags = vlanmc.untag ? 0 : BIT(SWITCH_PORT_FLAG_TAGGED);
+ port->flags = (vlanmc.untag & BIT(i)) ?
+ 0 : BIT(SWITCH_PORT_FLAG_TAGGED);
val->len++;
port++;
}