aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>2011-12-30 06:19:01 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-01-04 14:31:47 -0500
commit67f61261b6df33a9aee8a6e014b4aef661f1a532 (patch)
tree66ecd468a7cb5cb067fa3f9cae4a14cfc5305e9e /net
parent6b6accc3832e5a124eeb144c6b3b1ff65b503d2b (diff)
mac80211: remove dead code
ieee80211_offchannel_enable_all_ps function is no longer used and looks like its logic is extensively handled in ieee80211_offchannel_stop_vifs Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/ieee80211_i.h2
-rw-r--r--net/mac80211/offchannel.c17
2 files changed, 0 insertions, 19 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index c3f3e431a573..2f0642d9e154 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -1221,8 +1221,6 @@ int ieee80211_request_sched_scan_stop(struct ieee80211_sub_if_data *sdata);
1221void ieee80211_sched_scan_stopped_work(struct work_struct *work); 1221void ieee80211_sched_scan_stopped_work(struct work_struct *work);
1222 1222
1223/* off-channel helpers */ 1223/* off-channel helpers */
1224void ieee80211_offchannel_enable_all_ps(struct ieee80211_local *local,
1225 bool tell_ap);
1226void ieee80211_offchannel_stop_vifs(struct ieee80211_local *local, 1224void ieee80211_offchannel_stop_vifs(struct ieee80211_local *local,
1227 bool offchannel_ps_enable); 1225 bool offchannel_ps_enable);
1228void ieee80211_offchannel_return(struct ieee80211_local *local, 1226void ieee80211_offchannel_return(struct ieee80211_local *local,
diff --git a/net/mac80211/offchannel.c b/net/mac80211/offchannel.c
index 2948f8e2e675..f054e94901a2 100644
--- a/net/mac80211/offchannel.c
+++ b/net/mac80211/offchannel.c
@@ -138,23 +138,6 @@ void ieee80211_offchannel_stop_vifs(struct ieee80211_local *local,
138 mutex_unlock(&local->iflist_mtx); 138 mutex_unlock(&local->iflist_mtx);
139} 139}
140 140
141void ieee80211_offchannel_enable_all_ps(struct ieee80211_local *local,
142 bool tell_ap)
143{
144 struct ieee80211_sub_if_data *sdata;
145
146 mutex_lock(&local->iflist_mtx);
147 list_for_each_entry(sdata, &local->interfaces, list) {
148 if (!ieee80211_sdata_running(sdata))
149 continue;
150
151 if (sdata->vif.type == NL80211_IFTYPE_STATION &&
152 sdata->u.mgd.associated)
153 ieee80211_offchannel_ps_enable(sdata, tell_ap);
154 }
155 mutex_unlock(&local->iflist_mtx);
156}
157
158void ieee80211_offchannel_return(struct ieee80211_local *local, 141void ieee80211_offchannel_return(struct ieee80211_local *local,
159 bool offchannel_ps_disable) 142 bool offchannel_ps_disable)
160{ 143{