summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ralink/rt2x00/rt2x00.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2017-02-15 09:49:26 +0100
committerJohannes Berg <johannes.berg@intel.com>2017-03-02 08:32:46 +0100
commiteb1e011a14748a1d9df9a7d7df9a5711721a1bdb (patch)
tree599710c96a23bcbc25423cb0a99696dd0b257c7b /drivers/net/wireless/ralink/rt2x00/rt2x00.h
parentipv6: orphan skbs in reassembly unit (diff)
downloadlinux-eb1e011a14748a1d9df9a7d7df9a5711721a1bdb.tar.xz
linux-eb1e011a14748a1d9df9a7d7df9a5711721a1bdb.zip
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/ralink/rt2x00/rt2x00.h')
-rw-r--r--drivers/net/wireless/ralink/rt2x00/rt2x00.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ralink/rt2x00/rt2x00.h b/drivers/net/wireless/ralink/rt2x00/rt2x00.h
index 26869b3bef45..340787894c69 100644
--- a/drivers/net/wireless/ralink/rt2x00/rt2x00.h
+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00.h
@@ -257,7 +257,7 @@ struct link_qual {
int tx_failed;
};
-DECLARE_EWMA(rssi, 1024, 8)
+DECLARE_EWMA(rssi, 10, 8)
/*
* Antenna settings about the currently active link.