Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121576
b: refs/heads/master
c: 1767079
h: refs/heads/master
v: v3
  • Loading branch information
Henrique de Moraes Holschuh authored and John W. Linville committed Oct 31, 2008
1 parent 0ae31ef commit 7ece677
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d003922dab6a66027344a787e9846ecf35a706a8
refs/heads/master: 176707997bc3da2c4e32715c35cfebba0334ed68
13 changes: 11 additions & 2 deletions trunk/net/rfkill/rfkill.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,17 @@ static int rfkill_resume(struct device *dev)

dev->power.power_state.event = PM_EVENT_ON;

/* restore radio state AND notify everybody */
rfkill_toggle_radio(rfkill, rfkill->state, 1);
/*
* If we are under EPO, kick transmitter offline,
* otherwise restore to pre-suspend state.
*
* Issue a notification in any case
*/
rfkill_toggle_radio(rfkill,
rfkill_epo_lock_active ?
RFKILL_STATE_SOFT_BLOCKED :
rfkill->state,
1);

mutex_unlock(&rfkill->mutex);
}
Expand Down

0 comments on commit 7ece677

Please sign in to comment.