1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-07 13:24:32 +03:00

don't try to set up wpa if hostapd is not installed

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7005 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2007-04-19 11:42:39 +00:00
parent 7a1a2ed509
commit f806cc2b9f

View File

@ -194,6 +194,7 @@ enable_atheros() {
iwconfig "$ifname" essid "$ssid"
case "$mode" in
ap)
if eval "type hostapd_setup_vif" 2>/dev/null >/dev/null; then
hostapd_setup_vif "$vif" madwifi || {
echo "enable_atheros($device): Failed to set up wpa for interface $ifname" >&2
# make sure this wifi interface won't accidentally stay open without encryption
@ -201,6 +202,7 @@ enable_atheros() {
wlanconfig "$ifname" destroy
continue
}
fi
;;
wds|sta)
case "$enc" in