projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
724dd78
)
Set correct subtype for transition period
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 28 Dec 2008 06:40:50 +0000
(07:40 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 28 Dec 2008 06:40:50 +0000
(07:40 +0100)
src/device.c
patch
|
blob
|
history
diff --git
a/src/device.c
b/src/device.c
index
ec453e9
..
590b955
100644
(file)
--- a/
src/device.c
+++ b/
src/device.c
@@
-538,6
+538,15
@@
struct connman_device *connman_device_create(const char *node,
device->element.type = CONNMAN_ELEMENT_TYPE_DEVICE;
device->element.index = -1;
+ switch (type) {
+ case CONNMAN_DEVICE_TYPE_ETHERNET:
+ device->element.subtype = CONNMAN_ELEMENT_SUBTYPE_ETHERNET;
+ break;
+ default:
+ device->element.subtype = CONNMAN_ELEMENT_SUBTYPE_UNKNOWN;
+ break;
+ }
+
device->element.device = device;
device->element.destruct = device_destruct;