--- include/device.h | 3 ++- src/device.c | 4 ++++ src/element.c | 1 + src/inet.c | 2 ++ src/udev.c | 1 + 5 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/include/device.h b/include/device.h index f1c12b1..726eab3 100644 --- a/include/device.h +++ b/include/device.h @@ -41,7 +41,8 @@ enum connman_device_type { CONNMAN_DEVICE_TYPE_WIFI = 2, CONNMAN_DEVICE_TYPE_WIMAX = 3, CONNMAN_DEVICE_TYPE_BLUETOOTH = 4, - CONNMAN_DEVICE_TYPE_GPS = 5, + CONNMAN_DEVICE_TYPE_CELLULAR = 5, + CONNMAN_DEVICE_TYPE_GPS = 6, CONNMAN_DEVICE_TYPE_MBM = 14, CONNMAN_DEVICE_TYPE_HSO = 15, CONNMAN_DEVICE_TYPE_NOZOMI = 16, diff --git a/src/device.c b/src/device.c index b32bdc8..b58e8ad 100644 --- a/src/device.c +++ b/src/device.c @@ -132,6 +132,7 @@ static const char *type2description(enum connman_device_type type) case CONNMAN_DEVICE_TYPE_GPS: return "GPS"; case CONNMAN_DEVICE_TYPE_MBM: + case CONNMAN_DEVICE_TYPE_CELLULAR: case CONNMAN_DEVICE_TYPE_HSO: case CONNMAN_DEVICE_TYPE_NOZOMI: case CONNMAN_DEVICE_TYPE_HUAWEI: @@ -159,6 +160,7 @@ static const char *type2string(enum connman_device_type type) case CONNMAN_DEVICE_TYPE_GPS: return "gps"; case CONNMAN_DEVICE_TYPE_MBM: + case CONNMAN_DEVICE_TYPE_CELLULAR: case CONNMAN_DEVICE_TYPE_HSO: case CONNMAN_DEVICE_TYPE_HUAWEI: case CONNMAN_DEVICE_TYPE_NOZOMI: @@ -190,6 +192,7 @@ enum connman_service_type __connman_device_get_service_type(struct connman_devic case CONNMAN_DEVICE_TYPE_BLUETOOTH: return CONNMAN_SERVICE_TYPE_BLUETOOTH; case CONNMAN_DEVICE_TYPE_MBM: + case CONNMAN_DEVICE_TYPE_CELLULAR: case CONNMAN_DEVICE_TYPE_HSO: return CONNMAN_SERVICE_TYPE_CELLULAR; } @@ -957,6 +960,7 @@ struct connman_device *connman_device_create(const char *node, device->scan_interval = 0; break; case CONNMAN_DEVICE_TYPE_MBM: + case CONNMAN_DEVICE_TYPE_CELLULAR: 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 c5bac17..1a147f7 100644 --- a/src/element.c +++ b/src/element.c @@ -285,6 +285,7 @@ struct connman_service *__connman_element_get_service(struct connman_element *el case CONNMAN_DEVICE_TYPE_WIMAX: case CONNMAN_DEVICE_TYPE_BLUETOOTH: case CONNMAN_DEVICE_TYPE_MBM: + case CONNMAN_DEVICE_TYPE_CELLULAR: case CONNMAN_DEVICE_TYPE_HSO: network = __connman_element_get_network(element); if (network == NULL) diff --git a/src/inet.c b/src/inet.c index ac68698..fa47735 100644 --- a/src/inet.c +++ b/src/inet.c @@ -469,6 +469,7 @@ struct connman_device *connman_inet_create_device(int index) case CONNMAN_DEVICE_TYPE_HUAWEI: case CONNMAN_DEVICE_TYPE_NOVATEL: case CONNMAN_DEVICE_TYPE_VENDOR: + case CONNMAN_DEVICE_TYPE_CELLULAR: name = strdup(devname); break; case CONNMAN_DEVICE_TYPE_MBM: @@ -501,6 +502,7 @@ struct connman_device *connman_inet_create_device(int index) ident = index2ident(index, NULL); break; case CONNMAN_DEVICE_TYPE_BLUETOOTH: + case CONNMAN_DEVICE_TYPE_CELLULAR: mode = CONNMAN_DEVICE_MODE_NETWORK_MULTIPLE; break; case CONNMAN_DEVICE_TYPE_MBM: diff --git a/src/udev.c b/src/udev.c index 1a3f8db..23114b5 100644 --- a/src/udev.c +++ b/src/udev.c @@ -112,6 +112,7 @@ static void add_net_device(struct udev_device *udev_device) case CONNMAN_DEVICE_TYPE_NOZOMI: case CONNMAN_DEVICE_TYPE_HUAWEI: case CONNMAN_DEVICE_TYPE_NOVATEL: + case CONNMAN_DEVICE_TYPE_CELLULAR: return; case CONNMAN_DEVICE_TYPE_ETHERNET: case CONNMAN_DEVICE_TYPE_WIFI: -- 1.6.1.3 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman