aboutsummaryrefslogtreecommitdiffstats
path: root/net/rfkill/rfkill.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/rfkill/rfkill.c')
-rw-r--r--net/rfkill/rfkill.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/net/rfkill/rfkill.c b/net/rfkill/rfkill.c
index e348eab756f3..c9180c8771c6 100644
--- a/net/rfkill/rfkill.c
+++ b/net/rfkill/rfkill.c
@@ -581,8 +581,17 @@ static int rfkill_resume(struct device *dev)
581 581
582 dev->power.power_state.event = PM_EVENT_ON; 582 dev->power.power_state.event = PM_EVENT_ON;
583 583
584 /* restore radio state AND notify everybody */ 584 /*
585 rfkill_toggle_radio(rfkill, rfkill->state, 1); 585 * If we are under EPO, kick transmitter offline,
586 * otherwise restore to pre-suspend state.
587 *
588 * Issue a notification in any case
589 */
590 rfkill_toggle_radio(rfkill,
591 rfkill_epo_lock_active ?
592 RFKILL_STATE_SOFT_BLOCKED :
593 rfkill->state,
594 1);
586 595
587 mutex_unlock(&rfkill->mutex); 596 mutex_unlock(&rfkill->mutex);
588 } 597 }