aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Android.mk
diff options
context:
space:
mode:
authorChristopher Wiley <wiley@google.com>2016-08-17 17:21:01 (GMT)
committerJouni Malinen <j@w1.fi>2016-08-18 07:50:59 (GMT)
commit9d5d1c5dd2ba9e470de5d6ab70d35119f76c8ff2 (patch)
tree95134d628d52597ab8998e55b38a385d8a8d53b6 /hostapd/Android.mk
parentecba4509d94a50f8ecf26399d4cf2cb352549c9c (diff)
downloadhostap-9d5d1c5dd2ba9e470de5d6ab70d35119f76c8ff2.zip
hostap-9d5d1c5dd2ba9e470de5d6ab70d35119f76c8ff2.tar.gz
hostap-9d5d1c5dd2ba9e470de5d6ab70d35119f76c8ff2.tar.bz2
Add init fragment for hostapd on Android
This fragment defines how the Android init system should start hostapd as a standalone service. Previously, hostapd was fork/exec'd from Android's netd. This left hostapd with some dangling file descriptors and a process parent minimally interested in acting as init for child processes. Signed-off-by: Christopher Wiley <wiley@google.com>
Diffstat (limited to 'hostapd/Android.mk')
-rw-r--r--hostapd/Android.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/hostapd/Android.mk b/hostapd/Android.mk
index 5dee966..ea3a39a 100644
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -995,6 +995,7 @@ endif
LOCAL_CFLAGS := $(L_CFLAGS)
LOCAL_SRC_FILES := $(OBJS)
LOCAL_C_INCLUDES := $(INCLUDES)
+LOCAL_INIT_RC := hostapd.android.rc
include $(BUILD_EXECUTABLE)
endif # ifeq ($(WPA_BUILD_HOSTAPD),true)