Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1071963pxb; Fri, 1 Oct 2021 02:54:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDS+/vhV/7bOrjoXmVPkTz5PhItzfRoxNnQ7mt0wIAgD+igFEp89x2Np3jU571DABqfcjl X-Received: by 2002:a17:90b:3b84:: with SMTP id pc4mr12149555pjb.220.1633082076720; Fri, 01 Oct 2021 02:54:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633082076; cv=none; d=google.com; s=arc-20160816; b=QW7HbFq1+KG3zYTYSwk1IxZXNVV9ItKuEIulS4s4B/ZlHbSzqi7aKHFd0ob5s6gv3O I9z5JspQaeOPZ0VngRLEjFSnHvCih1ULhQz9BbL7nPy7B4XYqgEFKDKAoeWbz2u87z3D tB5xw1RcKkzCYCiuxMGYtZj6nf+y1hhqM2GWpUFbySNd/MhunSVOS++bb/IRZF0+T/wi IwiKBhsT86eoOQb6ihI+9PIV11JekCrDqgreZEJTuQeeg2qncLCE/EsXggPAYBxetdWY XxIv5Ik3V0WY8nmL7jRorE9oyyMk82iW1inyONnf7bMGIqSQ+wjJlPdjnfKjtZVVOcs8 nceQ== 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=pexg8FofGryCXnnNm+EpUN96Ecwq50Lzx3WXmDYzeFg=; b=n13ceEvE8e7BJPfc/2cW8rJamlXYRepWTydUdmRtplq/Bp5izcknwI+0F2BD6qI1cG VIEL+FYEwhrO7BnaTqXgahi8h20lK8Fk81YiqFraT33XZ5UW6663XgGLv/8UMMqmXWdU GHyqgkby+ePDJWYNqvXKoXP4p80/rgo7peJsYEB0H10hNKKzJ9JKTUT37VGlYOAOl07h YMkiqgtubg7C3Ux7Q1p889lF8gBlMa3CeY1z9noX/r0uM7rR7QMB5H5ebCqpJcwYt2ZJ KH1hM0M2KBsf+flZ0SaM4YIZyVdGhXxyaV8YP8px+YPKS+w2DKehYb0vG+D3Ur8PyPa3 VbWg== 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 o18si6619217pgv.442.2021.10.01.02.54.26; Fri, 01 Oct 2021 02:54:36 -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 S1353251AbhJAJzv (ORCPT + 77 others); Fri, 1 Oct 2021 05:55:51 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:34194 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1353148AbhJAJzs (ORCPT ); Fri, 1 Oct 2021 05:55:48 -0400 X-UUID: 9d5397a52bcf43cc8d0620dfbfe3ee73-20211001 X-UUID: 9d5397a52bcf43cc8d0620dfbfe3ee73-20211001 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 2123307048; Fri, 01 Oct 2021 17:54:02 +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, 1 Oct 2021 17:54:01 +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, 1 Oct 2021 17:54:01 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH v5 4/8] mt76: mt7915: fix sta_rec_wtbl tag len Date: Fri, 1 Oct 2021 17:53:51 +0800 Message-ID: <20211001095355.10598-4-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211001095355.10598-1-shayne.chen@mediatek.com> References: <20211001095355.10598-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 6c1f1674feb5..00c10d6de7cf 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c @@ -621,7 +621,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