Date: Fri, 23 Oct 2015 08:44:41 +0000 (UTC) From: Andriy Voskoboinyk <avos@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r289816 - head/sys/dev/usb/wlan Message-ID: <201510230844.t9N8ifSr096382@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avos Date: Fri Oct 23 08:44:40 2015 New Revision: 289816 URL: https://svnweb.freebsd.org/changeset/base/289816 Log: urtwn(4): add DBM_ANTNOISE radiotap field Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D3839 Modified: head/sys/dev/usb/wlan/if_urtwn.c head/sys/dev/usb/wlan/if_urtwnvar.h Modified: head/sys/dev/usb/wlan/if_urtwn.c ============================================================================== --- head/sys/dev/usb/wlan/if_urtwn.c Fri Oct 23 08:38:10 2015 (r289815) +++ head/sys/dev/usb/wlan/if_urtwn.c Fri Oct 23 08:44:40 2015 (r289816) @@ -666,6 +666,7 @@ urtwn_rx_frame(struct urtwn_softc *sc, u tap->wr_rate = 0x80 | (rate - 12); } tap->wr_dbm_antsignal = rssi; + tap->wr_dbm_antnoise = URTWN_NOISE_FLOOR; tap->wr_chan_freq = htole16(ic->ic_curchan->ic_freq); tap->wr_chan_flags = htole16(ic->ic_curchan->ic_flags); } Modified: head/sys/dev/usb/wlan/if_urtwnvar.h ============================================================================== --- head/sys/dev/usb/wlan/if_urtwnvar.h Fri Oct 23 08:38:10 2015 (r289815) +++ head/sys/dev/usb/wlan/if_urtwnvar.h Fri Oct 23 08:44:40 2015 (r289816) @@ -37,14 +37,16 @@ struct urtwn_rx_radiotap_header { uint8_t wr_rate; uint16_t wr_chan_freq; uint16_t wr_chan_flags; - uint8_t wr_dbm_antsignal; + int8_t wr_dbm_antsignal; + int8_t wr_dbm_antnoise; } __packed __aligned(8); #define URTWN_RX_RADIOTAP_PRESENT \ (1 << IEEE80211_RADIOTAP_FLAGS | \ 1 << IEEE80211_RADIOTAP_RATE | \ 1 << IEEE80211_RADIOTAP_CHANNEL | \ - 1 << IEEE80211_RADIOTAP_DBM_ANTSIGNAL) + 1 << IEEE80211_RADIOTAP_DBM_ANTSIGNAL | \ + 1 << IEEE80211_RADIOTAP_DBM_ANTNOISE) struct urtwn_tx_radiotap_header { struct ieee80211_radiotap_header wt_ihdr;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510230844.t9N8ifSr096382>