Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp99393pxb; Fri, 15 Oct 2021 01:18:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc8cyV96fejaHW8Jv2tXimyTUy3xv6MHOX4hCsRQjVyhOKyS5hb/L2OO4iFtP+skuvm+Hh X-Received: by 2002:a17:902:ab17:b0:13e:b2e0:58b with SMTP id ik23-20020a170902ab1700b0013eb2e0058bmr9911562plb.9.1634285900275; Fri, 15 Oct 2021 01:18:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634285900; cv=none; d=google.com; s=arc-20160816; b=eQs8kL6rZys5vJZrTIrJ3yeVgVP9GCCocaDgmhh2i7AcZT++eg6b1v+TacWMrlvE2T CFuv3kXhPESvp1O5QIy0avNjA20zsfO5DpYFmcMNeQw2Ood0eapZB3kYMX+2/lpOV97f 7XSDMgO1L5hMvmL98umJ8Wctxp1DFrFvwckGvQxNh08LVGp4fpRFeQ+KrTiU/D0frRaP cdckF+6jHsPHx2h2OGpBwxTZbBMy4qwjvjQA0PqcDvp+y6S47Sb9G1MIWa8WrrhpeCpc 4iVqOl4fggaONYPR/3KXJn8whsHPpfsYWm7gTidqnHRiqNUDABAYoREtoNADtCo5IsC6 pORQ== 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=5b7qJ0fp89A9FjQ7zzcL3VnEW6h5VUCHVL2CC32hFsU=; b=GwhRbzmFYw7CZVr/6YbOo629N+5nmzymY7PzoVQs7NdFWISycEMPJ53+U1BZubt6ne 0MXR/e/GhR2NUsDGOSowjR9UFsC7wOdZ94HQgbKUKiO8UdPxPC+qo6avMR8zPp2wQyVn MsfDtbqm88yB0XXUU0jkCbOXUtmufs16kdcH88aMI10M48Qm+EUT9T8HIwUmFCYouOxF inzRNy0cjaGuM1taVN4kP1Hum9NrYylDkoxNH8NlBatbbWEoiVKN+kgOxSCn7zxRw01P v/zuI7ImzV7Mfzi5rWbsn2S3IiA37OA2nSRyBZCJZDiZa/aNaRdi6d+cYrUnB0lTFMnW ZFbg== 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 y68si9109133pgy.100.2021.10.15.01.17.41; Fri, 15 Oct 2021 01:18:20 -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 S234256AbhJODc5 (ORCPT + 63 others); Thu, 14 Oct 2021 23:32:57 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:58054 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234152AbhJODcu (ORCPT ); Thu, 14 Oct 2021 23:32:50 -0400 X-UUID: ba338227449c4dd5a646c88f437b7dd0-20211015 X-UUID: ba338227449c4dd5a646c88f437b7dd0-20211015 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1637486448; Fri, 15 Oct 2021 11:30:40 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 15 Oct 2021 11:30:39 +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; Fri, 15 Oct 2021 11:30:39 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH v6 4/8] mt76: mt7915: fix sta_rec_wtbl tag len Date: Fri, 15 Oct 2021 11:29:34 +0800 Message-ID: <20211015032938.7493-4-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211015032938.7493-1-shayne.chen@mediatek.com> References: <20211015032938.7493-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 --- v6: remove line break of fix tag --- 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 926fd92..a82a526 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c @@ -622,7 +622,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