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).