Fixed couple of build failures with minimal configuration
authorJouni Malinen <jouni.malinen@atheros.com>
Mon, 12 Jan 2009 13:08:33 +0000 (15:08 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 12 Jan 2009 13:08:33 +0000 (15:08 +0200)
hostapd/driver_madwifi.c
hostapd/drv_callbacks.c
hostapd/tkip_countermeasures.c

index 0ce2fe9..6238976 100644 (file)
@@ -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.
index dec7eb9..e5b2efb 100644 (file)
@@ -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)
index f18f44b..92019b3 100644 (file)
@@ -20,6 +20,7 @@
 #include "sta_info.h"
 #include "mlme.h"
 #include "wpa.h"
+#include "ieee802_11_defs.h"
 #include "tkip_countermeasures.h"