projects
/
connman
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix wrong subtype assignment within network devices
[connman]
/
plugins
/
netdev.c
diff --git
a/plugins/netdev.c
b/plugins/netdev.c
index
d8733b7
..
3e08534
100644
(file)
--- a/
plugins/netdev.c
+++ b/
plugins/netdev.c
@@
-41,6
+41,11
@@
static void create_element(struct connman_element *parent,
element->type = type;
element->index = parent->index;
element->type = type;
element->index = parent->index;
+ if (parent->parent)
+ element->subtype = parent->parent->subtype;
+ else
+ element->subtype = CONNMAN_ELEMENT_SUBTYPE_UNKNOWN;
+
connman_element_register(element, parent);
}
connman_element_register(element, parent);
}
@@
-77,5
+82,5
@@
static void netdev_exit(void)
connman_driver_unregister(&netdev_driver);
}
connman_driver_unregister(&netdev_driver);
}
-CONNMAN_PLUGIN_DEFINE("netdev", "Network device plugin", VERSION,
+CONNMAN_PLUGIN_DEFINE(netdev, "Network device plugin", VERSION,
netdev_init, netdev_exit)
netdev_init, netdev_exit)