diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-10-13 13:06:01 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-10-13 13:06:01 +0000 |
commit | f40b9f4d92412da3a1461f16069c8bbb425bd136 (patch) | |
tree | a1f9df4553aace1af037e465fe39b0f00a05c116 /src/transport/plugin_transport_wlan.c | |
parent | 86ad1393cdf6c8b37437c330fce25ebfffbc8ffd (diff) | |
download | gnunet-f40b9f4d92412da3a1461f16069c8bbb425bd136.tar.gz gnunet-f40b9f4d92412da3a1461f16069c8bbb425bd136.zip |
compile
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index dbc3e5493..51da7ec32 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -2334,12 +2334,10 @@ process_data (void *cls, void *client, const struct GNUNET_MessageHeader *hdr) | |||
2334 | struct Session *session = (struct Session *) client; | 2334 | struct Session *session = (struct Session *) client; |
2335 | struct Plugin *plugin = (struct Plugin *) cls; | 2335 | struct Plugin *plugin = (struct Plugin *) cls; |
2336 | 2336 | ||
2337 | struct GNUNET_TRANSPORT_ATS_Information distance[2]; | 2337 | struct GNUNET_TRANSPORT_ATS_Information distance; |
2338 | 2338 | ||
2339 | distance[0].type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE); | 2339 | distance.type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE); |
2340 | distance[0].value = htonl (1); | 2340 | distance.value = htonl (1); |
2341 | distance[1].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR); | ||
2342 | distance[1].value = htonl (0); | ||
2343 | 2341 | ||
2344 | #if DEBUG_wlan | 2342 | #if DEBUG_wlan |
2345 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, PLUGIN_LOG_NAME, | 2343 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, PLUGIN_LOG_NAME, |
@@ -2352,7 +2350,7 @@ process_data (void *cls, void *client, const struct GNUNET_MessageHeader *hdr) | |||
2352 | 2350 | ||
2353 | plugin->env->receive (plugin->env->cls, &(session->target), hdr, | 2351 | plugin->env->receive (plugin->env->cls, &(session->target), hdr, |
2354 | (const struct GNUNET_TRANSPORT_ATS_Information *) | 2352 | (const struct GNUNET_TRANSPORT_ATS_Information *) |
2355 | &distance, 2, session, | 2353 | &distance, 1, session, |
2356 | (const char *) &session->mac->addr, | 2354 | (const char *) &session->mac->addr, |
2357 | sizeof (session->mac->addr)); | 2355 | sizeof (session->mac->addr)); |
2358 | } | 2356 | } |