Re: [PATCH BlueZ v4 1/6] adapter: Keep track of whether the adapter is rfkill'ed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux