#include "common.h"
#include "wps_hostapd.h"
+#include "ieee802_11_defs.h"
struct madwifi_driver_data {
return 0;
}
+#ifndef CONFIG_NO_STDOUT_DEBUG
static const char *
ether_sprintf(const u8 *addr)
{
snprintf(buf, sizeof(buf), MACSTR, 0,0,0,0,0,0);
return buf;
}
+#endif /* CONFIG_NO_STDOUT_DEBUG */
/*
* Configure WPA parameters.
eth = (struct l2_ethhdr *) bp;
memcpy(eth->h_dest, addr, ETH_ALEN);
memcpy(eth->h_source, own_addr, ETH_ALEN);
- eth->h_proto = htons(ETH_P_EAPOL);
+ eth->h_proto = host_to_be16(ETH_P_EAPOL);
memcpy(eth+1, data, data_len);
wpa_hexdump(MSG_MSGDUMP, "TX EAPOL", bp, len);