X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=package%2Fhostapd%2Ffiles%2Fhostapd.sh;h=d80729f6c98e5e52e2a02ec6a248a03c81ac06ab;hp=7d110dbf6d1093ab796d2419a5ccfae1316f6044;hb=f1810ea753841f6b068093d2e39466a6f07cf631;hpb=d63c047dbd7ae3f5b1ce4d86c54023b6596e67db diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh index 7d110dbf6d..d80729f6c9 100644 --- a/package/hostapd/files/hostapd.sh +++ b/package/hostapd/files/hostapd.sh @@ -9,6 +9,9 @@ hostapd_set_bss_options() { config_get device "$vif" device config_get hwmode "$device" hwmode + config_get phy "$device" phy + + append "$var" "ctrl_interface=/var/run/hostapd-$phy" "$N" if [ "$ap_isolate" -gt 0 ]; then append "$var" "ap_isolate=$ap_isolate" "$N" @@ -184,7 +187,6 @@ hostapd_setup_vif() { [ "$channel" = auto ] && channel= [ -n "$channel" -a -z "$hwmode" ] && wifi_fixup_hwmode "$device" cat > /var/run/hostapd-$ifname.conf <