summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mesh_plink.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2015-07-13 12:26:46 +0200
committerJohannes Berg <johannes.berg@intel.com>2015-08-14 17:49:53 +0200
commit40d9a38ad3b7029be9c278738b67cbdb6349ce85 (patch)
treee71dd40eb0afb147df45a91d36cb69faa3630880 /net/mac80211/mesh_plink.c
parent2377799c084d86d22074cd4acd20edc32024d669 (diff)
downloadop-kernel-dev-40d9a38ad3b7029be9c278738b67cbdb6349ce85.zip
op-kernel-dev-40d9a38ad3b7029be9c278738b67cbdb6349ce85.tar.gz
mac80211: use DECLARE_EWMA
Instead of using the out-of-line average calculation, use the new DECLARE_EWMA() macro to declare a signal EWMA, and use that. This actually *reduces* the code size slightly (on x86-64) while also reducing the station info size by 80 bytes. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mesh_plink.c')
-rw-r--r--net/mac80211/mesh_plink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c
index e12be2e..5838464 100644
--- a/net/mac80211/mesh_plink.c
+++ b/net/mac80211/mesh_plink.c
@@ -60,7 +60,7 @@ static bool rssi_threshold_check(struct ieee80211_sub_if_data *sdata,
{
s32 rssi_threshold = sdata->u.mesh.mshcfg.rssi_threshold;
return rssi_threshold == 0 ||
- (sta && (s8) -ewma_read(&sta->avg_signal) > rssi_threshold);
+ (sta && (s8) -ewma_signal_read(&sta->avg_signal) > rssi_threshold);
}
/**
OpenPOWER on IntegriCloud