char *apn;
char *username;
char *password;
+ char *mcc;
+ char *mnc;
connman_bool_t roaming;
struct connman_ipconfig *ipconfig;
struct connman_device *device;
connman_dbus_dict_append_variant(&dict, "Roaming",
DBUS_TYPE_BOOLEAN, &service->roaming);
+ if (service->mcc != NULL && service->mnc != NULL) {
+ connman_dbus_dict_append_variant(&dict, "MCC",
+ DBUS_TYPE_STRING, &service->mcc);
+ connman_dbus_dict_append_variant(&dict, "MNC",
+ DBUS_TYPE_STRING, &service->mnc);
+ }
+
if (service->apn != NULL) {
connman_dbus_dict_append_variant(&dict, "APN",
DBUS_TYPE_STRING, &service->apn);
service->ipconfig = NULL;
}
+ g_free(service->mcc);
+ g_free(service->mnc);
g_free(service->apn);
g_free(service->username);
- g_free(service->passphrase);
+ g_free(service->password);
g_free(service->profile);
g_free(service->name);
g_free(service->passphrase);
str = connman_network_get_string(network, "WiFi.Security");
service->security = convert_wifi_security(str);
+ str = connman_network_get_string(network, "Cellular.MCC");
+ g_free(service->mcc);
+ service->mcc = g_strdup(str);
+
+ str = connman_network_get_string(network, "Cellular.MNC");
+ g_free(service->mnc);
+ service->mnc = g_strdup(str);
+
if (service->strength > strength && service->network != NULL) {
connman_network_unref(service->network);
service->network = connman_network_ref(network);