Re: [PATCH 8/9] rfkill: Userspace control for airplane mode
From: Julian Calaby
Date: Tue Feb 09 2016 - 17:01:37 EST
Hi All,
On Wed, Feb 10, 2016 at 8:36 AM, JoÃo Paulo Rechi Vita
<jprvita@xxxxxxxxx> wrote:
> Provide an interface for the airplane-mode indicator be controlled from
> userspace. User has to first acquire the control through
> RFKILL_OP_AIRPLANE_MODE_ACQUIRE and keep the fd open for the whole time
> it wants to be in control of the indicator. Closing the fd or using
> RFKILL_OP_AIRPLANE_MODE_RELEASE restores the default policy.
>
> To change state of the indicator, the RFKILL_OP_AIRPLANE_MODE_CHANGE
> operation is used, passing the value on "struct rfkill_event.soft". If
> the caller has not acquired the airplane-mode control beforehand, the
> operation fails.
>
> Signed-off-by: JoÃo Paulo Rechi Vita <jprvita@xxxxxxxxxxxx>
This looks sane to me.
Reviewed-by: Julian Calaby <julian.calaby@xxxxxxxxx>
Thanks,
--
Julian Calaby
Email: julian.calaby@xxxxxxxxx
Profile: http://www.google.com/profiles/julian.calaby/