From fbc389ae9d6e920561555e011a02109978d33b3a Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Wed, 20 Jan 2010 07:06:10 +0000 Subject: [PATCH] rtl8366_smi: fix port->flags calculation in rtl8366_get_ports SVN-Revision: 19237 --- target/linux/ar71xx/files/drivers/net/phy/rtl8366_smi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++; } -- 2.30.2