mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
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).
This commit is contained in:
parent
e5ada020f1
commit
7e7a65a6fa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127148
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user