diff options
author | Balaji Pothunoori <bpothuno@codeaurora.org> | 2018-04-16 20:18:41 +0530 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-05-07 21:41:16 +0200 |
commit | cc60dbbfed8ff0bd4c530ee48e9e915333a35470 (patch) | |
tree | abf303c1299c4bee775735f304eb30a3dbcfaa22 /net/mac80211/status.c | |
parent | 81d5439da84419ee35bea54309a9f2c3871b6605 (diff) |
mac80211: average ack rssi support for data frames
The driver will process the RSSI if available and send it to mac80211.
mac80211 will compute the weighted average of ack RSSI for stations.
Signed-off-by: Balaji Pothunoori <bpothuno@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/status.c')
-rw-r--r-- | net/mac80211/status.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/status.c b/net/mac80211/status.c index 743e89c5926c..9a6d7208bf4f 100644 --- a/net/mac80211/status.c +++ b/net/mac80211/status.c @@ -195,6 +195,8 @@ static void ieee80211_frame_acked(struct sta_info *sta, struct sk_buff *skb) sta->status_stats.last_ack_signal = (s8)txinfo->status.ack_signal; sta->status_stats.ack_signal_filled = true; + ewma_avg_signal_add(&sta->status_stats.avg_ack_signal, + -txinfo->status.ack_signal); } } |