diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-06-23 21:53:02 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-06-23 21:53:02 +0000 |
commit | 9dca7703cc8f5d769e9db3a3d67d32f60b5a1d6f (patch) | |
tree | 0e0872bffe2c579a80357d8c655452336ac8c6c4 /sys/dev/ic/ath.c | |
parent | 21922ab8d0860ad9ed70dc951d3ad2b304597347 (diff) |
set the RSSI Max value in ath(4) and use the new RSSI radiotap header
instead of the old db signal header. also allow tcpdump and hostapd to
print the new RSSI radiotap header values current/max rssi.
ok damien@ jsg@
Diffstat (limited to 'sys/dev/ic/ath.c')
-rw-r--r-- | sys/dev/ic/ath.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c index d6f8deae5a1..a631394a1e5 100644 --- a/sys/dev/ic/ath.c +++ b/sys/dev/ic/ath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ath.c,v 1.51 2006/06/23 06:27:11 miod Exp $ */ +/* $OpenBSD: ath.c,v 1.52 2006/06/23 21:53:01 reyk Exp $ */ /* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */ /*- @@ -379,6 +379,7 @@ ath_attach(u_int16_t devid, struct ath_softc *sc) ic->ic_newstate = ath_newstate; sc->sc_recv_mgmt = ic->ic_recv_mgmt; ic->ic_recv_mgmt = ath_recv_mgmt; + ic->ic_max_rssi = AR5K_MAX_RSSI; bcopy(etherbroadcastaddr, sc->sc_broadcast_addr, IEEE80211_ADDR_LEN); /* complete initialization */ @@ -2001,8 +2002,9 @@ ath_rx_proc(void *arg, int npending) sc->sc_rxtap.wr_rate = sc->sc_hwmap[ds->ds_rxstat.rs_rate] & IEEE80211_RATE_VAL; - sc->sc_rxtap.wr_antsignal = ds->ds_rxstat.rs_rssi; sc->sc_rxtap.wr_antenna = ds->ds_rxstat.rs_antenna; + sc->sc_rxtap.wr_rssi = ds->ds_rxstat.rs_rssi; + sc->sc_rxtap.wr_max_rssi = ic->ic_max_rssi; M_DUP_PKTHDR(&mb, m); mb.m_data = (caddr_t)&sc->sc_rxtap; |