aboutsummaryrefslogtreecommitdiffstats
path: root/package/libertas/src/radiotap.h
diff options
context:
space:
mode:
authorJens Muecke <jens@nons.de>2007-12-15 19:59:21 +0000
committerJens Muecke <jens@nons.de>2007-12-15 19:59:21 +0000
commit7eeb4e6f7f10c17c889abe4b905a909bb9f58af0 (patch)
treed2cd4d28e2b5c18464c71f4a9492a4eccc85b842 /package/libertas/src/radiotap.h
parentb03f211098f218b9e09d93a0056aec27a7a1e452 (diff)
downloadupstream-7eeb4e6f7f10c17c889abe4b905a909bb9f58af0.tar.gz
upstream-7eeb4e6f7f10c17c889abe4b905a909bb9f58af0.tar.bz2
upstream-7eeb4e6f7f10c17c889abe4b905a909bb9f58af0.zip
* adding network config for olpc * adding libertas * config issue * quiet mode for bootloader
SVN-Revision: 9768
Diffstat (limited to 'package/libertas/src/radiotap.h')
-rw-r--r--package/libertas/src/radiotap.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/package/libertas/src/radiotap.h b/package/libertas/src/radiotap.h
new file mode 100644
index 0000000000..5d118f40cf
--- /dev/null
+++ b/package/libertas/src/radiotap.h
@@ -0,0 +1,57 @@
+#include <net/ieee80211_radiotap.h>
+
+struct tx_radiotap_hdr {
+ struct ieee80211_radiotap_header hdr;
+ u8 rate;
+ u8 txpower;
+ u8 rts_retries;
+ u8 data_retries;
+#if 0
+ u8 pad[IEEE80211_RADIOTAP_HDRLEN - 12];
+#endif
+} __attribute__ ((packed));
+
+#define TX_RADIOTAP_PRESENT ( \
+ (1 << IEEE80211_RADIOTAP_RATE) | \
+ (1 << IEEE80211_RADIOTAP_DBM_TX_POWER) | \
+ (1 << IEEE80211_RADIOTAP_RTS_RETRIES) | \
+ (1 << IEEE80211_RADIOTAP_DATA_RETRIES) | \
+ 0)
+
+#define IEEE80211_FC_VERSION_MASK 0x0003
+#define IEEE80211_FC_TYPE_MASK 0x000c
+#define IEEE80211_FC_TYPE_MGT 0x0000
+#define IEEE80211_FC_TYPE_CTL 0x0004
+#define IEEE80211_FC_TYPE_DATA 0x0008
+#define IEEE80211_FC_SUBTYPE_MASK 0x00f0
+#define IEEE80211_FC_TOFROMDS_MASK 0x0300
+#define IEEE80211_FC_TODS_MASK 0x0100
+#define IEEE80211_FC_FROMDS_MASK 0x0200
+#define IEEE80211_FC_NODS 0x0000
+#define IEEE80211_FC_TODS 0x0100
+#define IEEE80211_FC_FROMDS 0x0200
+#define IEEE80211_FC_DSTODS 0x0300
+
+struct rx_radiotap_hdr {
+ struct ieee80211_radiotap_header hdr;
+ u8 flags;
+ u8 rate;
+ u16 chan_freq;
+ u16 chan_flags;
+ u8 antenna;
+ u8 antsignal;
+ u16 rx_flags;
+#if 0
+ u8 pad[IEEE80211_RADIOTAP_HDRLEN - 18];
+#endif
+} __attribute__ ((packed));
+
+#define RX_RADIOTAP_PRESENT ( \
+ (1 << IEEE80211_RADIOTAP_FLAGS) | \
+ (1 << IEEE80211_RADIOTAP_RATE) | \
+ (1 << IEEE80211_RADIOTAP_CHANNEL) | \
+ (1 << IEEE80211_RADIOTAP_ANTENNA) | \
+ (1 << IEEE80211_RADIOTAP_DB_ANTSIGNAL) |\
+ (1 << IEEE80211_RADIOTAP_RX_FLAGS) | \
+ 0)
+