Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9988985ybi; Wed, 24 Jul 2019 13:39:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwf4f8ILUurs+1EBLWlIFWkVrhIUFIwVQPoKazVddh9zoBIuUsb8I38OjKS04OzjyT8ysfz X-Received: by 2002:a17:90a:bc42:: with SMTP id t2mr89022440pjv.121.1564000747780; Wed, 24 Jul 2019 13:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564000747; cv=none; d=google.com; s=arc-20160816; b=U95cUfLW/lAV7qKDyLG2zIQo99+/UAJ0jxxHZt5+bU2NkPG+EBM9HLtBlV8t4fD66V pLPvyb61KzVRydFl0WPTSzXuRvvUaZ7xHzrs/752DtGuc1VMRiQco8XMvipP4q0/Iv7v e19mZKiRhpA2vKCpo9r8GMcDvOCpATR2xAOoiegdtqTjsHrBc85XMQ0DYOPSS/xhpHoN /2Zjteb69g6WylRchHqVVeYPI4Rf5G5nLl41g6SsPyVVCekuJMD6GNU7Bl/RmecWWeyV 9yeoMDVoEmFaFfgMZUYLr8rZtVMSEHxLTKIGd/LiREXJExhZlUBcmM7sux3oUlpf3hMt FMxg== 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=qpb6LRhcVKmp5so6JccE1+LdJ0NC39NfECYRqaEDLC8=; b=rP+tN/ueiwmYZZ50Y6KNzoiVZYK20c1TFEt0/j764rab315cdgLjQtuVVGcz4DfKhy HGuKdGRiMgWY31MqohmorzK59TbdiEkNTgm88uy53/NbChU5Nx0biQeKrw32qUhwE9Pw U9js0+iHKXqciWrMLg/apG/H0O4N1HiSfphXQB/uyk4wxY23TFcznAsKQRvpGZxB2tW9 vtvbmH5PDBNXmxVsHL5lCVMjTeP5iAd/4/yHV/s0omnCI3LNjwU3fk4bHb5m8dCWqovZ PPCY6JXaTlQD4ZljyGOY19Pel+Q2QYpOopJanU9BtZdYBeL55dzvD8xtlUN+m2A73fwC R8/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vp8rgVT4; 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 b61si14763886plb.401.2019.07.24.13.38.52; Wed, 24 Jul 2019 13:39:07 -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=Vp8rgVT4; 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 S2387769AbfGXTXU (ORCPT + 99 others); Wed, 24 Jul 2019 15:23:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:38938 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387747AbfGXTXS (ORCPT ); Wed, 24 Jul 2019 15:23:18 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 3E994218EA; Wed, 24 Jul 2019 19:23:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563996197; bh=b9TOP3Xn3cc3W5pR2KgfKQ1bc00mbBY4OpSSUmZjhzo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vp8rgVT424fkQnyaFjWVOTOBaWPxTjJHcfhht3ntZ0XRlYhKYRcSWY56C4Znlkdzs m8BzRJe5cSvGDq3d0p3Wylb3rdhDHzydTtNDa6G/KjOi4RlbI5OpqBjf11przL6+7o jzKYehEa/5LvBVqE1Awn5POAlMeRUV8qF056QWGk= 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 5.2 015/413] ath10k: Fix encoding for protected management frames Date: Wed, 24 Jul 2019 21:15:06 +0200 Message-Id: <20190724191736.520771439@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191735.096702571@linuxfoundation.org> References: <20190724191735.096702571@linuxfoundation.org> User-Agent: quilt/0.66 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 [ Upstream commit 42f1bc43e6a97b9ddbe976eba9bd05306c990c75 ] Currently the protected management frames are not appended with the MIC_LEN which results in the protected management frames being encoded incorrectly. Add the extra space at the end of the protected management frames to fix this encoding error for the protected management frames. Tested HW: WCN3990 Tested FW: WLAN.HL.3.1-00784-QCAHLSWMTPLZ-1 Fixes: 1807da49733e ("ath10k: wmi: add management tx by reference support over wmi") Signed-off-by: Rakesh Pillai Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath10k/wmi-tlv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi-tlv.c b/drivers/net/wireless/ath/ath10k/wmi-tlv.c index 582fb11f648a..02709fc99034 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.c +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.c @@ -2840,8 +2840,10 @@ ath10k_wmi_tlv_op_gen_mgmt_tx_send(struct ath10k *ar, struct sk_buff *msdu, if ((ieee80211_is_action(hdr->frame_control) || ieee80211_is_deauth(hdr->frame_control) || ieee80211_is_disassoc(hdr->frame_control)) && - ieee80211_has_protected(hdr->frame_control)) + ieee80211_has_protected(hdr->frame_control)) { + skb_put(msdu, IEEE80211_CCMP_MIC_LEN); buf_len += IEEE80211_CCMP_MIC_LEN; + } buf_len = min_t(u32, buf_len, WMI_TLV_MGMT_TX_FRAME_MAX_LEN); buf_len = round_up(buf_len, 4); -- 2.20.1