]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: optimize minstrel_ewma
authorKarl Beldan <karl.beldan@rivierawaves.com>
Wed, 17 Apr 2013 11:43:22 +0000 (13:43 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 17 Apr 2013 15:08:49 +0000 (17:08 +0200)
commit82f000daed6ab5c8ce01af300eaa32b15956ca92
treeca7ab112a1767ce31a3d6ea5ac9e7c82a4db9343
parent9be3837440de19beda2c3b0dc65bec2f6632b821
mac80211: optimize minstrel_ewma

Use powers of two in ewma of minstrel.
This changes :
- EWMA_DIV   from 100 to 2^7
- EWMA_LEVEL from 75 (/EWMA_DIV=100) to 2^6 + 2^5 (/EWMA_DIV=128)

Note that this changes EWMA_DIV - EWMA_LEVEL from 25 to 2^5 and keeps
EWMA_LEVEL / EWMA_DIV == 0.75.

Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com>
Acked-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel.h