rfkill: honour EPO state when resuming a rfkill controller
commit97ecca3f8a629fbb672ab603598fb595821cb6c0
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 24 Mar 2009 06:54:48 +0000 (24 03:54 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 24 Mar 2009 06:54:48 +0000 (24 03:54 -0300)
tree138d7be9bb18f1dc1a3a42c0da012d5fbd9a0da0
parent19a96e15d542fb11c5a52ad8060a757e56035e90
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