Commit 41bc5440 authored by Ryder Lee's avatar Ryder Lee Committed by Felix Fietkau
Browse files

wifi: mt76: mt7915: drop return in mt7915_sta_statistics



Avoid blocking other statistics sinfo->filled when txrate is
unavailable.

Signed-off-by: default avatarRyder Lee <ryder.lee@mediatek.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent e890c3cf
Loading
Loading
Loading
Loading
+13 −14
Original line number Diff line number Diff line
@@ -1019,9 +1019,7 @@ static void mt7915_sta_statistics(struct ieee80211_hw *hw,
		sinfo->filled |= BIT_ULL(NL80211_STA_INFO_RX_BITRATE);
	}

	if (!txrate->legacy && !txrate->flags)
		return;

	if (txrate->legacy || txrate->flags) {
		if (txrate->legacy) {
			sinfo->txrate.legacy = txrate->legacy;
		} else {
@@ -1034,6 +1032,7 @@ static void mt7915_sta_statistics(struct ieee80211_hw *hw,
		}
		sinfo->txrate.flags = txrate->flags;
		sinfo->filled |= BIT_ULL(NL80211_STA_INFO_TX_BITRATE);
	}

	/* offloading flows bypass networking stack, so driver counts and
	 * reports sta statistics via NL80211_STA_INFO when WED is active.