diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index 1c2fa35e7a115421cbd0edafe866740e644d5aa9..1ce62fd767cacc7e6c984dd87946ceef5a2608bc 100644
--- a/package/hostapd/files/hostapd.sh
+++ b/package/hostapd/files/hostapd.sh
@@ -85,6 +85,7 @@ hostapd_setup_vif() {
 		;;
 	esac
 	cat > /var/run/hostapd-$ifname.conf <<EOF
+ctrl_interface=/var/run/hostapd-$ifname
 driver=$driver
 interface=$ifname
 hw_mode=${hwmode:-g}
diff --git a/package/wpa_supplicant/files/wpa_supplicant.sh b/package/wpa_supplicant/files/wpa_supplicant.sh
index 9011adb2d06123ad89774c8b92595572a53b2e48..519f2553a64cee40653d4112133bdcf8c5ee93f1 100644
--- a/package/wpa_supplicant/files/wpa_supplicant.sh
+++ b/package/wpa_supplicant/files/wpa_supplicant.sh
@@ -58,6 +58,7 @@ wpa_supplicant_setup_vif() {
 	config_get bridge "$vif" bridge
 	config_get ssid "$vif" ssid
 	cat > /var/run/wpa_supplicant-$ifname.conf <<EOF
+ctrl_interface=/var/run/wpa_supplicant-$ifname
 network={
 	scan_ssid=1
 	ssid="$ssid"