diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-12-20 18:39:15 +0100 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-12-22 11:10:15 +0100 |
commit | 0488e7e72ca018e1de47ac727fff4d5dafd3e5b5 (patch) | |
tree | 0aa6328de6204c3fce9964a9644fbd1cd188c445 /plugins/ofono.c | |
parent | 9b2e26a83210c2e29b65338dbc5fa491d6b7ba20 (diff) | |
download | connman-0488e7e72ca018e1de47ac727fff4d5dafd3e5b5.tar.gz connman-0488e7e72ca018e1de47ac727fff4d5dafd3e5b5.tar.bz2 connman-0488e7e72ca018e1de47ac727fff4d5dafd3e5b5.zip |
ofono: Ignore non-related interface updates
Only trigger update code if there was a change in
the interface we are interested in.
Diffstat (limited to 'plugins/ofono.c')
-rw-r--r-- | plugins/ofono.c | 9 |
1 files changed, 8 insertions, 1 deletions
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); |