I have an Awus050nh on the rt2870 chipset and its been a real pain.
It works and you can probably get it to do almost anything you want but not without a LOT of arseing around. Currently I use the BT4 prefinal rt2870sta driver to connect to anything, but I also have to have the compat wireless drivers installed and switch between the 2 to do anything with aircrack. MOst dissapointing, the drivers from ralink are just crap I think. Maybe I just have a duff card.
I'm going to post these scripts I use to get the thing to connect to a router. rutilt works for WEP, its pretty good actually, but it only does wep.
I think these should work for any card, but basically I have to apply connection settings before AND after using dhclient to reliably connect to a network...
For WEP:
Code:
#!/bin/sh
ifconfig ra0 down
modprobe -r rt2870sta
modprobe rt2870sta
ifconfig ra0 up
echo "Network essid (name):"
read essid
echo "AUTH type OPEN or SHARED:"
read auth
echo "WEP key:"
read key
iwconfig ra0 rate 1M
iwconfig ra0 mode managed
iwpriv ra0 set NetworkType=Infra
iwpriv ra0 set AuthMode=$auth
iwpriv ra0 set EncrypType=WEP
iwpriv ra0 set DefaultKeyID=1
if test $key
then
iwconfig ra0 key $key
iwpriv ra0 set Key1="$key"
fi
iwconfig ra0 essid $essid
iwpriv ra0 set SSID="$essid"
konsole -e dhclient ra0 &
sleep 3
iwconfig ra0 rate 1M
iwconfig ra0 mode managed
iwpriv ra0 set NetworkType=Infra
iwpriv ra0 set AuthMode=$auth
iwpriv ra0 set EncrypType=WEP
iwpriv ra0 set DefaultKeyID=1
if test $key
then
iwconfig ra0 key $key
iwpriv ra0 set Key1="$key"
fi
iwconfig ra0 essid $essid
iwpriv ra0 set SSID="$essid"
For WPA:
Code:
#!/bin/sh
ifconfig ra0 down
modprobe -r rt2870sta
modprobe rt2870sta
ifconfig ra0 up
echo "Network essid (name):"
read essid
echo "AuthMode WPAPSK or WPA2PSK:"
read mode
echo "Encryption type TKIP or AES:"
read enc
echo "WPA key:"
read key
iwconfig ra0 rate 1M
iwconfig ra0 mode managed
iwconfig ra0 essid $essid
iwpriv ra0 set SSID=$essid
iwpriv ra0 set AuthMode=$mode
iwpriv ra0 set WPAPSK="$key"
iwpriv ra0 set EncrypType=$enc
konsole -e dhclient ra0 &
sleep 3
iwconfig ra0 rate 1M
iwconfig ra0 mode managed
iwconfig ra0 essid $essid
iwpriv ra0 set SSID=$essid
iwpriv ra0 set AuthMode=$mode
iwpriv ra0 set WPAPSK="$key"
iwpriv ra0 set EncrypType=$enc
like I said I have to switch between 2 drivers for aircrack stuff, this involves installing compat wireless drivers, blacklisting them and blacklisting the bt4 rt2870sta driver and bringing them up as I need them.
For which I use these:
Code:
#!/bin/sh
ifconfig wlan0 down
sleep 3
rmmod rt2800usb
rmmod rt2x00usb
rmmod rt2x00lib
rmmod mac80211
rmmod cfg80211
rmmod rfkill_backport
rmmod input_polldev
rmmod led_class
sleep 3
modprobe rt2870sta
Code:
#!/bin/sh
ifconfig ra0 down
sleep 3
modprobe -r rt2870sta
modprobe rt2800usb
sleep 3
ifconfig wlan0 up
hope this helps someone somewhere.
Links to drivers: hxxp://wireless.kernel.org/download/compat-wireless-2.6/