-some more wlan code cleanup
authorChristian Grothoff <christian@grothoff.org>
Fri, 25 Nov 2011 10:14:05 +0000 (10:14 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 25 Nov 2011 10:14:05 +0000 (10:14 +0000)
src/transport/gnunet-transport-wlan-helper.c
src/transport/plugin_transport_wlan.h

index c8f5a03fb5feea336f6532fb795677c0ac11267f..0e5d55b40edd4296bc049487defa36ac6adcd8d5 100644 (file)
 #include "gnunet_server_lib.h"
 #include "plugin_transport_wlan.h"
 
-#define DEBUG 1
-
 #define ARPHRD_IEEE80211        801
 #define ARPHRD_IEEE80211_PRISM  802
 #define ARPHRD_IEEE80211_FULL   803
 
-#define MAC_ADDR_SIZE 6
-
 /**
  * size of 802.11 address
  */
@@ -458,7 +454,7 @@ struct ieee80211_radiotap_iterator
  * which can be found in the iterator's this_arg_index member.  This arg
  * index corresponds to the IEEE80211_RADIOTAP_... defines.
  */
-int
+static int
 ieee80211_radiotap_iterator_init (struct ieee80211_radiotap_iterator
                                  *iterator,
                                  struct ieee80211_radiotap_header
@@ -535,7 +531,7 @@ ieee80211_radiotap_iterator_init (struct ieee80211_radiotap_iterator
  * can be changed by the caller.  The args pointed to are in little-endian
  * format.
  */
-int
+static int
 ieee80211_radiotap_iterator_next (struct ieee80211_radiotap_iterator
                                  *iterator)
 {
index 628ec85c287fc97532aa7915ceb6e891d32c26f7..7f6668cd31cd4847f8496fcc8ddea02af2f9b959 100644 (file)
 #include <stdint.h>
 #include "gnunet_common.h"
 
+/**
+ * Number fo bytes in a mac address.
+ */
+#define MAC_ADDR_SIZE 6
+
 struct MacAddress
 {
-  u_int8_t mac[6];
+  uint8_t mac[MAC_ADDR_SIZE];
 };
 
 struct Wlan_Helper_Control_Message