2 This file is part of GNUnet
3 (C) 2010, 2011 Christian Grothoff (and other contributing authors)
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
22 * @file transport/plugin_transport_wlan.h
23 * @brief header for transport plugin and the helper for wlan
24 * @author David Brodski
26 #ifndef PLUGIN_TRANSPORT_WLAN
27 #define PLUGIN_TRANSPORT_WLAN
30 #include "gnunet_common.h"
33 * Number fo bytes in a mac address.
35 #define MAC_ADDR_SIZE 6
42 uint8_t mac[MAC_ADDR_SIZE];
46 GNUNET_NETWORK_STRUCT_BEGIN
49 * Format of a WLAN Control Message.
51 struct GNUNET_TRANSPORT_WLAN_HelperControlMessage
54 * Message header. FIXME: type?
56 struct GNUNET_MessageHeader hdr;
59 * MAC Address. FIXME: of what?
61 struct MacAddress mac;
63 GNUNET_NETWORK_STRUCT_END
68 static const struct MacAddress mac_bssid_gnunet = {
69 {0x13, 0x22, 0x33, 0x44, 0x55, 0x66}
76 static const struct MacAddress bc_all_mac = {
77 {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}
89 * Antenna; the first antenna is 0.
94 * Transmit power expressed as unitless distance from max power set at factory calibration.
95 * 0 is max power. Monotonically nondecreasing with lower power levels.
102 * struct to represent infos gathered form the radiotap fields, see RadiotapHeader for more Infos
107 * FIXME: not initialized properly so far. (supposed to contain
108 * information about which of the fields below are actually valid).
113 * IEEE80211_RADIOTAP_TSFT
119 * either IEEE80211_RADIOTAP_DBM_ANTSIGNAL
120 * or IEEE80211_RADIOTAP_DB_ANTSIGNAL
125 * either IEEE80211_RADIOTAP_DBM_ANTNOISE
126 * or IEEE80211_RADIOTAP_DB_ANTNOISE
131 * IEEE80211_RADIOTAP_CHANNEL
136 * Frequency we use. FIXME: not properly initialized so far!
141 * IEEE80211_RADIOTAP_RATE * 50000
146 * IEEE80211_RADIOTAP_ANTENNA