diff options
author | Bob Copeland <me@bobcopeland.com> | 2009-01-19 11:20:53 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:00:52 -0500 |
commit | 665af4fc8979734d8f73c9a6732be07e545ce4cc (patch) | |
tree | e6efab304166f0f4f30b75906930def19b1a3fb8 /net/mac80211/ieee80211_i.h | |
parent | 0378b3f1c49d48ed524eabda7e4340163d9483c9 (diff) |
mac80211: add suspend/resume callbacks
This patch introduces suspend and resume callbacks to mac80211,
allowing mac80211 to quiesce its state (bringing down interfaces,
removing keys, etc) in preparation for suspend. cfg80211 will call
the suspend hook before the device suspend, and resume hook after
the device resume.
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 5eafd3affe27..faa2476a2451 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -1006,6 +1006,10 @@ void ieee80211_handle_pwr_constr(struct ieee80211_sub_if_data *sdata, | |||
1006 | u16 capab_info, u8 *pwr_constr_elem, | 1006 | u16 capab_info, u8 *pwr_constr_elem, |
1007 | u8 pwr_constr_elem_len); | 1007 | u8 pwr_constr_elem_len); |
1008 | 1008 | ||
1009 | /* Suspend/resume */ | ||
1010 | int __ieee80211_suspend(struct ieee80211_hw *hw); | ||
1011 | int __ieee80211_resume(struct ieee80211_hw *hw); | ||
1012 | |||
1009 | /* utility functions/constants */ | 1013 | /* utility functions/constants */ |
1010 | extern void *mac80211_wiphy_privid; /* for wiphy privid */ | 1014 | extern void *mac80211_wiphy_privid; /* for wiphy privid */ |
1011 | extern const unsigned char rfc1042_header[6]; | 1015 | extern const unsigned char rfc1042_header[6]; |