summaryrefslogtreecommitdiffstats
path: root/net/mac80211/rc80211_minstrel.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-12-14 20:47:01 +0100
committerJohannes Berg <johannes.berg@intel.com>2016-12-15 11:07:53 +0100
commit4cae4cd10d058eb4057e20cb72e82fe76ae739af (patch)
treeb86fa950ab614052b94acb0a1aac096b24e4fc0b /net/mac80211/rc80211_minstrel.h
parent4f0bc9c61bae9c74ffcf5dbdbd241cbf0ec3a44e (diff)
downloadlinux-4cae4cd10d058eb4057e20cb72e82fe76ae739af.tar.bz2
mac80211: minstrel: make prob_ewma u16 instead of u32
Saves about 1.2 KiB memory per station Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/rc80211_minstrel.h')
-rw-r--r--net/mac80211/rc80211_minstrel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/rc80211_minstrel.h b/net/mac80211/rc80211_minstrel.h
index ea86e6784154..be6c3f35f48b 100644
--- a/net/mac80211/rc80211_minstrel.h
+++ b/net/mac80211/rc80211_minstrel.h
@@ -59,7 +59,7 @@ struct minstrel_rate_stats {
/* statistis of packet delivery probability
* prob_ewma - exponential weighted moving average of prob
* prob_ewmsd - exp. weighted moving standard deviation of prob */
- unsigned int prob_ewma;
+ u16 prob_ewma;
u16 prob_ewmv;
/* maximum retry counts */