Fix hostapd with open access point and per-device configuration, thanks sn9

SVN-Revision: 12375
owl
Florian Fainelli 2008-08-23 21:21:04 +00:00
parent f2c022c927
commit 6c56733f40
1 changed files with 5 additions and 1 deletions

View File

@ -62,15 +62,19 @@ hostapd_setup_vif() {
append hostapd_cfg "wpa_gmk_rekey=640" "$N"
;;
*)
return 0;
wpa=0
;;
esac
config_get ifname "$vif" ifname
config_get bridge "$vif" bridge
config_get ssid "$vif" ssid
config_get device "$vif" device
config_get channel "$device" channel
cat > /var/run/hostapd-$ifname.conf <<EOF
driver=$driver
interface=$ifname
hw_mode=g
channel=$channel
${bridge:+bridge=$bridge}
ssid=$ssid
debug=0