]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Android: Pass the vendor events to $(BOARD_HOSTAPD_PRIVATE_LIB)
authorMohammad Asaad Akram <asadkrm@codeaurora.org>
Thu, 13 May 2021 04:50:40 +0000 (10:20 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 27 May 2021 17:58:09 +0000 (20:58 +0300)
Introduce a new board configuration via
$(BOARD_HOSTAPD_PRIVATE_LIB_EVENT) rather than reusing
$(BOARD_HOSTAPD_PRIVATE_LIB) to pass vendor events handling in the
hostapd private library. This is to avoid compilation issues for
wpa_driver_nl80211_driver_event() with the already existing private
library implementations defined with $(BOARD_HOSTAPD_PRIVATE_LIB).

This is similar to the existing BOARD_WPA_SUPPLICANT_PRIVATE_LIB_EVENT
parameter for the wpa_supplicant build.

Signed-off-by: Mohammad Asaad Akram <asadkrm@codeaurora.org>
hostapd/Android.mk

index b3af96886996fbd4e33bac76329d4e3e9a36264d..dd8aa2450d7e5c144874940d469da8b445d235a7 100644 (file)
@@ -34,6 +34,10 @@ ifeq ($(BOARD_HOSTAPD_PRIVATE_LIB),)
 L_CFLAGS += -DANDROID_LIB_STUB
 endif
 
+ifneq ($(BOARD_HOSTAPD_PRIVATE_LIB_EVENT),)
+L_CFLAGS += -DANDROID_LIB_EVENT
+endif
+
 # Use Android specific directory for control interface sockets
 L_CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/misc/wifi/sockets\"
 L_CFLAGS += -DCONFIG_CTRL_IFACE_DIR=\"/data/system/hostapd\"