]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: mt76: mt7915: always query station rx rate from firmware
authorFelix Fietkau <nbd@nbd.name>
Tue, 27 Aug 2024 09:30:09 +0000 (11:30 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 6 Sep 2024 12:23:07 +0000 (14:23 +0200)
When offloading is enabled, the software rx path may not have the latest
rate information.

Link: https://patch.msgid.link/20240827093011.18621-22-nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/main.c

index db2cf6e11cf335396f9a8c978fe2b33b3d224776..d75e8dea1fbdc82198dd9f994414f63d44d2067b 100644 (file)
@@ -1094,8 +1094,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);
        }