projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rtl8366_smi: fix port->flags calculation in rtl8366_get_ports
[openwrt.git]
/
target
/
linux
/
ar71xx
/
files
/
drivers
/
net
/
phy
/
rtl8366_smi.c
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
(file)
--- 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++;
}
This page took
0.029893 seconds
and
4
git commands to generate.