From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D273F2609FD; Wed, 20 May 2026 16:30:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779294615; cv=none; b=efIQYUfGb+X6VdeGni6lK8zuqoIu0vyELl25y4VpDaFyx3/FpEjZzU/h02smIL9XbS8TiQVvbObqz2JPWOqGrG9j26pk2TabiMdlPxmf2kvgt26oy2IhKgWPMlxux5enCp1r6TumufmJ9K9sxC089MimdRPNkNdRCaUJg10HWUI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779294615; c=relaxed/simple; bh=dLci0VdtllllAislr6biZvpHhZ86/WIgd2B1C6aTtvc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=maiDx36OpLQ9IjKYU7kSxMXIuRaX8u0go3aldiY2tueZQlNHCsJmilR2JXoHqDM9iwSHvrMGyIXxje5QQbuHTYLBjGEuXtR6TJX8o2acF03xNhkPFKXc2z8+Agyw6P32enmnOV5qCHl4ZDIRj5eCrx9mNOYA0TD5A/gBwuR/gjs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=k7K0OfWX; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="k7K0OfWX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 435F61F000E9; Wed, 20 May 2026 16:30:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779294613; bh=LJN3FFHqk0IrJiEPVmv9Mt+s+13zZPVqdvxylIe0bv8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=k7K0OfWXvLLHik12mXnfSHK+6xWc5Pd1YoQ1SQ3lSxH8uSYTZotCJBWdRkddfnOvC zCE5G7+RrVSgpxbvjOMuV79el2hmmcmDvz8zwLEBVKZRCNvIwskZbWE1H6sAvqe44c YrZKNt1ORIF9oYeyc3c1SgJUREfIFHOmhBXkBOPw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alok Tiwari , AngeloGioacchino Del Regno , Felix Fietkau , Sasha Levin Subject: [PATCH 7.0 0106/1146] wifi: mt76: mt7996: fix FCS error flag check in RX descriptor Date: Wed, 20 May 2026 18:05:56 +0200 Message-ID: <20260520162150.739398595@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162148.390695140@linuxfoundation.org> References: <20260520162148.390695140@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alok Tiwari [ Upstream commit d8db56142e531f060c938fa0b5175ed6c8cabb11 ] The mt7996 driver currently checks the MT_RXD3_NORMAL_FCS_ERR bit in rxd1 whereas other Connac3-based drivers(mt7925) correctly check this bit in rxd3. Since the MT_RXD3_NORMAL_FCS_ERR bit is defined in the fourth RX descriptor word (rxd3), update mt7996 to use the proper descriptor field. This change aligns mt7996 with mt7925 and the rest of the Connac3 family. Fixes: 98686cd21624 ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices") Signed-off-by: Alok Tiwari Reviewed-by: AngeloGioacchino Del Regno Link: https://patch.msgid.link/20251013090826.753992-1-alok.a.tiwari@oracle.com Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7996/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/mac.c b/drivers/net/wireless/mediatek/mt76/mt7996/mac.c index d6ef2f8003269..ac7f2343076b1 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7996/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7996/mac.c @@ -527,7 +527,7 @@ mt7996_mac_fill_rx(struct mt7996_dev *dev, enum mt76_rxq_id q, !(csum_status & (BIT(0) | BIT(2) | BIT(3)))) skb->ip_summed = CHECKSUM_UNNECESSARY; - if (rxd1 & MT_RXD3_NORMAL_FCS_ERR) + if (rxd3 & MT_RXD3_NORMAL_FCS_ERR) status->flag |= RX_FLAG_FAILED_FCS_CRC; if (rxd1 & MT_RXD1_NORMAL_TKIP_MIC_ERR) -- 2.53.0