diff options
Diffstat (limited to 'src/transport/gnunet-transport-wlan-helper.c')
-rw-r--r-- | src/transport/gnunet-transport-wlan-helper.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/transport/gnunet-transport-wlan-helper.c b/src/transport/gnunet-transport-wlan-helper.c index 19ea8de79..3ea8a74f5 100644 --- a/src/transport/gnunet-transport-wlan-helper.c +++ b/src/transport/gnunet-transport-wlan-helper.c | |||
@@ -28,6 +28,7 @@ | |||
28 | * gnunet | 28 | * gnunet |
29 | */ | 29 | */ |
30 | #include "gnunet-transport-wlan-helper.h" | 30 | #include "gnunet-transport-wlan-helper.h" |
31 | #include "plugin_transport_wlan.h" | ||
31 | #include "ieee80211_radiotap.h" | 32 | #include "ieee80211_radiotap.h" |
32 | 33 | ||
33 | #include <pcap.h> | 34 | #include <pcap.h> |
@@ -57,31 +58,6 @@ static const u8 u8aRatesToUse[] = { | |||
57 | 1*2 | 58 | 1*2 |
58 | }; | 59 | }; |
59 | 60 | ||
60 | /* Penumbra IEEE80211 header */ | ||
61 | static const u8 u8aIeeeHeader[] = { | ||
62 | 0x08, 0x01, 0x00, 0x00, | ||
63 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | ||
64 | 0x13, 0x22, 0x33, 0x44, 0x55, 0x66, | ||
65 | 0x13, 0x22, 0x33, 0x44, 0x55, 0x66, | ||
66 | 0x10, 0x86, | ||
67 | }; | ||
68 | |||
69 | /* this is the template radiotap header we send packets out with */ | ||
70 | |||
71 | static const u8 u8aRadiotapHeader[] = { | ||
72 | |||
73 | 0x00, 0x00, // <-- radiotap version | ||
74 | 0x19, 0x00, // <- radiotap header length | ||
75 | 0x6f, 0x08, 0x00, 0x00, // <-- bitmap | ||
76 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // <-- timestamp | ||
77 | 0x00, // <-- flags (Offset +0x10) | ||
78 | 0x6c, // <-- rate (0ffset +0x11) | ||
79 | 0x71, 0x09, 0xc0, 0x00, // <-- channel | ||
80 | 0xde, // <-- antsignal | ||
81 | 0x00, // <-- antnoise | ||
82 | 0x01, // <-- antenna | ||
83 | |||
84 | }; | ||
85 | #define OFFSET_FLAGS 0x10 | 61 | #define OFFSET_FLAGS 0x10 |
86 | #define OFFSET_RATE 0x11 | 62 | #define OFFSET_RATE 0x11 |
87 | 63 | ||