From a5e4d3c277318ca17df9238d3acca3a4e798489c Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Sun, 1 Oct 2006 21:13:46 +0000 Subject: 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@ --- sys/dev/ic/pgt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic') 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 @@ -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); -- cgit v1.2.3