Skip to content

Commit e165bc0

Browse files
committed
mac80211: fix dropped counter in multiqueue RX
In the commit enabling per-CPU station statistics, I inadvertedly copy-pasted some code to update rx_packets and forgot to change it to update rx_dropped_misc. Fix that. This addresses https://bugzilla.kernel.org/show_bug.cgi?id=195953. Fixes: c9c5962 ("mac80211: enable collecting station statistics per-CPU") Reported-by: Petru-Florin Mihancea <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
1 parent 7a7c0a6 commit e165bc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/mac80211/sta_info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2155,7 +2155,7 @@ void sta_set_sinfo(struct sta_info *sta, struct station_info *sinfo)
21552155
struct ieee80211_sta_rx_stats *cpurxs;
21562156

21572157
cpurxs = per_cpu_ptr(sta->pcpu_rx_stats, cpu);
2158-
sinfo->rx_packets += cpurxs->dropped;
2158+
sinfo->rx_dropped_misc += cpurxs->dropped;
21592159
}
21602160
}
21612161

0 commit comments

Comments
 (0)