mt76: mt7921: accept rx frames with non-standard VHT MCS10-11
authorFelix Fietkau <nbd@nbd.name>
Fri, 25 Mar 2022 20:15:15 +0000 (21:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:37 +0000 (10:22 +0200)
[ Upstream commit 3128ea016965ce9f91ddf4e1dd944724462d1698 ]

The hardware receives them properly, they should not be dropped

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7921/mac.c

index c093920a597d1cdf3ec89e049b66a2dadb57e546..5024ddf07cbca57ade07c535d555f5706b912404 100644 (file)
@@ -563,7 +563,7 @@ int 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: