aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/rx.c
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2007-08-28 17:01:55 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:48:54 -0400
commit6c55aa97359af4b503a8baf914de48f2406a895f (patch)
treecd68dd37b4b5d7af0516f238442dd44517facf94 /net/mac80211/rx.c
parente7a64f12a452d39ab50e5580e93bc48b3b15f30c (diff)
[MAC80211]: Remove overly sticky averaging filters for rssi, signal, noise
The current version of wireless statistics contains a bug in the averaging that makes the numbers be too sticky and not react to small changes. This patch removes all averaging. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Jiri Benc <jbenc@suse.cz> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Acked-by: Michael Wu <flamingice@sourmilk.net> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r--net/mac80211/rx.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index ba94f58ba02e..e2c6f5cd1cf7 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -485,12 +485,9 @@ ieee80211_rx_h_sta_process(struct ieee80211_txrx_data *rx)
485 485
486 sta->rx_fragments++; 486 sta->rx_fragments++;
487 sta->rx_bytes += rx->skb->len; 487 sta->rx_bytes += rx->skb->len;
488 sta->last_rssi = (sta->last_rssi * 15 + 488 sta->last_rssi = rx->u.rx.status->ssi;
489 rx->u.rx.status->ssi) / 16; 489 sta->last_signal = rx->u.rx.status->signal;
490 sta->last_signal = (sta->last_signal * 15 + 490 sta->last_noise = rx->u.rx.status->noise;
491 rx->u.rx.status->signal) / 16;
492 sta->last_noise = (sta->last_noise * 15 +
493 rx->u.rx.status->noise) / 16;
494 491
495 if (!(rx->fc & IEEE80211_FCTL_MOREFRAGS)) { 492 if (!(rx->fc & IEEE80211_FCTL_MOREFRAGS)) {
496 /* Change STA power saving mode only in the end of a frame 493 /* Change STA power saving mode only in the end of a frame