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: 9702145 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 54DB060245 for ; Wed, 26 Apr 2017 22:05:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46BA8212BE for ; Wed, 26 Apr 2017 22:05:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B1FE26419; Wed, 26 Apr 2017 22:05:05 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=unavailable 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 3CA5B212BE for ; Wed, 26 Apr 2017 22:05:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937799AbdDZWEx (ORCPT ); Wed, 26 Apr 2017 18:04:53 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:34008 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936287AbdDZWEt (ORCPT ); Wed, 26 Apr 2017 18:04:49 -0400 Received: by mail-pf0-f182.google.com with SMTP id c198so6989494pfc.1 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=NYY17L1/ggXzDcd8rnwKw/kLwfeuMOl/DTNObkBS5ZYMNpUoAV4lueLwMFTLNGTCx/ 1Sd5nkDtFkoUwBs92KSHjwdEkFHyppoyL5YIdubm88lySV02Ykh+e6AOyWAsLBwVia3Y j68jdDE6ac2sOH5bCV38P9Yqbg8mbSK2XECmAK0qZktBqQqLBkWlM0vT410jQtsjGPke xiE2CisYA5s+RMMhw67j3SXnoMWSeT3ye/eUGCoiF8UzSzrJByjl9CjGQie2s0BXIfjw 4+MBqF6PqKtPTV9mJLxzAG0EFPO9vpQNMGRvaaJjbHcVeQf6vOW9PSj+aAwXbjdZpHpO qZlA== X-Gm-Message-State: AN3rC/5lsJ1/jFDlWHjJqVDnAW8KY9LoN1nc8bSGIFLhNS65GUeLo1jL dFF11ry1R11Lw+38 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: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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) {