Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp786361pxb; Wed, 1 Sep 2021 09:50:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfVZllhor6LSWG6T+y/87yjfD+uvU46hBtIOHYQY9eeqttFZ1ekC3bG0ktnaBoYaq0QbAM X-Received: by 2002:a05:6602:130c:: with SMTP id h12mr461066iov.132.1630515049465; Wed, 01 Sep 2021 09:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630515049; cv=none; d=google.com; s=arc-20160816; b=athI4dWcgGWWVj9xgp3YZn5YLrrTlFB3YgQ8SP5zYhCVcUvy+fmbRnJtGZjAgarCXQ FpVPyOCWZ7RwdWSw+TY9/OxHWixzndiDPw+uj0oHOB7pZRLiePVLHRam+crV2Oa5dG7G Z+kOFz8Ba1VCY5eqTvdVUSftfrqhfNTw7/qDFq3DcUx4+OSXxGorjKN/nd/qgJaO/e3M 4xAqWLYeFK0FDSbdfmXn6IMDtFwk5OncV8+9wq4AAFgCR9uLIj+/ww8NvNGeoG9utHVP qgYLMIc3olAhMCotoBucM3vKQh/QbIJCqMd3QRV4Q5LduOtlpv2QfVDmAVKTd/A/tfHm Mrsw== 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=m8v01pjVgvHiSvuVFKIhvJrqoBcSkksaFkXN9JzBadk=; b=hFYjd9JMCzlM01o4eJy2DzXQRARUn3N/IRyIbvnu6fREY8ePjl/u4MrcN451tjW44o Yc6jTLNWn5FXeHbDehdDxEyxw54Lxc5CF4Lk+YCokYVN+SkaXdiNEXsdSoGTKCpsAcrD UGAIk2M8U9/B/tjzE54Y9Av2gh1fmaQYlN6jR1ZMneRKxxmPt7qK3ZXvGMnEfyTtA+0p RDh1L5NTF1Tox2PRiM2MvAU0SFOU4QKVzIZPuFRunSjHyNxPn/bx8Z2UaGgW0PqFL05p Sbx6y73DNSIu8YIhyEPUR8Dg/NBLUbGu2XL/FWLC9iGqCpQ+ps36EZCagwWQ8iv455rE eMQQ== 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 h25si66599ioj.39.2021.09.01.09.50.15; Wed, 01 Sep 2021 09:50:49 -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 S231419AbhIAQvC (ORCPT + 99 others); Wed, 1 Sep 2021 12:51:02 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:54498 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1344004AbhIAQvC (ORCPT ); Wed, 1 Sep 2021 12:51:02 -0400 X-UUID: 9f8a8248f194407d9e87d74dce25b1d7-20210902 X-UUID: 9f8a8248f194407d9e87d74dce25b1d7-20210902 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2082156816; Thu, 02 Sep 2021 00:50:01 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 2 Sep 2021 00:50:00 +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; Thu, 2 Sep 2021 00:50:00 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH 4/5] mt76: mt7915: fix sta_rec_wtbl tag len Date: Thu, 2 Sep 2021 00:49:47 +0800 Message-ID: <20210901164948.28149-4-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210901164948.28149-1-shayne.chen@mediatek.com> References: <20210901164948.28149-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 ca3523101f3a..9c29b1567d89 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