Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp947454pxb; Wed, 6 Apr 2022 05:04:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeutu3JKN5MPj1dgVTZst2q8vZlDcmx/RQhAOr21rEyl9CyUiaaC80kqlddzEGRhu8ImS6 X-Received: by 2002:a63:ae03:0:b0:386:2b5d:dd7d with SMTP id q3-20020a63ae03000000b003862b5ddd7dmr6627741pgf.332.1649246683006; Wed, 06 Apr 2022 05:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649246683; cv=none; d=google.com; s=arc-20160816; b=Qu0K4gOzBqI4tgRDlnKE0iap/t4bLPMTAOGiX40LJWVsVZzLXAHMNRjVVkw8xn700d unWdNqgtQwFNNxd4k8Kk/1L8AHIP3+vdeYO6DQvs7ob+BT0hUpXXWZdcdXbYZSfPoi/6 mcsj19Vs5qE99NIAJEPNnf85tapdqUsjdsYx9e91S7nZsVX1icaYuRg+oLYD7FNu01JX MG4GtBgYL8FmZnzvyhTImzvCvm7eYX1J0txOzHbdZPE3iUzK+dVPll0jqIZKqiFZ2TXe nAVfS7eA2jKZT+l/u1iYnuQ/qbUa+cSw4vneRriq9wdLCtmX/6VrE1wybJuVzHc4ckYP RGeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZYeMYH2jqzyKYLVcHIrTfQ773kXFea2vOJs2sFyuppk=; b=B8QZx29GKNFGmU9CL50casaVUvk6Zo76Uo7+/Y9lJGgwMZ667S6gVsKICDuaH0mkxr PzILJbyj0kQl4EQ/t5dzaVBMujNWU51Zy0zOobu8Teej3kgNsdRrv84R1nlpoM7+qiwm e2nT++8awTGXeKYhhUlf1Yj0xdp2cnhfPFKQ03B5R9MyDbyPap/scbiImWazkCdOCetf Iq09St8sEt36/5PHTPPS2TDPB+22uCVvMxxw4Jbzo1xeXiGTSv+qQNNGF8TIppSdC0f4 P3rPbQmdaPHRWUeLFPQo0YbQzaogmhIj5OJNduyYNmRcJQGI+eKiBTQrSfEP3/o8ADGa 9M5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Xzl2g0MT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b9-20020a656689000000b003816043efbesi15243412pgw.435.2022.04.06.05.04.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:04:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Xzl2g0MT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ECE6D47D932; Wed, 6 Apr 2022 03:32:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1578225AbiDEXTH (ORCPT + 99 others); Tue, 5 Apr 2022 19:19:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348921AbiDEJsr (ORCPT ); Tue, 5 Apr 2022 05:48:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45FB5EE4ED; Tue, 5 Apr 2022 02:37:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D5F6061368; Tue, 5 Apr 2022 09:37:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5452C385A2; Tue, 5 Apr 2022 09:37:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151452; bh=PcI19hqCNDQNOO07Q9W/VnngPzZoICRke9OEaBIjGf0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xzl2g0MTsShWMOO67zbjV3v7wJyONiMqkWi+cr7ZRHvSpkQXGayTgAk/ZeTgBUVo5 39vytaA1OcNmfiCBtp9rP7Ps4fKxw/LkmjgX+XtsyjYpJHCU1hQhzQNTA5gxu50Qk+ veDnk3gxMWOcE/lUJD0CVQwBng37TvergU61kfz8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lorenzo Bianconi , Felix Fietkau , Sasha Levin Subject: [PATCH 5.15 421/913] mt76: connac: fix sta_rec_wtbl tag len Date: Tue, 5 Apr 2022 09:24:43 +0200 Message-Id: <20220405070352.465463203@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lorenzo Bianconi [ Upstream commit 74c337ec0905d99111fc63a15f2e0784b9ed5503 ] Similar to mt7915 driver, fix tag len error for sta_rec_wtbl, which causes fw parsing error for the tags placed behind it. Fixes: d0e274af2f2e4 ("mt76: mt76_connac: create mcu library") Signed-off-by: Lorenzo Bianconi Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c index d25b50e76932..017bd59c4ea8 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c @@ -295,7 +295,7 @@ mt76_connac_mcu_alloc_wtbl_req(struct mt76_dev *dev, struct mt76_wcid *wcid, } 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.34.1