]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Fix some compilation errors
authorEliad Peller <eliad@wizery.com>
Sun, 29 Mar 2015 12:03:25 +0000 (15:03 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 29 Mar 2015 17:51:14 +0000 (20:51 +0300)
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
src/ap/hw_features.h

index 3ea1315436856a51655e745b25de2ed8f14c53ee..3c7bd6f9d52a235d6c512f24552af37b967f31f7 100644 (file)
@@ -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
index 0f67ab8e5f37ff2711fe8efa6c69727a966e0bb8..ca7f22ba205bf208c494aa31bdf0e52cc4a59aba 100644 (file)
@@ -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;