Commit f835356e authored by Ankit Navik's avatar Ankit Navik Committed by Denis Kenzior
Browse files

ofono: Read IMEI SV for Device Management

parent c8cf62dd
......@@ -60,6 +60,7 @@ struct modem_data {
char *context_interface;
char *context_proxy;
char *imei;
char *imei_sv;
};
static GHashTable *modem_list;
......@@ -163,6 +164,7 @@ static void remove_modem(gpointer data)
g_free(modem->sim_identity);
g_free(modem->imei);
g_free(modem->imei_sv);
g_free(modem->path);
g_free(modem);
......@@ -1076,6 +1078,13 @@ static gboolean modem_changed(DBusConnection *connection,
DBG("IMEI: %s", modem->imei);
}
if (g_str_equal(key, "SoftwareVersionNumber")) {
char *serial;
dbus_message_iter_get_basic(&value, &serial);
modem->imei_sv = g_strdup(serial);
DBG("IMEI_SV: %s", modem->imei_sv);
}
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