Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp312795pxb; Thu, 9 Sep 2021 01:17:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkfwkOz6TZzTnmvrA0iYgkHZE+0jhe3PCZcnAYpHdxQDqxDg8oyGBTuJvgM75wZtj+ChLM X-Received: by 2002:a05:6602:2ac7:: with SMTP id m7mr1652246iov.66.1631175420673; Thu, 09 Sep 2021 01:17:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631175420; cv=none; d=google.com; s=arc-20160816; b=qBFnR0ru88ESTBQ/OeOzm8E1U4FPa3exPkYsJX9xbM656w23FmLXS9Pl0z0d6qdpgT DZ1+CZh/dEiik2alJt5vRCMYbmSlcz8ozw6uxVPAsIY/+tPzNPD9vRwnScOWCI42P63Z At5ljlRnMcHaPGoXPthJ0hzxaMAumSGM6X5dn8QFcFRR/mJ6V+uzoJA9HklrSEBaK4xh zTY6VGtOrdAdYcsWDsY+GQIao63+GATZVCIvtHpA6K7f6STlXisex0awgqbzokCke3BI 5ioVcHgSXGJM1j1LTY632xshgwWJQZbu+SLVBh0akANcR7IVuz9SAWyPposScFHcoHFL +8UQ== 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=pOG32Fd8wCmjXXrAK2RnNXB2wrQ0VF+fzTQHlesB6jQnzz/y0A7K2loaMKhN4s16oM asOAGfLry1S1nrPEfl+UD6JhFuyojJ/ege23NGOBOfHyhrqkt7fEE/WHY1RY3RPOZWYu wHr01ufPVwwwo1P8hLSWopxQWayBeo0cZc4tuwV8S8nKYGZe6/CyhoMgqtDYHWVmcZKf 0J0jToxvqqObHf5c9BsdHDKWQI/0HE+5w9oKvC9bZs8nSIk14rLB/BhJU8xr3E3QiHkE tVpzoN9hxgw6Hr60NQIr4QtxTDDSJb5rSr1Xl70MOD744yszyYI2lEk6+M8kwB/y3K4F sdvQ== 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 m43si1150668jav.131.2021.09.09.01.16.48; Thu, 09 Sep 2021 01:17:00 -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 S231339AbhIIIQi (ORCPT + 99 others); Thu, 9 Sep 2021 04:16:38 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:44870 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231426AbhIIIQh (ORCPT ); Thu, 9 Sep 2021 04:16:37 -0400 X-UUID: e4fbee25def34d418faeac10a35e4490-20210909 X-UUID: e4fbee25def34d418faeac10a35e4490-20210909 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 116656672; Thu, 09 Sep 2021 16:15:26 +0800 Received: from mtkexhb02.mediatek.inc (172.21.101.103) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 9 Sep 2021 16:15:25 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkexhb02.mediatek.inc (172.21.101.103) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 9 Sep 2021 16:15:18 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 9 Sep 2021 16:15:18 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , "Evelyn Tsai" , linux-mediatek , Shayne Chen Subject: [PATCH v4 4/8] mt76: mt7915: fix sta_rec_wtbl tag len Date: Thu, 9 Sep 2021 16:15:08 +0800 Message-ID: <20210909081512.5037-4-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210909081512.5037-1-shayne.chen@mediatek.com> References: <20210909081512.5037-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