hostapd,wpa_supplicant: create control interfaces for hostapd_cli and wpa_cli
SVN-Revision: 14039
This commit is contained in:
parent
65f21ce0d3
commit
aa59a08b45
2 changed files with 2 additions and 0 deletions
|
@ -85,6 +85,7 @@ hostapd_setup_vif() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
cat > /var/run/hostapd-$ifname.conf <<EOF
|
cat > /var/run/hostapd-$ifname.conf <<EOF
|
||||||
|
ctrl_interface=/var/run/hostapd-$ifname
|
||||||
driver=$driver
|
driver=$driver
|
||||||
interface=$ifname
|
interface=$ifname
|
||||||
hw_mode=${hwmode:-g}
|
hw_mode=${hwmode:-g}
|
||||||
|
|
|
@ -58,6 +58,7 @@ wpa_supplicant_setup_vif() {
|
||||||
config_get bridge "$vif" bridge
|
config_get bridge "$vif" bridge
|
||||||
config_get ssid "$vif" ssid
|
config_get ssid "$vif" ssid
|
||||||
cat > /var/run/wpa_supplicant-$ifname.conf <<EOF
|
cat > /var/run/wpa_supplicant-$ifname.conf <<EOF
|
||||||
|
ctrl_interface=/var/run/wpa_supplicant-$ifname
|
||||||
network={
|
network={
|
||||||
scan_ssid=1
|
scan_ssid=1
|
||||||
ssid="$ssid"
|
ssid="$ssid"
|
||||||
|
|
Loading…
Reference in a new issue