From patchwork Fri Feb 4 12:40:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Natarajan X-Patchwork-Id: 531801 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p14CesbB011856 for ; Fri, 4 Feb 2011 12:40:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751380Ab1BDMkv (ORCPT ); Fri, 4 Feb 2011 07:40:51 -0500 Received: from mail.atheros.com ([12.19.149.2]:60315 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751098Ab1BDMku (ORCPT ); Fri, 4 Feb 2011 07:40:50 -0500 Received: from mail.atheros.com ([10.10.20.105]) by sidewinder.atheros.com for ; Fri, 04 Feb 2011 04:40:30 -0800 Received: from smtp.atheros.com (10.12.4.8) by SC1EXHC-01.global.atheros.com (10.10.20.111) with Microsoft SMTP Server (TLS) id 8.2.213.0; Fri, 4 Feb 2011 04:40:49 -0800 Received: by smtp.atheros.com (sSMTP sendmail emulation); Fri, 04 Feb 2011 18:10:46 +0530 From: Vivek Natarajan To: Subject: [RFC] mac80211: Flush all txq before sending a nullfunc frame. Date: Fri, 4 Feb 2011 18:10:46 +0530 Message-ID: <1296823246-5517-1-git-send-email-vnatarajan@atheros.com> X-Mailer: git-send-email 1.6.3.3 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 04 Feb 2011 12:40:55 +0000 (UTC) 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); }