diff options
author | Andy Boyett <agb@openwrt.org> | 2009-01-15 07:50:11 +0000 |
---|---|---|
committer | Andy Boyett <agb@openwrt.org> | 2009-01-15 07:50:11 +0000 |
commit | 6e9804e89cabeea686b9611354783063987d8ad7 (patch) | |
tree | 7d1750ee9a5154feddc56457a96a12bc70836d22 | |
parent | 9e9b1d118757f9191d787b4311e55fcdbcec7f3a (diff) | |
download | upstream-6e9804e89cabeea686b9611354783063987d8ad7.tar.gz upstream-6e9804e89cabeea686b9611354783063987d8ad7.tar.bz2 upstream-6e9804e89cabeea686b9611354783063987d8ad7.zip |
[package] hostapd,wpa_supplicant: create control interfaces for hostapd_cli and wpa_cli
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14039 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/hostapd/files/hostapd.sh | 1 | ||||
-rw-r--r-- | package/wpa_supplicant/files/wpa_supplicant.sh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh index 1c2fa35e7a..1ce62fd767 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 9011adb2d0..519f2553a6 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" |