Browse Source

Fixed couple of build failures with minimal configuration

Jouni Malinen 16 years ago
parent
commit
bc521fac13
3 changed files with 6 additions and 0 deletions
  1. 3 0
      hostapd/driver_madwifi.c
  2. 2 0
      hostapd/drv_callbacks.c
  3. 1 0
      hostapd/tkip_countermeasures.c

+ 3 - 0
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.

+ 2 - 0
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)

+ 1 - 0
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"