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

ofono: Read Firmware version (Revision) for Device Management

parent f835356e
...@@ -61,6 +61,7 @@ struct modem_data { ...@@ -61,6 +61,7 @@ struct modem_data {
char *context_proxy; char *context_proxy;
char *imei; char *imei;
char *imei_sv; char *imei_sv;
char *fw_version;
}; };
static GHashTable *modem_list; static GHashTable *modem_list;
...@@ -165,6 +166,7 @@ static void remove_modem(gpointer data) ...@@ -165,6 +166,7 @@ static void remove_modem(gpointer data)
g_free(modem->imei); g_free(modem->imei);
g_free(modem->imei_sv); g_free(modem->imei_sv);
g_free(modem->fw_version);
g_free(modem->path); g_free(modem->path);
g_free(modem); g_free(modem);
...@@ -1085,6 +1087,13 @@ static gboolean modem_changed(DBusConnection *connection, ...@@ -1085,6 +1087,13 @@ static gboolean modem_changed(DBusConnection *connection,
DBG("IMEI_SV: %s", modem->imei_sv); DBG("IMEI_SV: %s", modem->imei_sv);
} }
if (g_str_equal(key, "Revision")) {
char *serial;
dbus_message_iter_get_basic(&value, &serial);
modem->fw_version = g_strdup(serial);
DBG("FW_version: %s", modem->fw_version);
}
return TRUE; 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