Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Felix Fietkau and committed by
Johannes Berg
4cae4cd1 4f0bc9c6

+1 -1
+1 -1
net/mac80211/rc80211_minstrel.h
··· 59 59 /* statistis of packet delivery probability 60 60 * prob_ewma - exponential weighted moving average of prob 61 61 * prob_ewmsd - exp. weighted moving standard deviation of prob */ 62 - unsigned int prob_ewma; 62 + u16 prob_ewma; 63 63 u16 prob_ewmv; 64 64 65 65 /* maximum retry counts */