aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/offchannel.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-11-29 04:20:02 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-11-30 15:08:31 -0500
commite76aadc572288a158ae18ae1c10fe395c7bca066 (patch)
tree82c3e5a961039826c31b944d1f27f488743f9d8b /net/mac80211/offchannel.c
parent742c29fd5bcd73f14facd6c7f3912c5ab66739ed (diff)
mac80211: revert on-channel work optimisations
The on-channel work optimisations have caused a number of issues, and the code is unfortunately very complex and almost impossible to follow. Instead of attempting to put in more workarounds let's just remove those optimisations, we can work on them again later, after we change the whole auth/assoc design. This should fix rate_control_send_low() warnings, see RH bug 731365. Cc: stable@vger.kernel.org Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/offchannel.c')
-rw-r--r--net/mac80211/offchannel.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/net/mac80211/offchannel.c b/net/mac80211/offchannel.c
index ebd8cccac8f2..e4330d843575 100644
--- a/net/mac80211/offchannel.c
+++ b/net/mac80211/offchannel.c
@@ -156,7 +156,6 @@ void ieee80211_offchannel_enable_all_ps(struct ieee80211_local *local,
156} 156}
157 157
158void ieee80211_offchannel_return(struct ieee80211_local *local, 158void ieee80211_offchannel_return(struct ieee80211_local *local,
159 bool enable_beaconing,
160 bool offchannel_ps_disable) 159 bool offchannel_ps_disable)
161{ 160{
162 struct ieee80211_sub_if_data *sdata; 161 struct ieee80211_sub_if_data *sdata;
@@ -188,11 +187,9 @@ void ieee80211_offchannel_return(struct ieee80211_local *local,
188 netif_tx_wake_all_queues(sdata->dev); 187 netif_tx_wake_all_queues(sdata->dev);
189 } 188 }
190 189
191 /* Check to see if we should re-enable beaconing */ 190 if (sdata->vif.type == NL80211_IFTYPE_AP ||
192 if (enable_beaconing && 191 sdata->vif.type == NL80211_IFTYPE_ADHOC ||
193 (sdata->vif.type == NL80211_IFTYPE_AP || 192 sdata->vif.type == NL80211_IFTYPE_MESH_POINT)
194 sdata->vif.type == NL80211_IFTYPE_ADHOC ||
195 sdata->vif.type == NL80211_IFTYPE_MESH_POINT))
196 ieee80211_bss_info_change_notify( 193 ieee80211_bss_info_change_notify(
197 sdata, BSS_CHANGED_BEACON_ENABLED); 194 sdata, BSS_CHANGED_BEACON_ENABLED);
198 } 195 }