diff --git a/mt7915/mcu.c b/mt7915/mcu.c index f3ace0a3..e555f3c3 100644 --- a/mt7915/mcu.c +++ b/mt7915/mcu.c @@ -3553,7 +3553,9 @@ int mt7915_mcu_get_rx_rate(struct mt7915_phy *phy, struct ieee80211_vif *vif, break; case MT_PHY_TYPE_HT: case MT_PHY_TYPE_HT_GF: - rate->mcs += (rate->nss - 1) * 8; + if (rate->mcs > 31) + return -EINVAL; + flags |= RATE_INFO_FLAGS_MCS; if (res->gi)