rtl8366_smi: fix port->flags calculation in rtl8366_get_ports
SVN-Revision: 19237
This commit is contained in:
parent
ba7bfddaae
commit
fbc389ae9d
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue