From patchwork Mon Jul 11 13:04:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Fietkau X-Patchwork-Id: 9223589 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 594EB60871 for ; Mon, 11 Jul 2016 13:04:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B5BB27CF9 for ; Mon, 11 Jul 2016 13:04:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 402EA27D5D; Mon, 11 Jul 2016 13:04:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D202527CF9 for ; Mon, 11 Jul 2016 13:04:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758018AbcGKNEN (ORCPT ); Mon, 11 Jul 2016 09:04:13 -0400 Received: from nbd.name ([46.4.11.11]:35633 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752831AbcGKNEN (ORCPT ); Mon, 11 Jul 2016 09:04:13 -0400 Received: by nf-4.local (Postfix, from userid 501) id E390E1508DB25; Mon, 11 Jul 2016 15:04:05 +0200 (CEST) From: Felix Fietkau To: toke@toke.dk Cc: linux-wireless@vger.kernel.org Subject: [PATCH ath9k-txq-work 2/2] ath9k: call ieee80211_sta_set_buffered if frames are pending Date: Mon, 11 Jul 2016 15:04:05 +0200 Message-Id: <20160711130405.77451-2-nbd@nbd.name> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20160711130405.77451-1-nbd@nbd.name> References: <20160711130405.77451-1-nbd@nbd.name> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP mac80211 needs to know about driver queued frames Signed-off-by: Felix Fietkau --- drivers/net/wireless/ath/ath9k/xmit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index b3521c3..18c7443 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c @@ -1561,6 +1561,9 @@ void ath_tx_aggr_sleep(struct ieee80211_sta *sta, struct ath_softc *sc, continue; } + if (!skb_queue_empty(&tid->retry_q)) + ieee80211_sta_set_buffered(sta, tid->tidno, true); + list_del_init(&tid->list); ath_txq_unlock(sc, txq);