From: Florian Fainelli Date: Sat, 23 Aug 2008 21:21:04 +0000 (+0000) Subject: Fix hostapd with open access point and per-device configuration, thanks sn9 X-Git-Tag: reboot~25733 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6c56733f406baf4b83bbb86c76ee14432659e50f;p=openwrt%2Fstaging%2Fjogo.git Fix hostapd with open access point and per-device configuration, thanks sn9 SVN-Revision: 12375 --- diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh index 660a90c3ef..147736bdc6 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 <