summaryrefslogtreecommitdiff
path: root/src/detect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/detect.c')
-rw-r--r--src/detect.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/detect.c b/src/detect.c
index f6c66a79..f2d811d4 100644
--- 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) {