wpa_supplicant: use wext driver for hostap and madwifi
authorFelix Fietkau <nbd@openwrt.org>
Tue, 27 Mar 2012 10:44:26 +0000 (10:44 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 27 Mar 2012 10:44:26 +0000 (10:44 +0000)
SVN-Revision: 31081

package/hostap-driver/files/lib/wifi/hostap.sh
package/madwifi/files/lib/wifi/madwifi.sh

index 1491c6d54a19bdf02dac916f7f4f4b408b82a0ce..62d2e7e472f1a128b56b2e685080537b74dd52cf 100755 (executable)
@@ -211,7 +211,7 @@ enable_prism2() {
                        ;;
                        wds|sta)
                                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
                                                ifconfig "$ifname" down
                                                continue
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