From: Samuel Ortiz Date: Thu, 9 Sep 2010 17:45:15 +0000 (+0200) Subject: Power the ConnectionManager interface up when it shows up X-Git-Tag: 0.61~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2490bbf513fe5e25bfda306c6450b36cbd56bcf;p=platform%2Fupstream%2Fconnman.git Power the ConnectionManager interface up when it shows up --- 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); } }