aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-12-13 11:16:45 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-01-03 07:01:34 -0500
commit529ba6e9313dbe60dab7e72c6fdf647a012e9f5b (patch)
treea556b0d18baf4309ebf705715440e702d5acb86b /net/mac80211/ieee80211_i.h
parent61e8a48cc1283c8e4358b3ce06305d886c55f7ce (diff)
mac80211: clean up association better in suspend
When suspending, bss_info_changed() is called to disable beacons, but managed mode interfaces are simply removed (bss_info_changed() is called with "no change" only). This can lead to problems. To fix this and copy the BSS configuration, clear it during suspend and restore it on resume. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index fa6d43e6197f..38e7883cff23 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -783,6 +783,11 @@ struct ieee80211_sub_if_data {
783 struct dentry *default_mgmt_key; 783 struct dentry *default_mgmt_key;
784 } debugfs; 784 } debugfs;
785#endif 785#endif
786
787#ifdef CONFIG_PM
788 struct ieee80211_bss_conf suspend_bss_conf;
789#endif
790
786 /* must be last, dynamically sized area in this! */ 791 /* must be last, dynamically sized area in this! */
787 struct ieee80211_vif vif; 792 struct ieee80211_vif vif;
788}; 793};