aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/transport/gnunet-transport-wlan-helper.c8
-rw-r--r--src/transport/plugin_transport_wlan.h7
2 files changed, 8 insertions, 7 deletions
diff --git a/src/transport/gnunet-transport-wlan-helper.c b/src/transport/gnunet-transport-wlan-helper.c
index c8f5a03fb..0e5d55b40 100644
--- a/src/transport/gnunet-transport-wlan-helper.c
+++ b/src/transport/gnunet-transport-wlan-helper.c
@@ -104,14 +104,10 @@
104#include "gnunet_server_lib.h" 104#include "gnunet_server_lib.h"
105#include "plugin_transport_wlan.h" 105#include "plugin_transport_wlan.h"
106 106
107#define DEBUG 1
108
109#define ARPHRD_IEEE80211 801 107#define ARPHRD_IEEE80211 801
110#define ARPHRD_IEEE80211_PRISM 802 108#define ARPHRD_IEEE80211_PRISM 802
111#define ARPHRD_IEEE80211_FULL 803 109#define ARPHRD_IEEE80211_FULL 803
112 110
113#define MAC_ADDR_SIZE 6
114
115/** 111/**
116 * size of 802.11 address 112 * size of 802.11 address
117 */ 113 */
@@ -458,7 +454,7 @@ struct ieee80211_radiotap_iterator
458 * which can be found in the iterator's this_arg_index member. This arg 454 * which can be found in the iterator's this_arg_index member. This arg
459 * index corresponds to the IEEE80211_RADIOTAP_... defines. 455 * index corresponds to the IEEE80211_RADIOTAP_... defines.
460 */ 456 */
461int 457static int
462ieee80211_radiotap_iterator_init (struct ieee80211_radiotap_iterator 458ieee80211_radiotap_iterator_init (struct ieee80211_radiotap_iterator
463 *iterator, 459 *iterator,
464 struct ieee80211_radiotap_header 460 struct ieee80211_radiotap_header
@@ -535,7 +531,7 @@ ieee80211_radiotap_iterator_init (struct ieee80211_radiotap_iterator
535 * can be changed by the caller. The args pointed to are in little-endian 531 * can be changed by the caller. The args pointed to are in little-endian
536 * format. 532 * format.
537 */ 533 */
538int 534static int
539ieee80211_radiotap_iterator_next (struct ieee80211_radiotap_iterator 535ieee80211_radiotap_iterator_next (struct ieee80211_radiotap_iterator
540 *iterator) 536 *iterator)
541{ 537{
diff --git a/src/transport/plugin_transport_wlan.h b/src/transport/plugin_transport_wlan.h
index 628ec85c2..7f6668cd3 100644
--- a/src/transport/plugin_transport_wlan.h
+++ b/src/transport/plugin_transport_wlan.h
@@ -30,9 +30,14 @@
30#include <stdint.h> 30#include <stdint.h>
31#include "gnunet_common.h" 31#include "gnunet_common.h"
32 32
33/**
34 * Number fo bytes in a mac address.
35 */
36#define MAC_ADDR_SIZE 6
37
33struct MacAddress 38struct MacAddress
34{ 39{
35 u_int8_t mac[6]; 40 uint8_t mac[MAC_ADDR_SIZE];
36}; 41};
37 42
38struct Wlan_Helper_Control_Message 43struct Wlan_Helper_Control_Message