diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2013-02-28 04:55:28 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-03-06 10:35:57 -0500 |
commit | a61829437e68c8b2036cf5005ed0e875451c9120 (patch) | |
tree | eb6732769378454dd77058d0246fbf5b8a0fd96d | |
parent | 9b7d72c1041ec5b20b24af487a98f71d8ff1555e (diff) |
mac80211: cleanup suspend/resume on ibss mode
Remove not used any longer suspend/resume code.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | net/mac80211/ibss.c | 29 | ||||
-rw-r--r-- | net/mac80211/ieee80211_i.h | 4 |
2 files changed, 1 insertions, 32 deletions
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index 40b71dfcc79d..539d4a11b47b 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c | |||
@@ -985,36 +985,9 @@ static void ieee80211_ibss_timer(unsigned long data) | |||
985 | { | 985 | { |
986 | struct ieee80211_sub_if_data *sdata = | 986 | struct ieee80211_sub_if_data *sdata = |
987 | (struct ieee80211_sub_if_data *) data; | 987 | (struct ieee80211_sub_if_data *) data; |
988 | struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; | ||
989 | struct ieee80211_local *local = sdata->local; | ||
990 | |||
991 | if (local->quiescing) { | ||
992 | ifibss->timer_running = true; | ||
993 | return; | ||
994 | } | ||
995 | |||
996 | ieee80211_queue_work(&local->hw, &sdata->work); | ||
997 | } | ||
998 | |||
999 | #ifdef CONFIG_PM | ||
1000 | void ieee80211_ibss_quiesce(struct ieee80211_sub_if_data *sdata) | ||
1001 | { | ||
1002 | struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; | ||
1003 | 988 | ||
1004 | if (del_timer_sync(&ifibss->timer)) | 989 | ieee80211_queue_work(&sdata->local->hw, &sdata->work); |
1005 | ifibss->timer_running = true; | ||
1006 | } | ||
1007 | |||
1008 | void ieee80211_ibss_restart(struct ieee80211_sub_if_data *sdata) | ||
1009 | { | ||
1010 | struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; | ||
1011 | |||
1012 | if (ifibss->timer_running) { | ||
1013 | add_timer(&ifibss->timer); | ||
1014 | ifibss->timer_running = false; | ||
1015 | } | ||
1016 | } | 990 | } |
1017 | #endif | ||
1018 | 991 | ||
1019 | void ieee80211_ibss_setup_sdata(struct ieee80211_sub_if_data *sdata) | 992 | void ieee80211_ibss_setup_sdata(struct ieee80211_sub_if_data *sdata) |
1020 | { | 993 | { |
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 336f1c3bbb5d..a56fa965e317 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -492,8 +492,6 @@ struct ieee80211_if_ibss { | |||
492 | 492 | ||
493 | u32 basic_rates; | 493 | u32 basic_rates; |
494 | 494 | ||
495 | bool timer_running; | ||
496 | |||
497 | bool fixed_bssid; | 495 | bool fixed_bssid; |
498 | bool fixed_channel; | 496 | bool fixed_channel; |
499 | bool privacy; | 497 | bool privacy; |
@@ -1293,8 +1291,6 @@ void ieee80211_ibss_rx_no_sta(struct ieee80211_sub_if_data *sdata, | |||
1293 | int ieee80211_ibss_join(struct ieee80211_sub_if_data *sdata, | 1291 | int ieee80211_ibss_join(struct ieee80211_sub_if_data *sdata, |
1294 | struct cfg80211_ibss_params *params); | 1292 | struct cfg80211_ibss_params *params); |
1295 | int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata); | 1293 | int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata); |
1296 | void ieee80211_ibss_quiesce(struct ieee80211_sub_if_data *sdata); | ||
1297 | void ieee80211_ibss_restart(struct ieee80211_sub_if_data *sdata); | ||
1298 | void ieee80211_ibss_work(struct ieee80211_sub_if_data *sdata); | 1294 | void ieee80211_ibss_work(struct ieee80211_sub_if_data *sdata); |
1299 | void ieee80211_ibss_rx_queued_mgmt(struct ieee80211_sub_if_data *sdata, | 1295 | void ieee80211_ibss_rx_queued_mgmt(struct ieee80211_sub_if_data *sdata, |
1300 | struct sk_buff *skb); | 1296 | struct sk_buff *skb); |