]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Add build options for selecting eloop type
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 23 Jul 2015 15:45:31 +0000 (18:45 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 23 Jul 2015 15:48:41 +0000 (18:48 +0300)
This adds CONFIG_ELOOP_POLL=y and CONFIG_ELOOP_EPOLL=y options to
hostapd build options similarly to how these were implemented for
wpa_supplicant.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
hostapd/Android.mk
hostapd/Makefile
hostapd/android.config
hostapd/defconfig

index f2c498dd36ae5538bda76d3044919b11597a35f0..b4e6ef3241ff6cbd1369b4a82fa691d481ebf472 100644 (file)
@@ -127,6 +127,15 @@ endif
 endif
 
 OBJS += src/utils/eloop.c
+
+ifdef CONFIG_ELOOP_POLL
+L_CFLAGS += -DCONFIG_ELOOP_POLL
+endif
+
+ifdef CONFIG_ELOOP_EPOLL
+L_CFLAGS += -DCONFIG_ELOOP_EPOLL
+endif
+
 OBJS += src/utils/common.c
 OBJS += src/utils/wpa_debug.c
 OBJS += src/utils/wpabuf.c
index 086a6412e48427a91645d12fda42198ee1c20018..797b1b4c507de6673b878fcf3e5fcef4c9b87daa 100644 (file)
@@ -107,6 +107,14 @@ LIBS_h += -lrt
 LIBS_n += -lrt
 endif
 
+ifdef CONFIG_ELOOP_POLL
+CFLAGS += -DCONFIG_ELOOP_POLL
+endif
+
+ifdef CONFIG_ELOOP_EPOLL
+CFLAGS += -DCONFIG_ELOOP_EPOLL
+endif
+
 OBJS += ../src/utils/common.o
 OBJS_c += ../src/utils/common.o
 OBJS += ../src/utils/wpa_debug.o
index 106e97940b79c027937e64c22d370e2bce832c11..0b1d7c769a62215f6bb95e127f8cca6323893276 100644 (file)
@@ -180,6 +180,12 @@ CONFIG_OS=unix
 #LIBS_p += -lbfd -liberty -lz
 #LIBS_c += -lbfd -liberty -lz
 
+# Should we use poll instead of select? Select is used by default.
+#CONFIG_ELOOP_POLL=y
+
+# Should we use epoll instead of select? Select is used by default.
+#CONFIG_ELOOP_EPOLL=y
+
 # Enable AP
 CONFIG_AP=y
 
index 62a0edeea61c3dc6f2cef0a25c56096f54780539..430f7584b16750f46fd865d80d30e41bd0c7a08f 100644 (file)
@@ -240,6 +240,12 @@ CONFIG_IPV6=y
 # requirements described above.
 #CONFIG_NO_RANDOM_POOL=y
 
+# Should we use poll instead of select? Select is used by default.
+#CONFIG_ELOOP_POLL=y
+
+# Should we use epoll instead of select? Select is used by default.
+#CONFIG_ELOOP_EPOLL=y
+
 # Select TLS implementation
 # openssl = OpenSSL (default)
 # gnutls = GnuTLS