summaryrefslogtreecommitdiffstats
path: root/sys/dev/ipw
diff options
context:
space:
mode:
authorbschmidt <bschmidt@FreeBSD.org>2010-04-17 18:14:49 +0000
committerbschmidt <bschmidt@FreeBSD.org>2010-04-17 18:14:49 +0000
commitccd6c26a877aa40d63b9c7280c945eee15428476 (patch)
tree181389e9091b6646adb21b5a5d477c100fe24fbb /sys/dev/ipw
parentb4bea4d3f4b2289631cccab1c2f919c1fbb73b51 (diff)
downloadFreeBSD-src-ccd6c26a877aa40d63b9c7280c945eee15428476.zip
FreeBSD-src-ccd6c26a877aa40d63b9c7280c945eee15428476.tar.gz
Pass correct RSSI to ieee80211_input*().
Approved by: rpaulo (mentor)
Diffstat (limited to 'sys/dev/ipw')
-rw-r--r--sys/dev/ipw/if_ipw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ipw/if_ipw.c b/sys/dev/ipw/if_ipw.c
index dc2a61f..3a8d85d 100644
--- a/sys/dev/ipw/if_ipw.c
+++ b/sys/dev/ipw/if_ipw.c
@@ -1234,10 +1234,10 @@ ipw_rx_data_intr(struct ipw_softc *sc, struct ipw_status *status,
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);
OpenPOWER on IntegriCloud