aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/offchannel.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/offchannel.c')
-rw-r--r--net/mac80211/offchannel.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/mac80211/offchannel.c b/net/mac80211/offchannel.c
index a7bbfc40a648..c36b1911987a 100644
--- a/net/mac80211/offchannel.c
+++ b/net/mac80211/offchannel.c
@@ -113,7 +113,7 @@ void ieee80211_offchannel_stop_beaconing(struct ieee80211_local *local)
113 */ 113 */
114 if (sdata->vif.type != NL80211_IFTYPE_STATION && 114 if (sdata->vif.type != NL80211_IFTYPE_STATION &&
115 sdata->vif.type != NL80211_IFTYPE_MONITOR) 115 sdata->vif.type != NL80211_IFTYPE_MONITOR)
116 netif_stop_queue(sdata->dev); 116 netif_tx_stop_all_queues(sdata->dev);
117 } 117 }
118 mutex_unlock(&local->iflist_mtx); 118 mutex_unlock(&local->iflist_mtx);
119} 119}
@@ -131,7 +131,7 @@ void ieee80211_offchannel_stop_station(struct ieee80211_local *local)
131 continue; 131 continue;
132 132
133 if (sdata->vif.type == NL80211_IFTYPE_STATION) { 133 if (sdata->vif.type == NL80211_IFTYPE_STATION) {
134 netif_stop_queue(sdata->dev); 134 netif_tx_stop_all_queues(sdata->dev);
135 if (sdata->u.mgd.associated) 135 if (sdata->u.mgd.associated)
136 ieee80211_offchannel_ps_enable(sdata); 136 ieee80211_offchannel_ps_enable(sdata);
137 } 137 }
@@ -153,9 +153,11 @@ void ieee80211_offchannel_return(struct ieee80211_local *local,
153 if (sdata->vif.type == NL80211_IFTYPE_STATION) { 153 if (sdata->vif.type == NL80211_IFTYPE_STATION) {
154 if (sdata->u.mgd.associated) 154 if (sdata->u.mgd.associated)
155 ieee80211_offchannel_ps_disable(sdata); 155 ieee80211_offchannel_ps_disable(sdata);
156 netif_wake_queue(sdata->dev);
157 } 156 }
158 157
158 if (sdata->vif.type != NL80211_IFTYPE_MONITOR)
159 netif_tx_wake_all_queues(sdata->dev);
160
159 /* re-enable beaconing */ 161 /* re-enable beaconing */
160 if (enable_beaconing && 162 if (enable_beaconing &&
161 (sdata->vif.type == NL80211_IFTYPE_AP || 163 (sdata->vif.type == NL80211_IFTYPE_AP ||