341-mac80211-minstrel-make-prob_ewma-u16-instead-of-u32.patch 626 B

1234567891011121314151617181920
  1. From: Felix Fietkau <nbd@nbd.name>
  2. Date: Wed, 14 Dec 2016 20:19:56 +0100
  3. Subject: [PATCH] mac80211: minstrel: make prob_ewma u16 instead of u32
  4. Saves about 1.2 KiB memory per station
  5. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  6. ---
  7. --- a/net/mac80211/rc80211_minstrel.h
  8. +++ b/net/mac80211/rc80211_minstrel.h
  9. @@ -59,7 +59,7 @@ struct minstrel_rate_stats {
  10. /* statistis of packet delivery probability
  11. * prob_ewma - exponential weighted moving average of prob
  12. * prob_ewmsd - exp. weighted moving standard deviation of prob */
  13. - unsigned int prob_ewma;
  14. + u16 prob_ewma;
  15. u16 prob_ewmv;
  16. /* maximum retry counts */