From: David Brodski Date: Tue, 1 Feb 2011 22:31:57 +0000 (+0000) Subject: two errors fixed in wlan X-Git-Tag: initial-import-from-subversion-38251~19220 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ce676912837b36a8f73a062ad5fc184f653e154a;p=oweals%2Fgnunet.git two errors fixed in wlan --- diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index 5c9144a2f..02e6964d9 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c @@ -1050,7 +1050,7 @@ do_transmit(void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) uint copyoffset = 0; struct AckQueue * akt = NULL; -#if 0 +#if 1 struct GNUNET_MessageHeader * msgheader2 = NULL; //test if a "hello-beacon" has to be send @@ -1922,7 +1922,7 @@ wlan_data_helper(void *cls, void * client, const struct GNUNET_MessageHeader * h GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "After Information\n"); #endif - plugin->env->receive(plugin, &(session->target), temp_hdr, + plugin->env->receive(plugin->env, &(session->target), temp_hdr, (const struct GNUNET_TRANSPORT_ATS_Information *) &distance, 2, session, session->addr, sizeof(session->addr)); #if DEBUG_wlan @@ -2140,7 +2140,7 @@ wlan_process_helper (void *cls, temp_hdr = (struct GNUNET_MessageHeader *) &wlanIeeeHeader[1]; while (pos < hdr->size) { - wlan_data_helper(plugin, &session_light, temp_hdr); + wlan_data_helper(plugin, session_light, temp_hdr); pos += temp_hdr->size + sizeof(struct GNUNET_MessageHeader); } }