]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mt76: mt7915: accept rx frames with non-standard VHT MCS10-11
authorFelix Fietkau <nbd@nbd.name>
Fri, 25 Mar 2022 20:14:26 +0000 (21:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:29:42 +0000 (10:29 +0200)
[ Upstream commit 77045a3740fa3d2325293cf8623899532b39303e ]

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/mt7915/mac.c

index e9e7efbf350d5ef7d8f4dc92f99d6a9ad9239838..a8df65cc115f39c2a8e3671ac2253c31db815512 100644 (file)
@@ -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: