aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-03-13 06:44:18 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-03-27 20:13:03 -0400
commit827b1fb44b7e41377a5498b9d070a11dfae2c283 (patch)
tree5a54acadb35e35d64e4db0cfde5a7105c85916e2 /net/mac80211/ieee80211_i.h
parent3e3ccb3d9b8d5a1b65b34e1be2decf213ba3bebb (diff)
mac80211: resume properly, add suspend/resume test
When mac80211 resumes, it currently doesn't reconfigure the interfaces entirely and also doesn't reconfigure BSS information -- fix this. Also, to be able to test this, add a debugfs file that just calls the suspend/resume code to see what happens when we go through that, without needing the time-consuming suspend/resume cycle. (Original version broke the build for CONFIG_PM=n. Define alternative functions for that situation. -- JWL) Signed-off-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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 7b96d95f48b1..547cfac218ee 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -780,6 +780,7 @@ struct ieee80211_local {
780 struct dentry *total_ps_buffered; 780 struct dentry *total_ps_buffered;
781 struct dentry *wep_iv; 781 struct dentry *wep_iv;
782 struct dentry *tsf; 782 struct dentry *tsf;
783 struct dentry *reset;
783 struct dentry *statistics; 784 struct dentry *statistics;
784 struct local_debugfsdentries_statsdentries { 785 struct local_debugfsdentries_statsdentries {
785 struct dentry *transmitted_fragment_count; 786 struct dentry *transmitted_fragment_count;
@@ -1059,8 +1060,19 @@ void ieee80211_handle_pwr_constr(struct ieee80211_sub_if_data *sdata,
1059 u8 pwr_constr_elem_len); 1060 u8 pwr_constr_elem_len);
1060 1061
1061/* Suspend/resume */ 1062/* Suspend/resume */
1063#ifdef CONFIG_PM
1062int __ieee80211_suspend(struct ieee80211_hw *hw); 1064int __ieee80211_suspend(struct ieee80211_hw *hw);
1063int __ieee80211_resume(struct ieee80211_hw *hw); 1065int __ieee80211_resume(struct ieee80211_hw *hw);
1066#else
1067static inline int __ieee80211_suspend(struct ieee80211_hw *hw)
1068{
1069 return 0;
1070}
1071static inline int __ieee80211_resume(struct ieee80211_hw *hw)
1072{
1073 return 0;
1074}
1075#endif
1064 1076
1065/* utility functions/constants */ 1077/* utility functions/constants */
1066extern void *mac80211_wiphy_privid; /* for wiphy privid */ 1078extern void *mac80211_wiphy_privid; /* for wiphy privid */