On Tue, 2025-02-11 at 12:25 -0800, Muna Sinada wrote: > Currently there aren't statistics in mac80211 that keep track of the > management frames that are processed in both Tx and Rx. This type of > statistics is useful in tracking if management frames are successfully > transmitted or are dropped. These statistics are also needed to > provide information regarding how many management frames are received. A very, very long time ago, when a lot of statistics were being added (and required by Android?) I suggested that perhaps we should add way to run BPF programs on incoming frames to keep track of these things instead of having counters across the code for all kinds of things all the time. I suspect that in the time since that has become much simpler, since now BPF programs can be attached to tracepoints and adding a tracepoint or a few could be very easily done. In this case that'd really only require a TX and TX status tracepoint, where the latter is getting the 'acked' indication, so that's basically trace point definition + 2 lines of code. I wonder what you think about that. All of these counters add a pretty large permanent memory (2 KiB here) and code cost, and having them in debugfs _only_ can also be annoying for certain use cases. johannes