rfkill: honour EPO state when resuming a rfkill controller
commite36a83eb2ce2dc9849de1716f9876778c79328f4
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 11 Nov 2008 01:46:40 +0000 (10 23:46 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 11 Nov 2008 01:46:40 +0000 (10 23:46 -0200)
treefe4bbf6a7e3fd8dcc54e1b53d68a4f2d8ac46ca1
parent91902c1c84e8e28e67415de1cc292b7fcf6dac29
rfkill: honour EPO state when resuming a rfkill controller

rfkill_resume() would always restore the rfkill controller state to its
pre-suspend state.

Now that we know when we are under EPO, kick the rfkill controller to
SOFT_BLOCKED state instead of to its pre-suspend state when it is resumed
while EPO mode is active.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Ivo van Doorn <IvDoorn@gmail.com>
net/rfkill/rfkill.c