Update default dirs for socket and cmd history in hostapd/hostapd_cli
This patch updates default directories for control interface sockets and
hostapd_cli command completion history to fit into P environment. This
also makes hostapd_cli command work without arguments.
Bug: 79305691
Test: Manual check that softAp works and ran hostapd_cli w/o args
Change-Id: I9feca7e409e648e8551a9a4edf2d97d465f25183
diff --git a/hostapd/Android.mk b/hostapd/Android.mk
index b4b0fea..54d12f6 100644
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -46,11 +46,11 @@
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\"
+L_CFLAGS += -DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/vendor/wifi/hostapd/sockets\"
+L_CFLAGS += -DCONFIG_CTRL_IFACE_DIR=\"/data/vendor/wifi/hostapd/ctrl\"
# Use Android specific directory for hostapd_cli command completion history
-L_CFLAGS += -DCONFIG_HOSTAPD_CLI_HISTORY_DIR=\"/data/misc/wifi\"
+L_CFLAGS += -DCONFIG_HOSTAPD_CLI_HISTORY_DIR=\"/data/vendor/wifi/hostapd\"
# To force sizeof(enum) = 4
ifeq ($(TARGET_ARCH),arm)