Message ID | 20240125222858.640572-2-denkenz@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | ee0046efd0f36740d0330ffb0146cf4238bff3d6 |
Headers | show |
Series | [v2,1/2] ofono: Remove support for CDMA | expand |
diff --git a/plugins/ofono.c b/plugins/ofono.c index 9d0d44547a2c..65a722fd85d6 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -1969,12 +1969,11 @@ static gboolean modem_changed(DBusConnection *conn, DBusMessage *message, dbus_bool_t powered; dbus_message_iter_get_basic(&value, &powered); + modem->powered = powered; + modem->set_powered = powered; DBG("%s Powered %d", modem->path, modem->powered); - - /* Set the powered according to the value */ - modem_set_powered(modem, powered); } else if (g_str_equal(key, "Online")) { dbus_bool_t online;