mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
parent
7b22da898b
commit
56ebadac0c
@ -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++;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user