summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Basehore <dbasehore@chromium.org>2015-11-04 17:37:52 -0800
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2015-12-01 21:17:57 +0200
commit06ae2ad413d20a1212bd7d32a49bd8b868a8629a (patch)
tree6b8d1bb1a5eb1ebc917ffba47bef6d9e38fa5ba2
parent7281b16423cd9b8795ea319c65140f38fd8187a2 (diff)
downloadop-kernel-dev-06ae2ad413d20a1212bd7d32a49bd8b868a8629a.zip
op-kernel-dev-06ae2ad413d20a1212bd7d32a49bd8b868a8629a.tar.gz
iwlwifi: mvm: report wakeup for wowlan
When the wifi wakes up the system, we need to report it via calling pm_wakeup_event for lucid sleep. This is so userspace knowns that the wifi woke up the system via the /sys/power/wakeup_type sysfs interface. Signed-off-by: Derek Basehore <dbasehore@chromium.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/d3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/d3.c b/drivers/net/wireless/intel/iwlwifi/mvm/d3.c
index 478cf82..9e51843 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/d3.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/d3.c
@@ -1236,6 +1236,8 @@ static void iwl_mvm_report_wakeup_reasons(struct iwl_mvm *mvm,
goto report;
}
+ pm_wakeup_event(mvm->dev, 0);
+
if (reasons & IWL_WOWLAN_WAKEUP_BY_MAGIC_PACKET)
wakeup.magic_pkt = true;
OpenPOWER on IntegriCloud