From patchwork Tue Feb 15 06:16:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Natarajan X-Patchwork-Id: 557851 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 p1F6GomL007693 for ; Tue, 15 Feb 2011 06:16:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752041Ab1BOGQs (ORCPT ); Tue, 15 Feb 2011 01:16:48 -0500 Received: from mail.atheros.com ([12.19.149.2]:38034 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751323Ab1BOGQs (ORCPT ); Tue, 15 Feb 2011 01:16:48 -0500 Received: from mail.atheros.com ([10.10.20.108]) by sidewinder.atheros.com for ; Mon, 14 Feb 2011 22:16:27 -0800 Received: from smtp.atheros.com (10.12.4.8) by SC1EXHC-02.global.atheros.com (10.10.20.111) with Microsoft SMTP Server (TLS) id 8.2.213.0; Mon, 14 Feb 2011 22:16:45 -0800 Received: by smtp.atheros.com (sSMTP sendmail emulation); Tue, 15 Feb 2011 11:46:37 +0530 From: Vivek Natarajan To: CC: , Subject: [RFC 2/2] mac80211: Flush all txq before sending a nullfunc frame. Date: Tue, 15 Feb 2011 11:46:29 +0530 Message-ID: <1297750589-15465-2-git-send-email-vnatarajan@atheros.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1297750589-15465-1-git-send-email-vnatarajan@atheros.com> References: <1297750589-15465-1-git-send-email-vnatarajan@atheros.com> 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]); Tue, 15 Feb 2011 06:17:07 +0000 (UTC) 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); }