diff options
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index 0c60bd68c..13f414f30 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -1221,7 +1221,7 @@ getRadiotapHeader (struct Plugin *plugin, struct MacEndpoint *endpoint, | |||
1221 | struct GNUNET_TRANSPORT_WLAN_RadiotapSendMessage *header, | 1221 | struct GNUNET_TRANSPORT_WLAN_RadiotapSendMessage *header, |
1222 | uint16_t size) | 1222 | uint16_t size) |
1223 | { | 1223 | { |
1224 | header->header.type = ntohs (GNUNET_MESSAGE_TYPE_WLAN_HELPER_DATA); | 1224 | header->header.type = ntohs (GNUNET_MESSAGE_TYPE_WLAN_DATA_TO_HELPER); |
1225 | header->header.size = ntohs (size); | 1225 | header->header.size = ntohs (size); |
1226 | if (endpoint != NULL) | 1226 | if (endpoint != NULL) |
1227 | { | 1227 | { |
@@ -2778,12 +2778,12 @@ wlan_process_helper (void *cls, void *client, | |||
2778 | GNUNET_assert (plugin != NULL); | 2778 | GNUNET_assert (plugin != NULL); |
2779 | switch (ntohs (hdr->type)) | 2779 | switch (ntohs (hdr->type)) |
2780 | { | 2780 | { |
2781 | case GNUNET_MESSAGE_TYPE_WLAN_HELPER_DATA: | 2781 | case GNUNET_MESSAGE_TYPE_WLAN_DATA_FROM_HELPER: |
2782 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, PLUGIN_LOG_NAME, | 2782 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, PLUGIN_LOG_NAME, |
2783 | "Func wlan_process_helper got GNUNET_MESSAGE_TYPE_WLAN_HELPER_DATA size: %u\n", | 2783 | "Got data message from helper with %u bytes\n", |
2784 | ntohs (hdr->size)); | 2784 | ntohs (hdr->size)); |
2785 | GNUNET_STATISTICS_update (plugin->env->stats, | 2785 | GNUNET_STATISTICS_update (plugin->env->stats, |
2786 | _("# wlan WLAN_HELPER_DATA received"), 1, | 2786 | _("# wlan data messages received"), 1, |
2787 | GNUNET_NO); | 2787 | GNUNET_NO); |
2788 | //call wlan_process_helper with the message inside, later with wlan: analyze signal | 2788 | //call wlan_process_helper with the message inside, later with wlan: analyze signal |
2789 | if (ntohs (hdr->size) < sizeof (struct GNUNET_TRANSPORT_WLAN_RadiotapReceiveMessage)) | 2789 | if (ntohs (hdr->size) < sizeof (struct GNUNET_TRANSPORT_WLAN_RadiotapReceiveMessage)) |