aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_wlan.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-12-06 14:55:46 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-12-06 14:55:46 +0000
commitafa1f268d5275e134566924a84e05ce631396cdb (patch)
tree93c76054a964878414073b0045d535e1c18cb21a /src/transport/plugin_transport_wlan.c
parentf3c95bc95d4bcf17893372c3bd74c509878cf840 (diff)
downloadgnunet-afa1f268d5275e134566924a84e05ce631396cdb.tar.gz
gnunet-afa1f268d5275e134566924a84e05ce631396cdb.zip
adding GNUnet endian operations
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r--src/transport/plugin_transport_wlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c
index bf5411d59..b5961ae38 100644
--- a/src/transport/plugin_transport_wlan.c
+++ b/src/transport/plugin_transport_wlan.c
@@ -1320,7 +1320,7 @@ getWlanHeader (struct ieee80211_frame *Header,
1320 memcpy (&Header->i_addr1, to_mac_addr, sizeof (struct MacAddress)); 1320 memcpy (&Header->i_addr1, to_mac_addr, sizeof (struct MacAddress));
1321 1321
1322 tmp16 = (uint16_t *) Header->i_dur; 1322 tmp16 = (uint16_t *) Header->i_dur;
1323 *tmp16 = (uint16_t) htole16 ((size * 1000000) / rate + 290); 1323 *tmp16 = (uint16_t) GNUNET_htole16 ((size * 1000000) / rate + 290);
1324 Header->llc[0] = WLAN_LLC_DSAP_FIELD; 1324 Header->llc[0] = WLAN_LLC_DSAP_FIELD;
1325 Header->llc[1] = WLAN_LLC_SSAP_FIELD; 1325 Header->llc[1] = WLAN_LLC_SSAP_FIELD;
1326 1326