From patchwork Wed Apr 26 22:04:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 98277 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp534791qgf; Wed, 26 Apr 2017 15:04:52 -0700 (PDT) X-Received: by 10.99.141.199 with SMTP id z190mr2143599pgd.118.1493244292475; Wed, 26 Apr 2017 15:04:52 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 189si555199pgb.323.2017.04.26.15.04.52; Wed, 26 Apr 2017 15:04:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937244AbdDZWEv (ORCPT + 7 others); Wed, 26 Apr 2017 18:04:51 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:32817 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935817AbdDZWEt (ORCPT ); Wed, 26 Apr 2017 18:04:49 -0400 Received: by mail-pf0-f171.google.com with SMTP id a188so6998190pfa.0 for ; Wed, 26 Apr 2017 15:04:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=evGbeb4ehuBCPy+HzvVqJKRM82ozeDbmTGrseC55628=; b=A3zFme6JErTtW+tbs/MCm52NFYBBxQ+mhjRuDVxMgacd2kTL/1g84yJm1podYDIsc2 WrJOB4ylLphTexjb9FUWKuTEIeiWw61DyGY4lcipenSrE1dd0kvz5JHtHQpcPKLD9s1N rzKMggtSBixKEzGAU2VeBxjCl7jMraQHtojDs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=evGbeb4ehuBCPy+HzvVqJKRM82ozeDbmTGrseC55628=; b=eoiS8mOugPYzgc9wko0MToo/bDgWKnUKOPsLIp3z4OK9jStmRBP2/0gfbbX7cma49R Ex8Y+eOeXHnGY1L+f4n6m68GhApc0Wn8jAXWdSHBjR1VIaQ/mu61BvQfZqOXrB4QM4pN QhQ1t3nT7c19a7mZwz5AEuga84m9h+cZYwLmQORVrQYvY3UkG97D5oLn5zDb+fJ+PaNf a3Dnj5VBkHES2bcHdNzjqVBssTJsfugJP5r3owUExgeMTLs8QhVu0NXislAnSs5eXFqv MLarwXccRxW/Yswy5kdfe+dQsGYgeuyCjbPUNaaiB8rjkcOheK2dXdfagHavjgTUyQZk txcg== X-Gm-Message-State: AN3rC/4z++p/wRK84a+En7JA2crswKtx1sjhSL3WzBLn1ol4Qu5N9MHG Pr47qbAb4PbZaq3X X-Received: by 10.84.136.70 with SMTP id 64mr2762179plk.82.1493244288648; Wed, 26 Apr 2017 15:04:48 -0700 (PDT) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id t141sm468942pgb.3.2017.04.26.15.04.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Apr 2017 15:04:48 -0700 (PDT) From: Bjorn Andersson To: Eugene Krasnikov , Kalle Valo Cc: Andy Gross , David Brown , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-soc@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, wcn36xx@lists.infradead.org, Nicolas Dechesne Subject: [PATCH 1/2] wcn36xx: Pass used skb to ieee80211_tx_status() Date: Wed, 26 Apr 2017 15:04:43 -0700 Message-Id: <20170426220444.10539-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.12.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org As the tx skbs are collected they should be passed to ieee80211_tx_status() rather than ieee80211_free_txskb(), as the prior will take care of monitoring and LED triggers while the latter will consider the skb dropped. Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/dxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.12.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/wireless/ath/wcn36xx/dxe.c b/drivers/net/wireless/ath/wcn36xx/dxe.c index 87dfdaf9044c..938b7bd733cf 100644 --- a/drivers/net/wireless/ath/wcn36xx/dxe.c +++ b/drivers/net/wireless/ath/wcn36xx/dxe.c @@ -371,7 +371,7 @@ static void reap_tx_dxes(struct wcn36xx *wcn, struct wcn36xx_dxe_ch *ch) info = IEEE80211_SKB_CB(ctl->skb); if (!(info->flags & IEEE80211_TX_CTL_REQ_TX_STATUS)) { /* Keep frame until TX status comes */ - ieee80211_free_txskb(wcn->hw, ctl->skb); + ieee80211_tx_status(wcn->hw, ctl->skb); } spin_lock(&ctl->skb_lock); if (wcn->queues_stopped) {