Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2768884pxb; Mon, 18 Oct 2021 01:08:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwr624U6OaXcwgCY99AmZYhPJhXW8VFHXmq+SKds9HgKN6wfjm2mj9BZmbx7G9XXcFOr+kW X-Received: by 2002:a05:6402:848:: with SMTP id b8mr42858964edz.328.1634544527196; Mon, 18 Oct 2021 01:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634544527; cv=none; d=google.com; s=arc-20160816; b=OphdIRq8JSKTropIBit8mv9+XLmonaPmqI9wBJIjXK82g5DBTrst5EZGm7+sbioMKZ UXFtEZn9n74t0n0QkfHLYTWCEMSQD8Lhffmqnj+tfqNKLZ02/81GjKyxvOpGUKm9Co4q SmrjlCroP0sAjCyHr725Hi37Ytf9mvACcUfsTP3TMFXAbgs77LKgadaee1/Y8D4ELMwZ 9xyrmVKyaWgV9E9YEteflSynnvTF5aWUt/i3/f73q3WXQj2w5oJCah2pyLcP3S12axgz eKIbSlzSA0RuUuxZMPZ8KgRHMj/ZB+STayGFwOHKqleDwPZP+hkNd4mSrwIoRHyOcQXr nC9w== 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=AGAmal0OE6SH7LHbV42e6zx7f2Ey+AAPL80YVCzJ6Eo=; b=pEswcVV0ZAXnbABy/zzixT7xzwXLVA2zdD6PALTQfhABrQlH5E+KWFnj5H1NHEncmT dxP4hnbwruCbpGAAjc6s62fdvMbia+KEPVO/vBd7zyhYkJH3P9HSCfGNeP71I25uDKm1 gXgpR44RLBuj4yBxWdmwElF9PfmsLdQSzHeRzXdJ1gR5fnFfs4ujiP97FTJG9wnLvLUD +1egwfpw/ugBMXESsMWyTtEdRIOov8+rsScJGC19svq2R8EBww5kd2w8z9rP+uDMSs95 ybtD6i8KD6WLlNMTIzXwfkcmB9LbnGFa6S6IJQ/l+ynGnvUYu6Hw3OByb/iwT5n1rHR0 JmnQ== 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 nb32si30430595ejc.457.2021.10.18.01.08.32; Mon, 18 Oct 2021 01:08:47 -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 S231240AbhJRIKf (ORCPT + 64 others); Mon, 18 Oct 2021 04:10:35 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:52590 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231176AbhJRIKe (ORCPT ); Mon, 18 Oct 2021 04:10:34 -0400 X-UUID: 82bf0eeca859416ca27f854630b4d340-20211018 X-UUID: 82bf0eeca859416ca27f854630b4d340-20211018 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1026044695; Mon, 18 Oct 2021 16:08:19 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 18 Oct 2021 16:08:19 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 18 Oct 2021 16:08:19 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH v7 4/8] mt76: mt7915: fix sta_rec_wtbl tag len Date: Mon, 18 Oct 2021 16:07:02 +0800 Message-ID: <20211018080706.11401-4-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211018080706.11401-1-shayne.chen@mediatek.com> References: <20211018080706.11401-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 d65d428e6845..4e4906d9d374 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.29.2