Add network to service type conversion for Bluetooth
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 6 Aug 2009 06:01:15 +0000 (23:01 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 6 Aug 2009 06:01:15 +0000 (23:01 -0700)
src/service.c

index 1d52afe..587fe45 100644 (file)
@@ -1697,16 +1697,17 @@ static enum connman_service_type convert_network_type(struct connman_network *ne
        switch (type) {
        case CONNMAN_NETWORK_TYPE_UNKNOWN:
        case CONNMAN_NETWORK_TYPE_VENDOR:
-       case CONNMAN_NETWORK_TYPE_BLUETOOTH_PAN:
-       case CONNMAN_NETWORK_TYPE_BLUETOOTH_DUN:
                break;
-       case CONNMAN_NETWORK_TYPE_MBM:
-       case CONNMAN_NETWORK_TYPE_HSO:
-               return CONNMAN_SERVICE_TYPE_CELLULAR;
        case CONNMAN_NETWORK_TYPE_WIFI:
                return CONNMAN_SERVICE_TYPE_WIFI;
        case CONNMAN_NETWORK_TYPE_WIMAX:
                return CONNMAN_SERVICE_TYPE_WIMAX;
+       case CONNMAN_NETWORK_TYPE_BLUETOOTH_PAN:
+       case CONNMAN_NETWORK_TYPE_BLUETOOTH_DUN:
+               return CONNMAN_SERVICE_TYPE_BLUETOOTH;
+       case CONNMAN_NETWORK_TYPE_MBM:
+       case CONNMAN_NETWORK_TYPE_HSO:
+               return CONNMAN_SERVICE_TYPE_CELLULAR;
        }
 
        return CONNMAN_SERVICE_TYPE_UNKNOWN;