From c13032ba4721ce4b7d4857a660e9d6caa4547fd2 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 12 Aug 2024 17:56:34 +0200 Subject: [PATCH] wifi: mt76: mt7915: always query station rx rate from firmware When offloading is enabled, the software rx path may not have the latest rate information. Signed-off-by: Felix Fietkau --- mt7915/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mt7915/main.c b/mt7915/main.c index 2624edbb..896bbcc6 100644 --- a/mt7915/main.c +++ b/mt7915/main.c @@ -1089,8 +1089,7 @@ static void mt7915_sta_statistics(struct ieee80211_hw *hw, struct rate_info *txrate = &msta->wcid.rate; struct rate_info rxrate = {}; - if (is_mt7915(&phy->dev->mt76) && - !mt7915_mcu_get_rx_rate(phy, vif, sta, &rxrate)) { + if (!mt7915_mcu_get_rx_rate(phy, vif, sta, &rxrate)) { sinfo->rxrate = rxrate; sinfo->filled |= BIT_ULL(NL80211_STA_INFO_RX_BITRATE); }