On Wed, 2022-08-31 at 11:19 +0200, Bastien Nocera wrote: > @@ -7548,6 +7553,12 @@ int btd_cancel_authorization(guint id) > > int btd_adapter_restore_powered(struct btd_adapter *adapter) > { > + if (adapter->blocked) { > + adapter->blocked = false; > + g_dbus_emit_property_changed(dbus_conn, adapter->path, > + ADAPTER_INTERFACE, "PowerState"); This should have been in the next patch. > + } > + > if (btd_adapter_get_powered(adapter)) > return 0; > > @@ -7556,6 +7567,16 @@ int btd_adapter_restore_powered(struct btd_adapter *adapter) > return 0; > } > > +int btd_adapter_set_blocked(struct btd_adapter *adapter) > +{ > + if (!adapter->blocked) { > + adapter->blocked = true; > + g_dbus_emit_property_changed(dbus_conn, adapter->path, > + ADAPTER_INTERFACE, "PowerState"); Ditto.