diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2005-02-28 17:49:23 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2005-02-28 17:49:23 +0000 |
commit | 736b2ff3c20b008be91c7dce3dd1845ed50a0b9f (patch) | |
tree | 297bc174639b616b94f5a32adf9de4b8d9c7b511 /sys/dev/ic/ralvar.h | |
parent | 049f51ddbb2866c194705276bd321d9d88379ea8 (diff) |
add radiotap, monitor and promiscuous mode support.
Diffstat (limited to 'sys/dev/ic/ralvar.h')
-rw-r--r-- | sys/dev/ic/ralvar.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/sys/dev/ic/ralvar.h b/sys/dev/ic/ralvar.h index 7e3650d6c9a..9101e402d8a 100644 --- a/sys/dev/ic/ralvar.h +++ b/sys/dev/ic/ralvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ralvar.h,v 1.3 2005/02/28 17:03:33 damien Exp $ */ +/* $OpenBSD: ralvar.h,v 1.4 2005/02/28 17:49:22 damien Exp $ */ /*- * Copyright (c) 2005 @@ -19,27 +19,36 @@ struct ral_rx_radiotap_header { struct ieee80211_radiotap_header wr_ihdr; + uint32_t wr_tsf_lo; + uint32_t wr_tsf_hi; uint8_t wr_flags; uint16_t wr_chan_freq; uint16_t wr_chan_flags; + uint8_t wr_antenna; uint8_t wr_antsignal; }; #define RAL_RX_RADIOTAP_PRESENT \ - ((1 << IEEE80211_RADIOTAP_FLAGS) | \ + ((1 << IEEE80211_RADIOTAP_TSFT) | \ + (1 << IEEE80211_RADIOTAP_FLAGS) | \ (1 << IEEE80211_RADIOTAP_CHANNEL) | \ + (1 << IEEE80211_RADIOTAP_ANTENNA) | \ (1 << IEEE80211_RADIOTAP_DB_ANTSIGNAL)) struct ral_tx_radiotap_header { struct ieee80211_radiotap_header wt_ihdr; uint8_t wt_flags; + uint8_t wt_rate; uint16_t wt_chan_freq; uint16_t wt_chan_flags; + uint8_t wt_antenna; }; #define RAL_TX_RADIOTAP_PRESENT \ ((1 << IEEE80211_RADIOTAP_FLAGS) | \ - (1 << IEEE80211_RADIOTAP_CHANNEL)) + (1 << IEEE80211_RADIOTAP_RATE) | \ + (1 << IEEE80211_RADIOTAP_CHANNEL) | \ + (1 << IEEE80211_RADIOTAP_ANTENNA)) struct ral_tx_data { bus_dmamap_t map; |