diff mbox

hostapd: fix some compilation errors

Message ID 1427630605-28626-1-git-send-email-eliad@wizery.com
State Accepted
Headers show

Commit Message

Eliad Peller March 29, 2015, 12:03 p.m. UTC
If NEED_AP_MLME=y is not defined, compilation might
fail under some configurations:

src/ap/drv_callbacks.c:594:2: warning: implicit declaration of
function ‘hostapd_acs_completed’ [-Wimplicit-function-declaration]

src/ap/sta_info.c:253: undefined reference to `sae_clear_retransmit_timer'

Fix these errors by adding the missing hostapd_acs_completed() stub,
and defining NEED_AP_MLME in case of CONFIG_SAE.

Signed-off-by: Eliad Peller <eliad@wizery.com>
---
 hostapd/Makefile     | 1 +
 src/ap/hw_features.h | 5 +++++
 2 files changed, 6 insertions(+)

Comments

Jouni Malinen March 29, 2015, 6:12 p.m. UTC | #1
On Sun, Mar 29, 2015 at 03:03:25PM +0300, Eliad Peller wrote:
> If NEED_AP_MLME=y is not defined, compilation might
> fail under some configurations:
> 
> src/ap/drv_callbacks.c:594:2: warning: implicit declaration of
> function ‘hostapd_acs_completed’ [-Wimplicit-function-declaration]
> 
> src/ap/sta_info.c:253: undefined reference to `sae_clear_retransmit_timer'
> 
> Fix these errors by adding the missing hostapd_acs_completed() stub,
> and defining NEED_AP_MLME in case of CONFIG_SAE.

Thanks, applied.
diff mbox

Patch

diff --git a/hostapd/Makefile b/hostapd/Makefile
index d718c15..7ec21ec 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -227,6 +227,7 @@  CFLAGS += -DCONFIG_SAE
 OBJS += ../src/common/sae.o
 NEED_ECC=y
 NEED_DH_GROUPS=y
+NEED_AP_MLME=y
 endif
 
 ifdef CONFIG_WNM
diff --git a/src/ap/hw_features.h b/src/ap/hw_features.h
index 0f67ab8..ca7f22b 100644
--- a/src/ap/hw_features.h
+++ b/src/ap/hw_features.h
@@ -36,6 +36,11 @@  static inline int hostapd_get_hw_features(struct hostapd_iface *iface)
 	return -1;
 }
 
+static inline int hostapd_acs_completed(struct hostapd_iface *iface, int err)
+{
+	return -1;
+}
+
 static inline int hostapd_select_hw_mode(struct hostapd_iface *iface)
 {
 	return -100;