diff --git a/hostapd/driver_madwifi.c b/hostapd/driver_madwifi.c index 0ce2fe990..623897683 100644 --- a/hostapd/driver_madwifi.c +++ b/hostapd/driver_madwifi.c @@ -63,6 +63,7 @@ #include "common.h" #include "wps_hostapd.h" +#include "ieee802_11_defs.h" struct madwifi_driver_data { @@ -202,6 +203,7 @@ set80211param(struct madwifi_driver_data *drv, int op, int arg) return 0; } +#ifndef CONFIG_NO_STDOUT_DEBUG static const char * ether_sprintf(const u8 *addr) { @@ -213,6 +215,7 @@ 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. diff --git a/hostapd/drv_callbacks.c b/hostapd/drv_callbacks.c index dec7eb9cd..e5b2efb5b 100644 --- a/hostapd/drv_callbacks.c +++ b/hostapd/drv_callbacks.c @@ -252,6 +252,7 @@ void hostapd_eapol_receive(struct hostapd_data *hapd, const u8 *sa, } +#ifdef NEED_MLME void hostapd_mgmt_rx(struct hostapd_data *hapd, u8 *buf, size_t len, u16 stype, struct hostapd_frame_info *fi) { @@ -264,6 +265,7 @@ void hostapd_mgmt_tx_cb(struct hostapd_data *hapd, u8 *buf, size_t len, { ieee802_11_mgmt_cb(hapd, buf, len, stype, ok); } +#endif /* NEED_MLME */ void hostapd_michael_mic_failure(struct hostapd_data *hapd, const u8 *addr) diff --git a/hostapd/tkip_countermeasures.c b/hostapd/tkip_countermeasures.c index f18f44bf0..92019b317 100644 --- a/hostapd/tkip_countermeasures.c +++ b/hostapd/tkip_countermeasures.c @@ -20,6 +20,7 @@ #include "sta_info.h" #include "mlme.h" #include "wpa.h" +#include "ieee802_11_defs.h" #include "tkip_countermeasures.h"