]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd_cli: Enable command completion and history for Android
authorMikael Kanstrup <mikael.kanstrup@sonymobile.com>
Wed, 12 Oct 2016 12:18:54 +0000 (14:18 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 16 Oct 2016 08:55:02 +0000 (11:55 +0300)
Signed-off-by: Mikael Kanstrup <mikael.kanstrup@sonymobile.com>
hostapd/Android.mk
hostapd/android.config

index 1cc78d7e252ed09b59db2e2230399ef665da0dfb..f9ce8773c4e2b12af45ecad56c3182619e55185e 100644 (file)
@@ -38,6 +38,9 @@ endif
 L_CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/misc/wifi/sockets\"
 L_CFLAGS += -DCONFIG_CTRL_IFACE_DIR=\"/data/system/hostapd\"
 
+# Use Android specific directory for hostapd_cli command completion history
+L_CFLAGS += -DCONFIG_HOSTAPD_CLI_HISTORY_DIR=\"/data/misc/wifi\"
+
 # To force sizeof(enum) = 4
 ifeq ($(TARGET_ARCH),arm)
 L_CFLAGS += -mabi=aapcs-linux
index e382c4081ebba365e61c82c8fc3eddf1ada04231..1715cc848a0e6fc030d15238809270f97a985aeb 100644 (file)
@@ -199,3 +199,6 @@ CONFIG_AP=y
 # These extentions facilitate efficient use of multiple frequency bands
 # available to the AP and the devices that may associate with it.
 #CONFIG_MBO=y
+
+# Include internal line edit mode in hostapd_cli.
+CONFIG_WPA_CLI_EDIT=y