From 0488e7e72ca018e1de47ac727fff4d5dafd3e5b5 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Tue, 20 Dec 2011 18:39:15 +0100 Subject: ofono: Ignore non-related interface updates Only trigger update code if there was a change in the interface we are interested in. --- plugins/ofono.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'plugins/ofono.c') diff --git a/plugins/ofono.c b/plugins/ofono.c index 68fbaeb0..4d5c7ab9 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -1891,7 +1891,14 @@ static gboolean modem_changed(DBusConnection *connection, DBusMessage *message, connection_manager_init(modem); } else if (g_str_equal(key, "Interfaces") == TRUE) { - modem->interfaces = extract_interfaces(&value); + uint8_t interfaces; + + interfaces = extract_interfaces(&value); + + if (interfaces == modem->interfaces) + return TRUE; + + modem->interfaces = interfaces; DBG("%s Interfaces 0x%02x", modem->path, modem->interfaces); -- cgit v1.2.3