Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2167843iof; Tue, 7 Jun 2022 22:00:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6C8710lPN1fnkV9f8yF9FhMH/cI7c9T+YkIXDyxGhP1ZcKeAUXSenCsIKWeeZ3P7La+uK X-Received: by 2002:a63:480c:0:b0:3fa:7277:bf34 with SMTP id v12-20020a63480c000000b003fa7277bf34mr28623057pga.35.1654664447105; Tue, 07 Jun 2022 22:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654664447; cv=none; d=google.com; s=arc-20160816; b=PSJpAbsUW922WhUj/IDJjd9Av6IwT6nUZRMeFT28G2RH4rEXNDn8s4wAhf8eb0drc3 SEfyCO4myUrONxiw+AhN5MBEt0j1OmulLenc1pv2fmmboT5hMtFUOKQdqAzAH5QockFB 4hKH8xJ4tFQWzzODL1SF54GSU3uWS1+yKxx4Yt23PsghgYzDQ5wCGO1G/wQP4aibnMza dDXV4s6sZ8KBJhoGQSjlkiIGt5v5NOQCDeXmouFtY9L0fhnqzVWPodWVHheQYz0HBpKv 7I1KpMdVmI1f9SOWIa4w0XR7Ijm6V+m++M+Wh5kNTbj8XlX6ceeVW41UGygAD5PlLMf+ odsA== 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=z6bd0/rVrQM6bsBt4o11+ydzAOiaL5Tqn91ampIZFxY=; b=WxAKiNV2jfAAV5jILMOxLOFycY4Fgf3wANKNCHW/UR8sgfpOnfxKsTLx+jtUpnRPFH L8Z3MdlTKUNkW0vPrzg7p7kPA35PPIzsCrazkBVkfUH9/JOa/ti8z3R0CLY3Xq/0hWMJ zxid/TRJ2E7TxXIs8bs/HYsBDbJU8gmZve3oVLuJsrWBfefAfNdmaJmRA/RaOdGQ+OF4 Gs8DzOuUQB/vIALZHm7gLBRF3cAKmXCbH4V9X+QrjS9/SortBZw0+W66kd7/J9lqtQP7 p267dM0TfiPTW81w+q3cIh0qJwvNwOtPufltfanrkxu9eKSlZDina/inCLY2Fgo4DXZl xU4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aq56V5LN; 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 u11-20020a170902e80b00b0015d2ca1afcfsi30742920plg.89.2022.06.07.22.00.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:00:47 -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=aq56V5LN; 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 AAD95D9216; Tue, 7 Jun 2022 21:29:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384768AbiFGWUr (ORCPT + 99 others); Tue, 7 Jun 2022 18:20:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380400AbiFGVQR (ORCPT ); Tue, 7 Jun 2022 17:16:17 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78E0F1567F3; Tue, 7 Jun 2022 11:54:46 -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 sin.source.kernel.org (Postfix) with ESMTPS id DAD29CE244E; Tue, 7 Jun 2022 18:54:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1F46C34115; Tue, 7 Jun 2022 18:54:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628083; bh=T278upJVbk/em8SEvypNZ1SQJbk0LgQu1PtRWWC3Fk8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aq56V5LN1JLAmFlKVX7YvR33ibJrgLoLz6V4iSmiDQQ9V5uHv79lueQJ4vU5rC0k4 F3AWDlT7GMSJ8xIWrX7/895M0J118aU3Q+Hg28sbbPU4mhf8n309Lf4eSY6K653DrE lPMky9fRScAqE4obbCaWFxP5KYR4MuyaLesXoYhs= 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 160/879] mt76: mt7921: accept rx frames with non-standard VHT MCS10-11 Date: Tue, 7 Jun 2022 18:54:38 +0200 Message-Id: <20220607165007.350514925@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 3128ea016965ce9f91ddf4e1dd944724462d1698 ] 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/mt7921/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/mac.c b/drivers/net/wireless/mediatek/mt76/mt7921/mac.c index 233998ca4857..f34070ca7bbe 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/mac.c @@ -696,7 +696,7 @@ mt7921_mac_fill_rx(struct mt7921_dev *dev, struct sk_buff *skb) status->nss = FIELD_GET(MT_PRXV_NSTS, v0) + 1; status->encoding = RX_ENC_VHT; - if (i > 9) + if (i > 11) return -EINVAL; break; case MT_PHY_TYPE_HE_MU: -- 2.35.1