336-mac80211-minstrel_ht-make-att_hist-and-succ_hist-u32.patch 708 B

12345678910111213141516171819202122
  1. From: Felix Fietkau <nbd@nbd.name>
  2. Date: Wed, 14 Dec 2016 20:09:14 +0100
  3. Subject: [PATCH] mac80211: minstrel_ht: make att_hist and succ_hist u32
  4. instead of u64
  5. They are only used for debugging purposes and take a very long time to
  6. overflow. Visibly reduces the size of the per-sta rate control data.
  7. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  8. ---
  9. --- a/net/mac80211/rc80211_minstrel.h
  10. +++ b/net/mac80211/rc80211_minstrel.h
  11. @@ -59,7 +59,7 @@ struct minstrel_rate_stats {
  12. u16 success, last_success;
  13. /* total attempts/success counters */
  14. - u64 att_hist, succ_hist;
  15. + u32 att_hist, succ_hist;
  16. /* statistis of packet delivery probability
  17. * cur_prob - current prob within last update intervall