rfkill: honour EPO state when resuming a rfkill controller
commit038007c7f805f10b85ed7e07634001819c898813
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 11 Nov 2008 01:52:26 +0000 (10 23:52 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 11 Nov 2008 01:52:26 +0000 (10 23:52 -0200)
tree35b2ae4fd181767c591db5f6db2780e3890aa20e
parent29b258356354c6c8cdb77f45a62081205894110f
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