Skip to contentSkip to conversation

mac80211: fix a mistake check for rx_stats update

PATCH New Wen Gong 1 participant 1 message Dec 9, 2020

Subsystems (3)
lore
Share & tools
lore

Wen Gong

author
#0 lore raw

PATCH 1/1 mac80211: fix a mistake check for rx_stats update

It should be !is_multicast_ether_addr() in ieee80211_rx_h_sta_process() for the rx_stats update, below commit remove the !, this patch is to change it back.

It lead the rx rate "iw wlan0 station dump" become invalid for some scene when IEEE80211_HW_USES_RSS is set, and the rx rate become valid with this patch for the scene.

Fixed: 09a740ce352e ("mac80211: receive and process S1G beacons")

---
 net/mac80211/rx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/rx.c +1 -1
index ebd01ca9d2e6..dafde71af50e 100644
@@ -1762,7 +1762,7 @@ ieee80211_rx_h_sta_process(struct ieee80211_rx_data *rx)
 	} else if (rx->sdata->vif.type == NL80211_IFTYPE_OCB) {
 		sta->rx_stats.last_rx = jiffies;
 	} else if (!ieee80211_is_s1g_beacon(hdr->frame_control) &&
-		   is_multicast_ether_addr(hdr->addr1)) {
+		   !is_multicast_ether_addr(hdr->addr1)) {
 		/*
 		 * Mesh beacons will update last_rx when if they are found to
 		 * match the current local configuration when processed.
Signature · 7 lines
2.23.0


-- 
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k