Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2754625pxb; Mon, 6 Sep 2021 04:48:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrvmGc+sjbbH+51Qp28YhgMBZ936sXsvlBy5rXyRB+tZEhExueOe0m4fSEzYiIaBKXG6A3 X-Received: by 2002:a02:9669:: with SMTP id c96mr10389436jai.128.1630928880099; Mon, 06 Sep 2021 04:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630928880; cv=none; d=google.com; s=arc-20160816; b=H7DuZtkugOCLayJPkJ+9xyeuWdp/Nj0M9x7hkMDMrAHW6fE4yql7/k6R2wwnnMMbtE GcwBF2e5S2hqGtWTyns2Ms1Xe05KNeeeDkzpngKuq8QUtsZeqsC2jXbfzA8xOPEu+vm+ g9aWD/7G/Qzwpfk1SmPEo5FupcbcGdXRGpd3wcsMXD1TBMnmuR3zHUbWo3O3W9kffa0h yCIocKjKUypasHaegOT2dLr2lY8QzoLyhObiq2tbxhnDJhjpkze5SYlblpClJnLRN6nJ hWJ3DNZ16YKmzaq7m22fryNLRLaUzIb8mV4U9RV+4fyhKzrNYnxR0Fk5uFJ4muPY9pLD EtWg== 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=iyf1pZ1P88mUa38UdDGw4mkXnS1pG22/3jT4U1aaIZfgd1sTbYn4HqTtmi4SN0WCs6 p6pQSD2W4Rih0SwCsKSt/hV9XEqqTCD68ZKiQ1ds9XkSZwnmwCpYe+VzCnRCAA6OoWGE b0iTRku6I/MYp76e358x3BC5mw484AOFnJ53Dmsl6vdE0DKwmIVLzT8aigm81T35kxHR BK1255Yq0p/20zofP2j1NJQ1mkiHmDVQFgSflghEZQY6UXGmUnrOaY2Pnm6IGrjtuihs Mw9i5a9FnbUoMwtjOmc/VYSIl0LD5RZEYpn3U9B9s2BmubQczX2uhyRoXECDqkdAfqV5 AwEA== 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 q7si9016323ilu.111.2021.09.06.04.47.48; Mon, 06 Sep 2021 04:48: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 S240647AbhIFLqP (ORCPT + 99 others); Mon, 6 Sep 2021 07:46:15 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:39152 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S241281AbhIFLqO (ORCPT ); Mon, 6 Sep 2021 07:46:14 -0400 X-UUID: 2f807ec355f74bbaabbcaac33c73d178-20210906 X-UUID: 2f807ec355f74bbaabbcaac33c73d178-20210906 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 236502573; Mon, 06 Sep 2021 19:45:07 +0800 Received: from mtkmbs10n1.mediatek.inc (172.21.101.34) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 6 Sep 2021 19:45:06 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Mon, 6 Sep 2021 19:45:05 +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; Mon, 6 Sep 2021 19:45:05 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , "Evelyn Tsai" , linux-mediatek , Shayne Chen Subject: [PATCH v2 4/8] mt76: mt7915: fix sta_rec_wtbl tag len Date: Mon, 6 Sep 2021 19:44:19 +0800 Message-ID: <20210906114423.13646-4-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210906114423.13646-1-shayne.chen@mediatek.com> References: <20210906114423.13646-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