diff mbox

[RFC,2/2] mac80211: Flush all txq before sending a nullfunc frame.

Message ID 1297750589-15465-2-git-send-email-vnatarajan@atheros.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Vivek Natarajan Feb. 15, 2011, 6:16 a.m. UTC
None
diff mbox

Patch

diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 4c58769..79e8f49 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -741,6 +741,9 @@  void ieee80211_dynamic_ps_enable_work(struct work_struct *work)
 	    (!(ifmgd->flags & IEEE80211_STA_NULLFUNC_ACKED) ||
 	     !(ifmgd->flags & IEEE80211_STA_PS_PENDING))) {
 		ifmgd->flags |= IEEE80211_STA_PS_PENDING;
+		ieee80211_stop_queues_by_reason(&local->hw,
+						IEEE80211_QUEUE_STOP_REASON_PS);
+		drv_flush(local, false);
 		ieee80211_send_nullfunc(local, sdata, 1);
 	}