Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3488920imu; Sun, 11 Nov 2018 16:14:48 -0800 (PST) X-Google-Smtp-Source: AJdET5fL61/MomCV4JwWCqg2rRv0ZBuk639LW7tsg97nDaJbkpJ+Dzji7JBmXIu8dGKolVK4YKrM X-Received: by 2002:a63:2109:: with SMTP id h9mr15477590pgh.277.1541981688351; Sun, 11 Nov 2018 16:14:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541981688; cv=none; d=google.com; s=arc-20160816; b=AHwfetEN5gXjYLEx/JjMBmNCUpu5jaQAzAWsQwaohPX3Vby5ML9F/gDXnTKcq1P3Je pN6gLyTLp+6t8mGJGcWV9G0bBJH+ch94k9vtKcWxvI8eag6Sb/0zXE49J6MkyQhjcH/X K6alZ0szTVhEmvw0t0BfxXt9caSu7+X6136tqJfs0oPyvAGjbI1AWMZZP3ugamQPChTh HKR9NTyeQB81338T27P3D89W1wl+HzvHsGoo0FPSE3fvJA9LHNKNbWQwK4OjIakVcoJW fkr9bVz64RLYSovS/q66HYSuW7YS9BR2XYnCG2KO1uCaSBBZFqvcDxdTNl8cGhphYco6 PZqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=u6SpGsExV916rhfcTqIjCRjIfG2bhGTwwqSlqqCrlDg=; b=Yt22CfhCxe3tNcaUVGHEQIY0jdcgtnODiwnT/RjBymqCyG7OngWG5W+FKQfU5FsEzr kxG7AnDbzQPZ0jo7axGytq9iRTXlBrA8xJva2tmEyJ0ZGe3iEY8aIexlT9Ip0eFNqF/N cb63W5UWUX2mWqt1Nt63ATpW0pKDLvYIJ1Q4EMoBNSfYwxWe9eC6N5+fWIqwM1/xnsIP WMf5IPt1NZjPCUkyJsu5NKJZ9q6pe22qwBB5I5tIlX0E6wAZuJ6xOrFHwPK8oqk32BmM l6pxIj86eD4WKyAXg5bIeH7jq/z0TzIz/lKHbxZ/dOFpW8GLZBoDoFdLrxpsUf3jsIIx RBrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KPXJ2Hx2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 131-v6si16454140pfx.213.2018.11.11.16.14.33; Sun, 11 Nov 2018 16:14:48 -0800 (PST) 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=KPXJ2Hx2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731195AbeKLKDa (ORCPT + 99 others); Mon, 12 Nov 2018 05:03:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:60278 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730547AbeKLIRR (ORCPT ); Mon, 12 Nov 2018 03:17:17 -0500 Received: from localhost (unknown [206.108.79.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 91D96215EA; Sun, 11 Nov 2018 22:27:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975241; bh=KyZRNeQ712Sh8377stAvwRyPzCSm9XSW9PcEv5tlPzE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KPXJ2Hx2uKVwPzT2b/afaqlO2HHyEKDanZNNsBqaT+IceMD/++QcXWnqrrEPV/dEv VAzouH5L8/LTl0rFI971UUR9nOcx66zgrGSxrYsBZbkW2maAqzvDIohwINp8tOSWs2 2W4ATu66e4+v0o7He3ObC2+Fm7JO90RJr6mwRLsA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rakesh Pillai , Kalle Valo , Sasha Levin Subject: [PATCH 4.19 086/361] ath10k: fix tx status flag setting for management frames Date: Sun, 11 Nov 2018 14:17:13 -0800 Message-Id: <20181111221631.937232624@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/ath10k/wmi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- 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(stru 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;