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>
This commit is contained in:
@@ -228,3 +228,13 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)
|
||||
* ieee80211_reconfig(), which is also needed for hardware
|
||||
* hang/firmware failure/etc. recovery.
|
||||
*/
|
||||
|
||||
void ieee80211_report_wowlan_wakeup(struct ieee80211_vif *vif,
|
||||
struct cfg80211_wowlan_wakeup *wakeup,
|
||||
gfp_t gfp)
|
||||
{
|
||||
struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
|
||||
|
||||
cfg80211_report_wowlan_wakeup(&sdata->wdev, wakeup, gfp);
|
||||
}
|
||||
EXPORT_SYMBOL(ieee80211_report_wowlan_wakeup);
|
||||
|
Reference in New Issue
Block a user