Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp139297imd; Wed, 31 Oct 2018 16:07:14 -0700 (PDT) X-Google-Smtp-Source: AJdET5dP3c8JRjrUcW+uCSyaiV3p6PK5o9egFWSV8+LbenCjsE+qsxKFSzXlZVvybDU44+PthHC0 X-Received: by 2002:a65:610e:: with SMTP id z14-v6mr4955672pgu.138.1541027234577; Wed, 31 Oct 2018 16:07:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541027234; cv=none; d=google.com; s=arc-20160816; b=OJ3nicdhGY1+TTehyI/6Ex+9ifYXR6X0DJB2R+sBsZoVxzrAhhXIBmgWs14FBER8bz adaTo2E/DSsZC17VsKSTUG5F4wFV+m97QMN/vcXxcttoHhSZKybh994FjRjW0PBAoyL3 T3FABa3+d5Yu3DM9l1PEJ2OnllQyY4FWBYqaESp1TBZI+SJfgLnsl0S4rwrAk0EyvM47 WOFlgTAfB9Nbs9n7/ZsKQ1zP1j4SJriWd50R+4KPlX0BfMBEkKqL0v1H+vnuavTcZy5o uUcnFXe5FqQE83OnGIoMaAdaFYp/lux024VKgcuAA7R8NNMCMb4IYr76EjhM/v4tXD7/ JvTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=JmDHotMLVNdFxh6aWnifb4JTq35C3baNopv0vFzv2dk=; b=E39DEJUdbB8V8aFPQcnGbS50P5+gKMQMwD6bIg3Jv4SsNWIgWM0sbLXsHwYCS2OcBT KipJDwuYNslu9EcRFEvsymu32lci8S2A3TX0MjeJDkJEFXij4H7S5OAw2FwIzYYmWqU/ oy7N7Mbi0pEJM1RKmY8HKAXGMh6YwzygtqPva1KHAk6hoGJw9MHkp9qrBLikhKhCccwf eiN5vIAPD37mDTs9R/EUdZsapD3yfDBj4pQCiweSieeF/18x598SD+NhVaPnAQyuYi8Y 3BjWevQkcIckptHHs4XPMuSFvEprTWjYMJEZQfkt+b/tkTpIvhXPSC1rtj09L71l7hwQ 6DHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="aCp2qZ+/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x35-v6si29145220pgk.558.2018.10.31.16.06.59; Wed, 31 Oct 2018 16:07:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="aCp2qZ+/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728092AbeKAIGd (ORCPT + 99 others); Thu, 1 Nov 2018 04:06:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:53388 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727984AbeKAIGa (ORCPT ); Thu, 1 Nov 2018 04:06:30 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BB3AD20843; Wed, 31 Oct 2018 23:06:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541027179; bh=VJIveXiCnAmoabm4oI36g6Ps2qFbn500SMnUQfuGQ00=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aCp2qZ+/GTQYS1ibw7zQBbXTD+iD3AvJ7vEGqisfHE6SAPjEIlcF3diERchqMrbE0 zs6PDqmUFzZNZPMd9Utx2NBdebUhT46JRABeDyOAvpJsr5STkPsZPy6MMz8YWd83r6 VsLXBf1v9gemtYi9bBr4NzGHxn1fQqkLIXhbaljA= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rakesh Pillai , Kalle Valo , Sasha Levin Subject: [PATCH AUTOSEL 4.19 041/146] ath10k: fix tx status flag setting for management frames Date: Wed, 31 Oct 2018 19:03:56 -0400 Message-Id: <20181031230541.28822-41-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181031230541.28822-1-sashal@kernel.org> References: <20181031230541.28822-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rakesh Pillai [ Upstream commit 058a7eab9d9ee12f57282eb0b606668dada70d7a ] The tx_status for management frames is being filled incorrectly in the flags of skb_cb. This incorrect flag setting causes the upper layers to consider that the particular frame was not transmitted properly, leading to improper behavior. Set the IEEE80211_TX_STAT_ACK flag in the info flags of skb_cb, to indicate the successful transmission of the management frame. Tested HW: WCN3990 Tested FW: WLAN.HL.2.0-01188-QCAHLSWMTPLZ-1 Fixes: dc405152bb64d4ae01c9ac669de25b2d1fb6fc2d Signed-off-by: Rakesh Pillai Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath10k/wmi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index fd612d2905b0..1dced0dae9cd 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -2336,7 +2336,12 @@ static int wmi_process_mgmt_tx_comp(struct ath10k *ar, u32 desc_id, dma_unmap_single(ar->dev, pkt_addr->paddr, msdu->len, DMA_FROM_DEVICE); info = IEEE80211_SKB_CB(msdu); - info->flags |= status; + + if (status) + info->flags &= ~IEEE80211_TX_STAT_ACK; + else + info->flags |= IEEE80211_TX_STAT_ACK; + ieee80211_tx_status_irqsafe(ar->hw, msdu); ret = 0; -- 2.17.1