wpa_supplicant: use wext driver for hostap and madwifi

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31081 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2012-03-27 10:44:26 +00:00
parent 3ad1877dd2
commit 699baacf38
2 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ enable_prism2() {
;; ;;
wds|sta) wds|sta)
if eval "type wpa_supplicant_setup_vif" 2>/dev/null >/dev/null; then if eval "type wpa_supplicant_setup_vif" 2>/dev/null >/dev/null; then
wpa_supplicant_setup_vif "$vif" hostap || { wpa_supplicant_setup_vif "$vif" wext || {
echo "enable_prism2($device): Failed to set up wpa_supplicant for interface $ifname" >&2 echo "enable_prism2($device): Failed to set up wpa_supplicant for interface $ifname" >&2
ifconfig "$ifname" down ifconfig "$ifname" down
continue continue

View File

@ -407,7 +407,7 @@ enable_atheros() {
;; ;;
wds|sta) wds|sta)
if eval "type wpa_supplicant_setup_vif" 2>/dev/null >/dev/null; then if eval "type wpa_supplicant_setup_vif" 2>/dev/null >/dev/null; then
wpa_supplicant_setup_vif "$vif" madwifi || { wpa_supplicant_setup_vif "$vif" wext || {
echo "enable_atheros($device): Failed to set up wpa_supplicant for interface $ifname" >&2 echo "enable_atheros($device): Failed to set up wpa_supplicant for interface $ifname" >&2
ifconfig "$ifname" down ifconfig "$ifname" down
wlanconfig "$ifname" destroy wlanconfig "$ifname" destroy