summaryrefslogtreecommitdiffstats
path: root/sys/dev/wi
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2004-03-17 21:54:52 +0000
committergreen <green@FreeBSD.org>2004-03-17 21:54:52 +0000
commit436fe9bbc1dd12e4651d30356928ac1a8d427448 (patch)
tree7a180ae26c21b50174a7d61905afabec0cfe852c /sys/dev/wi
parent39929fa757939b676054de093fe52ff89284519d (diff)
downloadFreeBSD-src-436fe9bbc1dd12e4651d30356928ac1a8d427448.zip
FreeBSD-src-436fe9bbc1dd12e4651d30356928ac1a8d427448.tar.gz
Eliminate bogus usage of WI_RSSI_TO_DBM(). Not only does it bogusly
clip/destroy the dB value contained in the wi(4)'s receive frames, it doesn't match with the flag set in the radiotap header (unperturbed dB versus dBm).
Diffstat (limited to 'sys/dev/wi')
-rw-r--r--sys/dev/wi/if_wi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index d8a83a2..d26577f 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -1490,10 +1490,8 @@ wi_rx_intr(struct wi_softc *sc)
if (sc->sc_drvbpf) {
/* XXX replace divide by table */
sc->sc_rx_th.wr_rate = frmhdr.wi_rx_rate / 5;
- sc->sc_rx_th.wr_antsignal =
- WI_RSSI_TO_DBM(sc, frmhdr.wi_rx_signal);
- sc->sc_rx_th.wr_antnoise =
- WI_RSSI_TO_DBM(sc, frmhdr.wi_rx_silence);
+ sc->sc_rx_th.wr_antsignal = frmhdr.wi_rx_signal;
+ sc->sc_rx_th.wr_antnoise = frmhdr.wi_rx_silence;
sc->sc_rx_th.wr_flags = 0;
if (frmhdr.wi_status & WI_STAT_PCF)
sc->sc_rx_th.wr_flags |= IEEE80211_RADIOTAP_F_CFP;
OpenPOWER on IntegriCloud