projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bb2816
)
Fix wrong subtype assignment within network devices
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 14 Dec 2008 23:55:10 +0000
(
00:55
+0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 14 Dec 2008 23:55:10 +0000
(
00:55
+0100)
plugins/netdev.c
patch
|
blob
|
history
diff --git
a/plugins/netdev.c
b/plugins/netdev.c
index
226d633
..
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;
+ if (parent->parent)
+ element->subtype = parent->parent->subtype;
+ else
+ element->subtype = CONNMAN_ELEMENT_SUBTYPE_UNKNOWN;
+
connman_element_register(element, parent);
}