rfkill: honour EPO state when resuming a rfkill controller
commit1b8f9d92b9d38827eb40f47060cc6e14e5a445c5
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 19 Oct 2008 21:02:53 +0000 (19 19:02 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 19 Oct 2008 21:02:53 +0000 (19 19:02 -0200)
tree37dae371b2eb887d72d18388a217d3d7db4c0f96
parent77352c93317f9f904763bfe3d2387f45cab2344a
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