aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/pm.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-01-22 06:34:29 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-01-31 08:00:21 -0500
commitcd8f7cb4e6dfa4ea08fc250a814240b883ef7911 (patch)
tree2bcb8f04f01ee9768e5524799b0d429e51fb583d /net/mac80211/pm.c
parent3b144658bc7be5f7fa68d13ba24afb4c24489965 (diff)
cfg80211/mac80211: support reporting wakeup reason
When waking up from WoWLAN, it is useful to know what triggered the wakeup. Support reporting the wakeup reason(s) in cfg80211 (and a pass-through in mac80211) to allow userspace to know. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/pm.c')
-rw-r--r--net/mac80211/pm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c
index e45b83610e85..53801d20176d 100644
--- a/net/mac80211/pm.c
+++ b/net/mac80211/pm.c
@@ -228,3 +228,13 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)
228 * ieee80211_reconfig(), which is also needed for hardware 228 * ieee80211_reconfig(), which is also needed for hardware
229 * hang/firmware failure/etc. recovery. 229 * hang/firmware failure/etc. recovery.
230 */ 230 */
231
232void ieee80211_report_wowlan_wakeup(struct ieee80211_vif *vif,
233 struct cfg80211_wowlan_wakeup *wakeup,
234 gfp_t gfp)
235{
236 struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
237
238 cfg80211_report_wowlan_wakeup(&sdata->wdev, wakeup, gfp);
239}
240EXPORT_SYMBOL(ieee80211_report_wowlan_wakeup);