From e2490bbf513fe5e25bfda306c6450b36cbd56bcf Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Thu, 9 Sep 2010 19:45:15 +0200 Subject: [PATCH] Power the ConnectionManager interface up when it shows up --- plugins/ofono.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/ofono.c b/plugins/ofono.c index 474e05a..162e11c 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -942,6 +942,15 @@ static void get_imsi(const char *path) DBUS_TYPE_INVALID); } +static int gprs_change_powered(const char *path, dbus_bool_t powered) +{ + DBG("path %s powered %d", path, powered); + + return set_property(path, OFONO_GPRS_INTERFACE, "Powered", + DBUS_TYPE_BOOLEAN, &powered, + NULL, NULL, NULL); +} + static int modem_change_powered(const char *path, dbus_bool_t powered) { DBG("path %s powered %d", path, powered); @@ -1302,7 +1311,7 @@ static gboolean modem_changed(DBusConnection *connection, DBusMessage *message, if (added_reg) check_registration(modem); if (added_gprs) - check_registration(modem); + gprs_change_powered(modem->path, TRUE); } } -- 2.7.4