FreeBSD Bugzilla – Attachment 156671 Details for
Bug 200136
[rum] [patch]: add IBSS merge support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add TSF field into radiotap
patch-rum-tsf.diff (text/plain), 1.42 KB, created by
Andriy Voskoboinyk
on 2015-05-12 00:28:47 UTC
(
hide
)
Description:
Add TSF field into radiotap
Filename:
MIME Type:
Creator:
Andriy Voskoboinyk
Created:
2015-05-12 00:28:47 UTC
Size:
1.42 KB
patch
obsolete
>Index: sys/dev/usb/wlan/if_rum.c >=================================================================== >--- sys/dev/usb/wlan/if_rum.c (revision 282543) >+++ sys/dev/usb/wlan/if_rum.c (working copy) >@@ -932,11 +932,12 @@ > if (ieee80211_radiotap_active(ic)) { > struct rum_rx_radiotap_header *tap = &sc->sc_rxtap; > >- /* XXX read tsf */ > tap->wr_flags = 0; > tap->wr_rate = ieee80211_plcp2rate(sc->sc_rx_desc.rate, > (flags & RT2573_RX_OFDM) ? > IEEE80211_T_OFDM : IEEE80211_T_CCK); >+ rum_read_multi(sc, RT2573_TXRX_CSR12, &tap->wr_tsft, >+ sizeof(tap->wr_tsft)); > tap->wr_antsignal = RT2573_NOISE_FLOOR + rssi; > tap->wr_antnoise = RT2573_NOISE_FLOOR; > tap->wr_antenna = sc->rx_ant; >Index: sys/dev/usb/wlan/if_rumvar.h >=================================================================== >--- sys/dev/usb/wlan/if_rumvar.h (revision 282543) >+++ sys/dev/usb/wlan/if_rumvar.h (working copy) >@@ -22,6 +22,7 @@ > > struct rum_rx_radiotap_header { > struct ieee80211_radiotap_header wr_ihdr; >+ uint64_t wr_tsft; > uint8_t wr_flags; > uint8_t wr_rate; > uint16_t wr_chan_freq; >@@ -32,7 +33,8 @@ > } __packed __aligned(8); > > #define RT2573_RX_RADIOTAP_PRESENT \ >- ((1 << IEEE80211_RADIOTAP_FLAGS) | \ >+ ((1 << IEEE80211_RADIOTAP_TSFT) | \ >+ (1 << IEEE80211_RADIOTAP_FLAGS) | \ > (1 << IEEE80211_RADIOTAP_RATE) | \ > (1 << IEEE80211_RADIOTAP_CHANNEL) | \ > (1 << IEEE80211_RADIOTAP_DBM_ANTSIGNAL) | \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 200136
: 156671 |
156672