diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-02-15 11:49:26 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-03-02 10:32:46 +0300 |
commit | eb1e011a14748a1d9df9a7d7df9a5711721a1bdb (patch) | |
tree | 599710c96a23bcbc25423cb0a99696dd0b257c7b /drivers/net/wireless/ath/ath5k/ath5k.h | |
parent | 48cac18ecf1de82f76259a54402c3adb7839ad01 (diff) | |
download | linux-eb1e011a14748a1d9df9a7d7df9a5711721a1bdb.tar.xz |
average: change to declare precision, not factor
Declaring the factor is counter-intuitive, and people are prone
to using small(-ish) values even when that makes no sense.
Change the DECLARE_EWMA() macro to take the fractional precision,
in bits, rather than a factor, and update all users.
While at it, add some more documentation.
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/ath5k.h')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/ath5k.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h index 67fedb61fcc0..979800c6f57f 100644 --- a/drivers/net/wireless/ath/ath5k/ath5k.h +++ b/drivers/net/wireless/ath/ath5k/ath5k.h @@ -1252,7 +1252,7 @@ struct ath5k_statistics { #define ATH5K_TXQ_LEN_MAX (ATH_TXBUF / 4) /* bufs per queue */ #define ATH5K_TXQ_LEN_LOW (ATH5K_TXQ_LEN_MAX / 2) /* low mark */ -DECLARE_EWMA(beacon_rssi, 1024, 8) +DECLARE_EWMA(beacon_rssi, 10, 8) /* Driver state associated with an instance of a device */ struct ath5k_hw { |