summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-07-03 23:14:32 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-07-03 23:14:32 -0700
commit3e71ee312dbae17777ad584823c3dba2826128be (patch)
tree22127bf861510b3ff98ef31c254b39f88a2ec4d7
parentccbabc8090c918cdf562f632b85d3e0bfb199aa3 (diff)
downloadconnman-3e71ee312dbae17777ad584823c3dba2826128be.tar.gz
connman-3e71ee312dbae17777ad584823c3dba2826128be.tar.bz2
connman-3e71ee312dbae17777ad584823c3dba2826128be.zip
Add device type for Ericsson MBM hardware
-rw-r--r--include/device.h1
-rw-r--r--plugins/iospm.c1
-rw-r--r--src/device.c3
-rw-r--r--src/element.c1
-rw-r--r--src/inet.c2
-rw-r--r--src/notifier.c2
-rw-r--r--src/service.c1
7 files changed, 11 insertions, 0 deletions
diff --git a/include/device.h b/include/device.h
index b03be788..43b4a682 100644
--- a/include/device.h
+++ b/include/device.h
@@ -42,6 +42,7 @@ enum connman_device_type {
CONNMAN_DEVICE_TYPE_WIMAX = 3,
CONNMAN_DEVICE_TYPE_BLUETOOTH = 4,
CONNMAN_DEVICE_TYPE_GPS = 5,
+ CONNMAN_DEVICE_TYPE_MBM = 14,
CONNMAN_DEVICE_TYPE_HSO = 15,
CONNMAN_DEVICE_TYPE_NOZOMI = 16,
CONNMAN_DEVICE_TYPE_HUAWEI = 17,
diff --git a/plugins/iospm.c b/plugins/iospm.c
index af6250bd..e6443699 100644
--- a/plugins/iospm.c
+++ b/plugins/iospm.c
@@ -71,6 +71,7 @@ static void iospm_device_enabled(enum connman_device_type type,
case CONNMAN_DEVICE_TYPE_WIFI:
case CONNMAN_DEVICE_TYPE_WIMAX:
case CONNMAN_DEVICE_TYPE_GPS:
+ case CONNMAN_DEVICE_TYPE_MBM:
case CONNMAN_DEVICE_TYPE_HSO:
case CONNMAN_DEVICE_TYPE_NOZOMI:
case CONNMAN_DEVICE_TYPE_HUAWEI:
diff --git a/src/device.c b/src/device.c
index 82901a7c..23b4fafd 100644
--- a/src/device.c
+++ b/src/device.c
@@ -97,6 +97,7 @@ static const char *type2description(enum connman_device_type type)
return "Bluetooth";
case CONNMAN_DEVICE_TYPE_GPS:
return "GPS";
+ case CONNMAN_DEVICE_TYPE_MBM:
case CONNMAN_DEVICE_TYPE_HSO:
case CONNMAN_DEVICE_TYPE_NOZOMI:
case CONNMAN_DEVICE_TYPE_HUAWEI:
@@ -123,6 +124,7 @@ static const char *type2string(enum connman_device_type type)
return "bluetooth";
case CONNMAN_DEVICE_TYPE_GPS:
return "gps";
+ case CONNMAN_DEVICE_TYPE_MBM:
case CONNMAN_DEVICE_TYPE_HSO:
case CONNMAN_DEVICE_TYPE_HUAWEI:
case CONNMAN_DEVICE_TYPE_NOZOMI:
@@ -991,6 +993,7 @@ struct connman_device *connman_device_create(const char *node,
case CONNMAN_DEVICE_TYPE_GPS:
device->scan_interval = 0;
break;
+ case CONNMAN_DEVICE_TYPE_MBM:
case CONNMAN_DEVICE_TYPE_HSO:
case CONNMAN_DEVICE_TYPE_NOZOMI:
case CONNMAN_DEVICE_TYPE_HUAWEI:
diff --git a/src/element.c b/src/element.c
index dca26eaf..6ecd595a 100644
--- a/src/element.c
+++ b/src/element.c
@@ -274,6 +274,7 @@ struct connman_service *__connman_element_get_service(struct connman_element *el
case CONNMAN_DEVICE_TYPE_VENDOR:
case CONNMAN_DEVICE_TYPE_BLUETOOTH:
case CONNMAN_DEVICE_TYPE_GPS:
+ case CONNMAN_DEVICE_TYPE_MBM:
case CONNMAN_DEVICE_TYPE_HSO:
case CONNMAN_DEVICE_TYPE_NOZOMI:
case CONNMAN_DEVICE_TYPE_HUAWEI:
diff --git a/src/inet.c b/src/inet.c
index c3ccef88..680c095b 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -358,6 +358,7 @@ struct connman_device *connman_inet_create_device(int index)
break;
case CONNMAN_DEVICE_TYPE_BLUETOOTH:
case CONNMAN_DEVICE_TYPE_GPS:
+ case CONNMAN_DEVICE_TYPE_MBM:
case CONNMAN_DEVICE_TYPE_HSO:
case CONNMAN_DEVICE_TYPE_NOZOMI:
case CONNMAN_DEVICE_TYPE_HUAWEI:
@@ -397,6 +398,7 @@ struct connman_device *connman_inet_create_device(int index)
case CONNMAN_DEVICE_TYPE_BLUETOOTH:
mode = CONNMAN_DEVICE_MODE_NETWORK_MULTIPLE;
break;
+ case CONNMAN_DEVICE_TYPE_MBM:
case CONNMAN_DEVICE_TYPE_HSO:
mode = CONNMAN_DEVICE_MODE_NETWORK_SINGLE;
break;
diff --git a/src/notifier.c b/src/notifier.c
index 9092b24d..023b1eb4 100644
--- a/src/notifier.c
+++ b/src/notifier.c
@@ -88,6 +88,7 @@ void __connman_notifier_device_type_increase(enum connman_device_type type)
switch (type) {
case CONNMAN_DEVICE_TYPE_UNKNOWN:
+ case CONNMAN_DEVICE_TYPE_MBM:
case CONNMAN_DEVICE_TYPE_HSO:
case CONNMAN_DEVICE_TYPE_NOZOMI:
case CONNMAN_DEVICE_TYPE_HUAWEI:
@@ -111,6 +112,7 @@ void __connman_notifier_device_type_decrease(enum connman_device_type type)
switch (type) {
case CONNMAN_DEVICE_TYPE_UNKNOWN:
+ case CONNMAN_DEVICE_TYPE_MBM:
case CONNMAN_DEVICE_TYPE_HSO:
case CONNMAN_DEVICE_TYPE_NOZOMI:
case CONNMAN_DEVICE_TYPE_HUAWEI:
diff --git a/src/service.c b/src/service.c
index bc25d8f7..1e06074d 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1089,6 +1089,7 @@ static enum connman_service_type convert_device_type(struct connman_device *devi
case CONNMAN_DEVICE_TYPE_WIMAX:
case CONNMAN_DEVICE_TYPE_BLUETOOTH:
case CONNMAN_DEVICE_TYPE_GPS:
+ case CONNMAN_DEVICE_TYPE_MBM:
case CONNMAN_DEVICE_TYPE_HSO:
case CONNMAN_DEVICE_TYPE_NOZOMI:
case CONNMAN_DEVICE_TYPE_HUAWEI: