]> asedeno.scripts.mit.edu Git - linux.git/commit
mac80211: minstrel: reduce MINSTREL_SCALE
authorFelix Fietkau <nbd@nbd.name>
Wed, 14 Dec 2016 19:46:59 +0000 (20:46 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 15 Dec 2016 10:07:52 +0000 (11:07 +0100)
commit0217eefa64509d63fbe8d1205310bafb2355cf4d
tree7cb77309a9e60c57f211791537ab3835d2eb7531
parent1109dc392ea0248f7bfca3537011aa7afaa05cee
mac80211: minstrel: reduce MINSTREL_SCALE

The loss of a bit of extra precision does not hurt the calculation, 12
bits is still enough to calculate probabilities well. Reducing the scale
makes it easier to avoid overflows

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel.h