From: Matthias Wachs Date: Wed, 18 May 2011 09:50:32 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~18464 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=21bb30f3835f38bcb77fa5cb161e3454f5fff800;p=oweals%2Fgnunet.git --- diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index d98dc9dc8..26eda2b97 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c @@ -60,7 +60,7 @@ #define HALLO_BEACON_SCALING_FACTOR 900 -#define DEBUG_wlan GNUNET_NO +#define DEBUG_wlan GNUNET_YES #define DEBUG_wlan_retransmission GNUNET_NO #define MESSAGE_LENGHT_UNKNOWN -1 @@ -2043,10 +2043,7 @@ static int is_double_msg(struct Receive_Message_Queue * rx_msg, struct FragmentationHeader * fh) { - //test if bitfield is okay -#if DEBUG_wlan - check_message_fragment_bitfield(rx_msg); -#endif + return testBit((char *) &rx_msg->received_fragments, ntohs( fh->fragment_off_or_num)); @@ -2257,10 +2254,6 @@ check_rx_finished_msg(struct Plugin* plugin, return; } -#if DEBUG_wlan - check_message_fragment_bitfield(rx_message); -#endif - // if (rx_message->frag_tail->num == ffsl(rx_message->received_fragments)) // { bitfield = ~bitfield;