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:
7e090d4
)
Use interface name as device name for HSO devices
author
Marcel Holtmann
<marcel@holtmann.org>
Sat, 27 Dec 2008 08:03:59 +0000
(09:03 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sat, 27 Dec 2008 08:03:59 +0000
(09:03 +0100)
src/detect.c
patch
|
blob
|
history
diff --git
a/src/detect.c
b/src/detect.c
index
f6c66a7
..
f2d811d
100644
(file)
--- a/
src/detect.c
+++ b/
src/detect.c
@@
-181,7
+181,14
@@
static void detect_newlink(unsigned short type, int index,
return;
}
- name = index2ident(index, "dev_");
+ switch (devtype) {
+ case CONNMAN_DEVICE_TYPE_HSO:
+ name = strdup(devname);
+ break;
+ default:
+ name = index2ident(index, "dev_");
+ break;
+ }
device = connman_device_create(name, devtype);
if (device == NULL) {