From 9efed66845c662f7eab927f49f66d318055e2783 Mon Sep 17 00:00:00 2001 From: Mohammad Asaad Akram Date: Thu, 13 May 2021 10:20:40 +0530 Subject: [PATCH] Android: Pass the vendor events to $(BOARD_HOSTAPD_PRIVATE_LIB) 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 --- hostapd/Android.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hostapd/Android.mk b/hostapd/Android.mk index b3af96886..dd8aa2450 100644 --- a/hostapd/Android.mk +++ b/hostapd/Android.mk @@ -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\"