From: Felix Fietkau Date: Fri, 25 Mar 2022 20:14:26 +0000 (+0100) Subject: mt76: mt7915: accept rx frames with non-standard VHT MCS10-11 X-Git-Tag: for-5.19/block-exec-2022-06-02~49^2~59^2~20^2~46 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=77045a3740fa3d2325293cf8623899532b39303e;p=linux-2.6-block.git mt76: mt7915: accept rx frames with non-standard VHT MCS10-11 The hardware receives them properly, they should not be dropped Signed-off-by: Felix Fietkau --- diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c index bab70cf981bb..957895fa73c0 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: