From ca1b57e9971abc251c8912aae0bf6504bd4cfa90 Mon Sep 17 00:00:00 2001 From: Ryder Lee Date: Fri, 16 Jul 2021 14:51:04 +0800 Subject: [PATCH] mt76: mt7915: add a missing HT flag for GI parsing The previous commit missed a HT flag. Fixes: 14b220c07188 ("mt76: mt7915: report tx rate directly from tx status") Signed-off-by: Ryder Lee Signed-off-by: Felix Fietkau --- mt7915/mac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mt7915/mac.c b/mt7915/mac.c index b5a3fd96..f8a81ea9 100644 --- a/mt7915/mac.c +++ b/mt7915/mac.c @@ -205,7 +205,8 @@ static void mt7915_mac_sta_poll(struct mt7915_dev *dev) u8 offs = 24 + 2 * bw; rate->he_gi = (val & (0x3 << offs)) >> offs; - } else if (rate->flags & RATE_INFO_FLAGS_VHT_MCS) { + } else if (rate->flags & + (RATE_INFO_FLAGS_VHT_MCS | RATE_INFO_FLAGS_MCS)) { if (val & BIT(12 + bw)) rate->flags |= RATE_INFO_FLAGS_SHORT_GI; else