mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-14 19:04:39 +00:00
don't try to set up wpa if hostapd is not installed
SVN-Revision: 7005
This commit is contained in:
parent
1099e2d679
commit
4062525157
@ -194,13 +194,15 @@ enable_atheros() {
|
|||||||
iwconfig "$ifname" essid "$ssid"
|
iwconfig "$ifname" essid "$ssid"
|
||||||
case "$mode" in
|
case "$mode" in
|
||||||
ap)
|
ap)
|
||||||
hostapd_setup_vif "$vif" madwifi || {
|
if eval "type hostapd_setup_vif" 2>/dev/null >/dev/null; then
|
||||||
echo "enable_atheros($device): Failed to set up wpa for interface $ifname" >&2
|
hostapd_setup_vif "$vif" madwifi || {
|
||||||
# make sure this wifi interface won't accidentally stay open without encryption
|
echo "enable_atheros($device): Failed to set up wpa for interface $ifname" >&2
|
||||||
ifconfig "$ifname" down
|
# make sure this wifi interface won't accidentally stay open without encryption
|
||||||
wlanconfig "$ifname" destroy
|
ifconfig "$ifname" down
|
||||||
continue
|
wlanconfig "$ifname" destroy
|
||||||
}
|
continue
|
||||||
|
}
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
wds|sta)
|
wds|sta)
|
||||||
case "$enc" in
|
case "$enc" in
|
||||||
|
Loading…
Reference in New Issue
Block a user