From ce140e52cbc4f2b2618f325c2d857d4df2c89510 Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 23 Aug 2008 21:21:04 +0000 Subject: Fix hostapd with open access point and per-device configuration, thanks sn9 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12375 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/hostapd/files/hostapd.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'package/hostapd/files') diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh index 660a90c3e..147736bdc 100644 --- a/package/hostapd/files/hostapd.sh +++ b/package/hostapd/files/hostapd.sh @@ -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 <