summaryrefslogtreecommitdiff
path: root/sys/dev/ic/rt2661var.h
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2006-01-14 12:43:28 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2006-01-14 12:43:28 +0000
commit6853f9a1e6456e59edad87964e51b253a552b6bb (patch)
treec436f01276310aac1a3a44df34d63dfbbfd8eed0 /sys/dev/ic/rt2661var.h
parentcbcea85fb72e29c931b2d3492cf13cb777e5a8ed (diff)
- give rate to rx radiotap
- read TSF high 32bit word before low 32bit word to avoid wraparounds
Diffstat (limited to 'sys/dev/ic/rt2661var.h')
-rw-r--r--sys/dev/ic/rt2661var.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/rt2661var.h b/sys/dev/ic/rt2661var.h
index 0f911753810..e7bae7400de 100644
--- a/sys/dev/ic/rt2661var.h
+++ b/sys/dev/ic/rt2661var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rt2661var.h,v 1.2 2006/01/10 21:20:46 damien Exp $ */
+/* $OpenBSD: rt2661var.h,v 1.3 2006/01/14 12:43:27 damien Exp $ */
/*-
* Copyright (c) 2006
@@ -21,6 +21,7 @@ struct rt2661_rx_radiotap_header {
struct ieee80211_radiotap_header wr_ihdr;
uint64_t wr_tsf;
uint8_t wr_flags;
+ uint8_t wr_rate;
uint16_t wr_chan_freq;
uint16_t wr_chan_flags;
uint8_t wr_antsignal;
@@ -29,6 +30,7 @@ struct rt2661_rx_radiotap_header {
#define RT2661_RX_RADIOTAP_PRESENT \
((1 << IEEE80211_RADIOTAP_TSFT) | \
(1 << IEEE80211_RADIOTAP_FLAGS) | \
+ (1 << IEEE80211_RADIOTAP_RATE) | \
(1 << IEEE80211_RADIOTAP_CHANNEL) | \
(1 << IEEE80211_RADIOTAP_DB_ANTSIGNAL))