fix hostapd startup for no-crypto configurations
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 30 Jan 2009 02:52:14 +0000 (02:52 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 30 Jan 2009 02:52:14 +0000 (02:52 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14276 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/hostapd/files/hostapd.sh

index 1ce62fd..a2f2d6f 100644 (file)
@@ -67,6 +67,7 @@ hostapd_setup_vif() {
                ;;
                *)
                        wpa=0
+                       crypto=
                ;;
        esac
        config_get ifname "$vif" ifname
@@ -94,7 +95,7 @@ ${bridge:+bridge=$bridge}
 ssid=$ssid
 debug=0
 wpa=$wpa
-wpa_pairwise=$crypto
+${crypto:+wpa_pairwise=$crypto}
 $hostapd_cfg
 EOF
        hostapd -P /var/run/wifi-$ifname.pid -B /var/run/hostapd-$ifname.conf
This page took 0.023112 seconds and 4 git commands to generate.