Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp353018pxb; Wed, 8 Sep 2021 02:45:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgmr/C8bh3EqtPWkZ7Wf8w3GNdrGufE5z/OmnJ36m7N5NBD/xA4Xj2MdNWlDEixiIpS3kR X-Received: by 2002:a17:906:7cd8:: with SMTP id h24mr1325060ejp.185.1631094326803; Wed, 08 Sep 2021 02:45:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631094326; cv=none; d=google.com; s=arc-20160816; b=AOPgiFENnnJfkolU/W6tZjI8FJ1fsTfrjq2W797r0DapSwt88fqnpoCc8BtRqlpwPw G4xxWf1n3LWR12wGdHY4oeueFbndOlvdp4h4emflCEqgaf5S/v1n1Dg6bCc8W+nFlaP4 esG2g9cnwfhf9zAbxa+rgnfPuDTwT+7jqqGVBXpyIPrXgxN5bhMg/7SFWhhUa3JcoMsF 1or2ONOnZFaNNWLUh6maeH7MnelXVbsWunjAItaiETVxCE4t9dVwmM/lxu0cOSJiYVLe a/2OLNPoFRLoMqksKmLXRHZY8LqyO4MC+fWGmHQxGTRF1Y5dSNeGK982VQspkT76czKk 5fVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=TyHlxsPAI4gVQ7PuNVGAqSQfRlqCiFnBB1IAIK9SJtM=; b=wzEJEfQWb5nYgBDpPYt0hO793Bw0i6zmGPZFS8bFaPp75AVePyc7PaEO0jmB/PH1WX g9hQuuVqbldphRFvQjEiPCx5Ad0F5oJLDDhs5N84+BtPzkB1m8J37CJ08KHz7IewkZso 1ONKweAKbFFw5EBR7Xb8Hd1HmLKaBwjF5nK6tdzUJNYWA/0trP2mJXx/phq9adHOj34Z 7hRbL9xfK/Ej1lM1sZxBwzEgVy2cbJAIO2THfYsvd2cJQGpPpGSC9/HiIlN9WXw6+AW1 wqgBnAn7OLvYM8dP++hJXc0yWKBLKGwyAOWhQq0/XZ69/cTtUm5xZN7ffae59IgAfXew Wx0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs3si2376045ejc.368.2021.09.08.02.45.02; Wed, 08 Sep 2021 02:45:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348656AbhIHJoQ (ORCPT + 99 others); Wed, 8 Sep 2021 05:44:16 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:42742 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1348495AbhIHJoI (ORCPT ); Wed, 8 Sep 2021 05:44:08 -0400 X-UUID: f3cb94eae2b044c1a678e8cae7f1851c-20210908 X-UUID: f3cb94eae2b044c1a678e8cae7f1851c-20210908 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 849112090; Wed, 08 Sep 2021 17:42:56 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 8 Sep 2021 17:42:55 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 8 Sep 2021 17:42:55 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH v3 4/8] mt76: mt7915: fix sta_rec_wtbl tag len Date: Wed, 8 Sep 2021 17:41:40 +0800 Message-ID: <20210908094144.25641-4-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210908094144.25641-1-shayne.chen@mediatek.com> References: <20210908094144.25641-1-shayne.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fix tag len error for sta_rec_wtbl, which causes fw parsing error for the tags placed behind it. Fixes: e57b7901469f ("mt76: add mac80211 driver for MT7915 PCIe-based chipsets") Signed-off-by: Shayne Chen --- drivers/net/wireless/mediatek/mt76/mt7915/mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c index da40be8daa6e..fa4a98e59f77 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c @@ -607,7 +607,7 @@ mt7915_mcu_alloc_wtbl_req(struct mt7915_dev *dev, struct mt7915_sta *msta, } if (sta_hdr) - sta_hdr->len = cpu_to_le16(sizeof(hdr)); + le16_add_cpu(&sta_hdr->len, sizeof(hdr)); return skb_put_data(nskb, &hdr, sizeof(hdr)); } -- 2.25.1