- /**
- * radiotap version
- */
- uint8_t version[2] GNUNET_PACKED;
-
- /**
- * radiotap header length
- */
- uint8_t lenght[2] GNUNET_PACKED;
-
- /**
- * bitmap
- */
- uint8_t bitmap[4] GNUNET_PACKED;
-
- /**
- * timestamp
- */
- uint8_t timestamp[8] GNUNET_PACKED;
-
- /**
- * radiotap flags
- */
- uint8_t flags GNUNET_PACKED;
-
- /**
- * wlan send rate
- */
- uint8_t rate GNUNET_PACKED;
-
- /**
- * Wlan channel
- */
- uint8_t channel[4] GNUNET_PACKED;
-
- /**
- * antsignal
- */
- uint8_t antsignal GNUNET_PACKED;
-
- /**
- * antnoise
- */
- uint8_t antnoise GNUNET_PACKED;
-
- /**
- * antenna
- */
- uint8_t antenna GNUNET_PACKED;
+
+ /**
+ * Type is 'GNUNET_MESSAGE_TYPE_WLAN_DATA_FROM_HELPER'.
+ */
+ struct GNUNET_MessageHeader header;
+
+ /**
+ * Information about which of the fields below are actually valid.
+ * 0 for none. FIXME: not properly initialized so far (always zero).
+ */
+ uint32_t ri_present GNUNET_PACKED;
+
+ /**
+ * IEEE80211_RADIOTAP_TSFT, 0 if unknown.
+ */
+ uint64_t ri_mactime GNUNET_PACKED;
+
+ /**
+ * from radiotap
+ * either IEEE80211_RADIOTAP_DBM_ANTSIGNAL
+ * or IEEE80211_RADIOTAP_DB_ANTSIGNAL, 0 if unknown.
+ */
+ int32_t ri_power GNUNET_PACKED;
+
+ /**
+ * either IEEE80211_RADIOTAP_DBM_ANTNOISE
+ * or IEEE80211_RADIOTAP_DB_ANTNOISE, 0 if unknown.
+ */
+ int32_t ri_noise GNUNET_PACKED;
+
+ /**
+ * IEEE80211_RADIOTAP_CHANNEL, 0 if unknown.
+ */
+ uint32_t ri_channel GNUNET_PACKED;
+
+ /**
+ * Frequency we use. 0 if unknown.
+ */
+ uint32_t ri_freq GNUNET_PACKED;
+
+ /**
+ * IEEE80211_RADIOTAP_RATE * 50000, 0 if unknown.
+ */
+ uint32_t ri_rate GNUNET_PACKED;
+
+ /**
+ * IEEE80211_RADIOTAP_ANTENNA, 0 if unknown.
+ */
+ uint32_t ri_antenna GNUNET_PACKED;
+
+ /**
+ * IEEE Frame.
+ */
+ struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame frame;
+
+ /* followed by payload */
+};
+
+GNUNET_NETWORK_STRUCT_END
+
+/**
+ * GNUnet bssid
+ */
+static const struct GNUNET_TRANSPORT_WLAN_MacAddress mac_bssid_gnunet = {
+ {0x13, 0x22, 0x33, 0x44, 0x55, 0x66}
+};
+
+
+/**
+ * Broadcast MAC
+ */
+static const struct GNUNET_TRANSPORT_WLAN_MacAddress bc_all_mac = {
+ {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}