hostapd: Fix some compilation errors
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>
This commit is contained in:
parent
ce18c10773
commit
154a1d5f7f
2 changed files with 6 additions and 0 deletions
|
@ -227,6 +227,7 @@ CFLAGS += -DCONFIG_SAE
|
||||||
OBJS += ../src/common/sae.o
|
OBJS += ../src/common/sae.o
|
||||||
NEED_ECC=y
|
NEED_ECC=y
|
||||||
NEED_DH_GROUPS=y
|
NEED_DH_GROUPS=y
|
||||||
|
NEED_AP_MLME=y
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef CONFIG_WNM
|
ifdef CONFIG_WNM
|
||||||
|
|
|
@ -36,6 +36,11 @@ static inline int hostapd_get_hw_features(struct hostapd_iface *iface)
|
||||||
return -1;
|
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)
|
static inline int hostapd_select_hw_mode(struct hostapd_iface *iface)
|
||||||
{
|
{
|
||||||
return -100;
|
return -100;
|
||||||
|
|
Loading…
Reference in a new issue