svn commit: r206764 - head/sys/dev/ipw

Bernhard Schmidt bschmidt at FreeBSD.org
Sat Apr 17 18:14:50 UTC 2010


Author: bschmidt
Date: Sat Apr 17 18:14:49 2010
New Revision: 206764
URL: http://svn.freebsd.org/changeset/base/206764

Log:
  Pass correct RSSI to ieee80211_input*().
  
  Approved by:	rpaulo (mentor)

Modified:
  head/sys/dev/ipw/if_ipw.c

Modified: head/sys/dev/ipw/if_ipw.c
==============================================================================
--- head/sys/dev/ipw/if_ipw.c	Sat Apr 17 18:13:52 2010	(r206763)
+++ head/sys/dev/ipw/if_ipw.c	Sat Apr 17 18:14:49 2010	(r206764)
@@ -1234,10 +1234,10 @@ ipw_rx_data_intr(struct ipw_softc *sc, s
 	IPW_UNLOCK(sc);
 	ni = ieee80211_find_rxnode(ic, mtod(m, struct ieee80211_frame_min *));
 	if (ni != NULL) {
-		(void) ieee80211_input(ni, m, rssi, nf);
+		(void) ieee80211_input(ni, m, rssi - nf, nf);
 		ieee80211_free_node(ni);
 	} else
-		(void) ieee80211_input_all(ic, m, rssi, nf);
+		(void) ieee80211_input_all(ic, m, rssi - nf, nf);
 	IPW_LOCK(sc);
 
 	bus_dmamap_sync(sc->rbd_dmat, sc->rbd_map, BUS_DMASYNC_PREWRITE);


More information about the svn-src-all mailing list