diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-10-01 21:13:46 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-10-01 21:13:46 +0000 |
commit | a5e4d3c277318ca17df9238d3acca3a4e798489c (patch) | |
tree | 02545c83b4fbb97103e3051b37abef5e0cc4e4ba /sys/dev/ic | |
parent | 9b0b516ae84d18c7ec7b9bbbc5dc1828c2547541 (diff) |
Set ic_max_rssi to 255 the rssi value returned by the card is a u_int8_t
and mglocker@ and I both have seen values up to 240. OK mglocker@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/pgt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/pgt.c b/sys/dev/ic/pgt.c index 49b6b4a7c8a..f59542afe8d 100644 --- a/sys/dev/ic/pgt.c +++ b/sys/dev/ic/pgt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pgt.c,v 1.16 2006/09/27 19:35:17 brad Exp $ */ +/* $OpenBSD: pgt.c,v 1.17 2006/10/01 21:13:45 claudio Exp $ */ /* * Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org> @@ -1052,7 +1052,7 @@ pgt_input_frames(struct pgt_softc *sc, struct mbuf *m) tap->wr_chan_freq = htole16(chan->ic_freq); tap->wr_chan_flags = htole16(chan->ic_flags); tap->wr_rssi = rssi; - //tap->wr_max_rssi = ic->ic_max_rssi; + tap->wr_max_rssi = ic->ic_max_rssi; M_DUP_PKTHDR(&mb, m); mb.m_data = (caddr_t)tap; @@ -2058,6 +2058,7 @@ pgt_net_attach(struct pgt_softc *sc) ic->ic_node_free = pgt_ieee80211_node_free; ic->ic_node_copy = pgt_ieee80211_node_copy; ic->ic_send_mgmt = pgt_ieee80211_send_mgmt; + ic->ic_max_rssi = 255; /* rssi is a u_int8_t */ /* let net80211 handle switching around the media + resetting */ ieee80211_media_init(ifp, pgt_media_change, pgt_media_status); |