merge r14039 to 8.09
authorAndy Boyett <agb@openwrt.org>
Thu, 15 Jan 2009 07:51:05 +0000 (07:51 +0000)
committerAndy Boyett <agb@openwrt.org>
Thu, 15 Jan 2009 07:51:05 +0000 (07:51 +0000)
[package] hostapd,wpa_supplicant: create control interfaces for hostapd_cli and wpa_cli

SVN-Revision: 14040

package/hostapd/files/hostapd.sh
package/wpa_supplicant/files/wpa_supplicant.sh

index 1c2fa35..1ce62fd 100644 (file)
@@ -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}
index debdf81..44211b4 100644 (file)
@@ -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"