aboutsummaryrefslogtreecommitdiffstats
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
commit56ebadac0cd31270270eb5f637f98ae5e1b08d40 (patch)
treed48cf1d6a123f2887511c7f82251f245d97cf7f9
parent7b22da898b5f621e72e0b8cb66e9b609707c2478 (diff)
downloadupstream-56ebadac0cd31270270eb5f637f98ae5e1b08d40.tar.gz
upstream-56ebadac0cd31270270eb5f637f98ae5e1b08d40.tar.bz2
upstream-56ebadac0cd31270270eb5f637f98ae5e1b08d40.zip
rtl8366_smi: fix port->flags calculation in rtl8366_get_ports
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19237 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 b9158d6e3e..a79de4e6bc 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++;
}