summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2006-10-30 20:15:23 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2006-10-30 20:15:23 +0000
commit23c7d2e7742edb7f7d49bbf29ee8d93c39b9922c (patch)
tree463518157f3a652dc117b81c01132782fc5e9103
parentda033472ee4e779e4555283be5691cdbc43e546a (diff)
Fix dynamic tuning of the radio sensitivity I broke when moving from
rssadapt(9) to AMRR. pointed out by Erki Malling on misc@
-rw-r--r--sys/dev/ic/rt2661.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/rt2661.c b/sys/dev/ic/rt2661.c
index 5e686488728..ea7b67825d1 100644
--- a/sys/dev/ic/rt2661.c
+++ b/sys/dev/ic/rt2661.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rt2661.c,v 1.29 2006/10/22 12:14:44 damien Exp $ */
+/* $OpenBSD: rt2661.c,v 1.30 2006/10/30 20:15:22 damien Exp $ */
/*-
* Copyright (c) 2006
@@ -1147,13 +1147,14 @@ rt2661_rx_intr(struct rt2661_softc *sc)
ni = ieee80211_find_rxnode(ic, wh);
/* send the frame to the 802.11 layer */
- ieee80211_input(ifp, m, ni, rssi, 0);
+ ieee80211_input(ifp, m, ni, desc->rssi, 0);
/*-
* Keep track of the average RSSI using an Exponential Moving
* Average (EMA) of 8 Wilder's days:
* avg = (1 / N) x rssi + ((N - 1) / N) x avg
*/
+ rssi = rt2661_get_rssi(sc, desc->rssi);
sc->avg_rssi = (rssi + 7 * sc->avg_rssi) / 8;
/* node is no longer needed */