]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
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 0ce2fe990b97616091bc3a1ff9002e5c62871e1c..623897683e494dcdd4e50e694986c969eb624a1e 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 dec7eb9cdea4cf1708c5d236be09c26044491701..e5b2efb5b2d0ad3e7eca509c80e699b6da0b41e9 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 f18f44bf022c4fd010841529d5efe1f736bacab8..92019b3179fd60ec191c7cda85480643d4071420 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"