diff options
author | green <green@FreeBSD.org> | 2004-03-17 21:54:52 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2004-03-17 21:54:52 +0000 |
commit | 436fe9bbc1dd12e4651d30356928ac1a8d427448 (patch) | |
tree | 7a180ae26c21b50174a7d61905afabec0cfe852c | |
parent | 39929fa757939b676054de093fe52ff89284519d (diff) | |
download | FreeBSD-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).
-rw-r--r-- | sys/dev/wi/if_wi.c | 6 |
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; |