CONNMAN_ELEMENT_SUBTYPE_ETHERNET = 3,
CONNMAN_ELEMENT_SUBTYPE_WIFI = 4,
CONNMAN_ELEMENT_SUBTYPE_WIMAX = 5,
- CONNMAN_ELEMENT_SUBTYPE_MODEM = 6,
+ CONNMAN_ELEMENT_SUBTYPE_CELLULAR = 6,
CONNMAN_ELEMENT_SUBTYPE_BLUETOOTH = 7,
};
return "wifi";
case CONNMAN_ELEMENT_SUBTYPE_WIMAX:
return "wimax";
- case CONNMAN_ELEMENT_SUBTYPE_MODEM:
- return "modem";
+ case CONNMAN_ELEMENT_SUBTYPE_CELLULAR:
+ return "cellular";
case CONNMAN_ELEMENT_SUBTYPE_BLUETOOTH:
return "bluetooth";
}
network->element.type = CONNMAN_ELEMENT_TYPE_NETWORK;
network->element.index = -1;
+ switch (type) {
+ case CONNMAN_NETWORK_TYPE_BLUETOOTH_PAN:
+ case CONNMAN_NETWORK_TYPE_BLUETOOTH_DUN:
+ network->element.subtype = CONNMAN_ELEMENT_SUBTYPE_BLUETOOTH;
+ break;
+ case CONNMAN_NETWORK_TYPE_HSO:
+ network->element.subtype = CONNMAN_ELEMENT_SUBTYPE_CELLULAR;
+ break;
+ default:
+ network->element.subtype = CONNMAN_ELEMENT_SUBTYPE_UNKNOWN;
+ break;
+ }
+
network->element.network = network;
network->element.destruct = network_destruct;