Re: [RFC] rfkill: rewrite

Inaky Perez-Gonzalez
2009-03-30T17:40:07Z

On Monday 30 March 2009, Johannes Berg wrote:
>
> * wimax
> -> need help, seems to report rfkill states to input device?
> don't understand

Not really.

What it does is if the device exposes a hw rfkill key, export that
key as an input device, as well as using it to report the state
change.

So there are three main entry points:

wimax_report_rfkill_hw() -- device driver report to stack

device reports a change in the hw rfkill key; switch the radio to
whichever state AND report a key event through the input layer

wimax_report_rfkill_sw() -- device driver report to stack

device reports a change in the sw rfkill state; this is needed for
cases where the radio is shared amongst different technologies (wifi
and wimax, for example, in the case of the 5150). When you turn on
Wifi, WiMAX switches off (and vice versa).

As well, if from SW you flip it off, this gets called back but does
nothing as the state is updated already.

wimax_rfkill / wimax_rfkill_toggle_radio -- user interface

The user wants to flip the SW switch on/off

--
Inaky