diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-25 10:14:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-25 10:14:05 +0000 |
commit | f20dc7a1d1d4c480c126dcfe992d16a3620069f4 (patch) | |
tree | 24c7d5a2e5e5b31b7cec7e1692510d7d2a62b515 | |
parent | ea118db2ec2df22446216c9bf32c025dc4a805f5 (diff) | |
download | gnunet-f20dc7a1d1d4c480c126dcfe992d16a3620069f4.tar.gz gnunet-f20dc7a1d1d4c480c126dcfe992d16a3620069f4.zip |
-some more wlan code cleanup
-rw-r--r-- | src/transport/gnunet-transport-wlan-helper.c | 8 | ||||
-rw-r--r-- | src/transport/plugin_transport_wlan.h | 7 |
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 | */ |
461 | int | 457 | static int |
462 | ieee80211_radiotap_iterator_init (struct ieee80211_radiotap_iterator | 458 | ieee80211_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 | */ |
538 | int | 534 | static int |
539 | ieee80211_radiotap_iterator_next (struct ieee80211_radiotap_iterator | 535 | ieee80211_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 | |||
33 | struct MacAddress | 38 | struct MacAddress |
34 | { | 39 | { |
35 | u_int8_t mac[6]; | 40 | uint8_t mac[MAC_ADDR_SIZE]; |
36 | }; | 41 | }; |
37 | 42 | ||
38 | struct Wlan_Helper_Control_Message | 43 | struct Wlan_Helper_Control_Message |