--- ./src/common/wpa_ctrl.c.orig	2022-05-13 21:55:41.144308316 +0200
+++ ./src/common/wpa_ctrl.c	2022-05-13 21:55:21.340460410 +0200
@@ -78,7 +78,7 @@
 #ifdef CONFIG_CTRL_IFACE_UNIX
 
 #ifndef CONFIG_CTRL_IFACE_CLIENT_DIR
-#define CONFIG_CTRL_IFACE_CLIENT_DIR "/tmp"
+#define CONFIG_CTRL_IFACE_CLIENT_DIR "@TERMUX_PREFIX@/tmp"
 #endif /* CONFIG_CTRL_IFACE_CLIENT_DIR */
 #ifndef CONFIG_CTRL_IFACE_CLIENT_PREFIX
 #define CONFIG_CTRL_IFACE_CLIENT_PREFIX "wpa_ctrl_"
