Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2126302iof; Tue, 7 Jun 2022 20:36:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwE86yBsHAOx4eKnZ4ZhFpRiWeWNUYR22VQchnQbvmoPzGLq5z+Qe7mBNXrxRFEmTp8M5Pp X-Received: by 2002:a17:903:2344:b0:163:ce0a:4655 with SMTP id c4-20020a170903234400b00163ce0a4655mr32337554plh.122.1654659412172; Tue, 07 Jun 2022 20:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654659412; cv=none; d=google.com; s=arc-20160816; b=MAe217qB8Ru2WKxnErUE4SCtEfDvADzot13AG+zofeYpPAhbR21NTsdedFjhhcsdFa Wdtsa/3aUrK6L2+aQKvJ4FQ+Yx/u89hKE9h5O6uG4nALsLevqn4wuziQBg2mIrWl6HpQ 7fIlur8BK+RodxPekHHxdOd5nPBo20EammT630eOFG24sjPCM3mT4nlgl2W36pKbR1wt mO9/eIaZDoY22/xBrlBFxBUTaq0rrRTmb9sv8WiCBsvBonOre3WkTr9rxUj8ieCoNB3k W3A/CG/Su0oID4EHF/KoBSXF0RlTQX2loNDsMjNxceVxfESC62QOhJnbihp8aKGUzw7Z xw9Q== 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=cq21AhiPkTWptlPvrnGVMjLU9E3pRx6o7qTBREL81oM=; b=e5yIah3sbXtfbqgWxBQhQip53oc63RPLO7JtdUVPKJBqNgC/ew5+BgnIcAJRoAzEGy ZNiDasaXf4/0x1ZL45gAlv6crVXsAG9AEYnF+NltL2moWrqyd/xlEZnqiMWsjPT18xZ7 VBhk+NRoC4X6HtuKZQ6Oadod7B2cTCC6srvdFLgzhr5p01XobCNH6QJkDYJIuAOs44NH VN/YD7xFCjqSEITmhDjK3xDilTFq+L3no6C0/p7ykcFw5qAhKByEyrvAg4c7nQ5q8JQ6 Tsj6FE6VUGoQRV4aqqxKqNhsL0A491B21wTIlUTnhQv23WakQbDJJ+YTboniBjjgC9JR THNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="brgWiK/z"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id be5-20020a170902aa0500b00153b2d16545si24876883plb.333.2022.06.07.20.36.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 20:36:52 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="brgWiK/z"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 86A901AFAF3; Tue, 7 Jun 2022 19:55:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383543AbiFGWUJ (ORCPT + 99 others); Tue, 7 Jun 2022 18:20:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380113AbiFGVPZ (ORCPT ); Tue, 7 Jun 2022 17:15:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96E331567C8; Tue, 7 Jun 2022 11:54:43 -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 ams.source.kernel.org (Postfix) with ESMTPS id B1577B82182; Tue, 7 Jun 2022 18:54:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DB88C385A2; Tue, 7 Jun 2022 18:54:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628080; bh=VePB9HYfx5w6HP34ukuWlxDdJC0cAZBd+ZDzUXQyhfQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=brgWiK/zyewv/NMhw1Onqr8nYCAJDzylnvhEUSn5L7XPOxzpMJE1HFgJprmBhsUgO tzFdMZdvUXtCNdMSwMTt2JBboAlfKQqNn734wnMXl/+4joJPSQO2+ZyHOJTxubmQtT CTubgiPQpe8G18jd8ZzUVjGTEWZ/qhMhdtuJaqds= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Felix Fietkau , Sasha Levin Subject: [PATCH 5.18 159/879] mt76: mt7915: accept rx frames with non-standard VHT MCS10-11 Date: Tue, 7 Jun 2022 18:54:37 +0200 Message-Id: <20220607165007.320901101@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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=-3.1 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=unavailable 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: Felix Fietkau [ Upstream commit 77045a3740fa3d2325293cf8623899532b39303e ] The hardware receives them properly, they should not be dropped Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c index e9e7efbf350d..a8df65cc115f 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c @@ -521,7 +521,7 @@ mt7915_mac_fill_rx_rate(struct mt7915_dev *dev, status->encoding = RX_ENC_VHT; if (gi) status->enc_flags |= RX_ENC_FLAG_SHORT_GI; - if (i > 9) + if (i > 11) return -EINVAL; break; case MT_PHY_TYPE_HE_MU: -- 2.35.1