projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ar71xx: don't use vlan 0 for devices with rtl8366s switch
[openwrt.git]
/
package
/
swconfig
/
src
/
swlib.c
diff --git
a/package/swconfig/src/swlib.c
b/package/swconfig/src/swlib.c
index
8a9fd7a
..
59456a3
100644
(file)
--- a/
package/swconfig/src/swlib.c
+++ b/
package/swconfig/src/swlib.c
@@
-586,6
+586,8
@@
add_switch(struct nl_msg *msg, void *arg)
dev->ports = nla_get_u32(tb[SWITCH_ATTR_PORTS]);
if (tb[SWITCH_ATTR_VLANS])
dev->vlans = nla_get_u32(tb[SWITCH_ATTR_VLANS]);
+ if (tb[SWITCH_ATTR_CPU_PORT])
+ dev->cpu_port = nla_get_u32(tb[SWITCH_ATTR_CPU_PORT]);
if (!sa->head) {
sa->head = dev;
This page took
0.035905 seconds
and
4
git commands to generate.