Re: [PATCH BlueZ v6 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 Thu, 2022-09-01 at 12:43 +0200, Bastien Nocera wrote:
> diff --git a/src/rfkill.c b/src/rfkill.c
> index 2099c5ac5..511e351b8 100644
> --- a/src/rfkill.c
> +++ b/src/rfkill.c
> @@ -55,12 +55,73 @@ struct rfkill_event {
>  };
>  #define RFKILL_EVENT_SIZE_V1    8
>  
> +int rfkill_get_blocked(uint16_t index)
> +{
> +       struct rfkill_event event = { 0 };
> +       int fd;
> +       ssize_t len;
> +       int blocked = -1;

I simplified this code in v7 (as well as fixing indentation problems).



[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