mac80211: minstrel: store probability variance instead of standard deviation
authorFelix Fietkau <nbd@nbd.name>
Wed, 14 Dec 2016 19:47:00 +0000 (20:47 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 15 Dec 2016 10:07:52 +0000 (11:07 +0100)
commit4f0bc9c61bae9c74ffcf5dbdbd241cbf0ec3a44e
tree663224eb02449823db0b3ccef21d8deb14867194
parent0217eefa64509d63fbe8d1205310bafb2355cf4d
mac80211: minstrel: store probability variance instead of standard deviation

This avoids the costly int_sqrt calls in the statistics update and moves
it to the debugfs code instead.
This also fixes an overflow in the previous standard deviation
calculation.

Signed-off-by: Thomas Huehn <thomas.huehn@evernet-eg.de>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel.c
net/mac80211/rc80211_minstrel.h
net/mac80211/rc80211_minstrel_debugfs.c
net/mac80211/rc80211_minstrel_ht_debugfs.c