diff mbox

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

Message ID 1296823246-5517-1-git-send-email-vnatarajan@atheros.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Vivek Natarajan Feb. 4, 2011, 12:40 p.m. UTC
None
diff mbox

Patch

diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 45f736e..f963df5 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -729,6 +729,7 @@  void ieee80211_dynamic_ps_enable_work(struct work_struct *work)
 	if ((local->hw.flags & IEEE80211_HW_PS_NULLFUNC_STACK) &&
 	    (!(ifmgd->flags & IEEE80211_STA_NULLFUNC_ACKED))) {
 		ifmgd->flags |= IEEE80211_STA_PS_PENDING;
+		drv_flush(local, false);
 		ieee80211_send_nullfunc(local, sdata, 1);
 	}