svn commit: r280081 - head/sys/dev/wpi
Adrian Chadd
adrian at FreeBSD.org
Sun Mar 15 20:48:34 UTC 2015
Author: adrian
Date: Sun Mar 15 20:48:32 2015
New Revision: 280081
URL: https://svnweb.freebsd.org/changeset/base/280081
Log:
Use WPI_RSSI_OFFSET instead of stat->noise (always 0 for me)
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios at gmail.com>
Modified:
head/sys/dev/wpi/if_wpi.c
Modified: head/sys/dev/wpi/if_wpi.c
==============================================================================
--- head/sys/dev/wpi/if_wpi.c Sun Mar 15 20:48:00 2015 (r280080)
+++ head/sys/dev/wpi/if_wpi.c Sun Mar 15 20:48:32 2015 (r280081)
@@ -1863,7 +1863,7 @@ wpi_rx_done(struct wpi_softc *sc, struct
if (head->flags & htole16(WPI_STAT_FLAG_SHPREAMBLE))
tap->wr_flags |= IEEE80211_RADIOTAP_F_SHORTPRE;
tap->wr_dbm_antsignal = (int8_t)(stat->rssi + WPI_RSSI_OFFSET);
- tap->wr_dbm_antnoise = (int8_t)le16toh(stat->noise);
+ tap->wr_dbm_antnoise = WPI_RSSI_OFFSET;
tap->wr_tsft = tail->tstamp;
tap->wr_antenna = (le16toh(head->flags) >> 4) & 0xf;
tap->wr_rate = plcp2rate(head->plcp);
More information about the svn-src-all
mailing list