In a highly noisy environment, a data frame which is queued before a nullfunc frame on a different hw queue may be sent over the air after the tx completion of nullfunc frame. This causes the station to enter power save and the AP to see the station as awake and continues to send the data traffic. Fix this by flushing all tx queues before we send the null function frame with PM bit set. Signed-off-by: Vivek Natarajan <vnatarajan@xxxxxxxxxxx> --- net/mac80211/mlme.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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); } -- 1.6.3.3 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html