wpa_supplicant: use wext driver for hostap and madwifi
[openwrt/svn-archive/archive.git] / package / madwifi / files / lib / wifi / madwifi.sh
index 8a4572db609bd0163e7f6b5c5bb87f49b51e1028..a180a82d888ce6714d2a624c1725d3e660d940a1 100755 (executable)
@@ -407,7 +407,7 @@ enable_atheros() {
                        ;;
                        wds|sta)
                                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
                                                ifconfig "$ifname" down
                                                wlanconfig "$ifname" destroy