Commit c8cf62dd authored by Ankit Navik's avatar Ankit Navik Committed by Denis Kenzior

ofono: Read IMEI for Device Management

parent c259df5c
......@@ -59,6 +59,7 @@ struct modem_data {
dbus_bool_t context_active;
char *context_interface;
char *context_proxy;
char *imei;
};
static GHashTable *modem_list;
......@@ -161,6 +162,8 @@ static void remove_modem(gpointer data)
g_free(modem->sim_identity);
g_free(modem->imei);
g_free(modem->path);
g_free(modem);
}
......@@ -1066,6 +1069,13 @@ static gboolean modem_changed(DBusConnection *connection,
if (g_str_equal(key, "Interfaces") == TRUE)
check_interfaces(modem, &value);
if (g_str_equal(key, "Serial")) {
char *serial;
dbus_message_iter_get_basic(&value, &serial);
modem->imei = g_strdup(serial);
DBG("IMEI: %s", modem->imei);
}
return TRUE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment