aptitude update
aptitude install firmware-ralink wireless-tools
echo "blacklist rt2800usb" >> /etc/modprobe.d/blacklist
aptitude install wpasupplicant
auto wlan0
iface wlan0 inet static
address 172.16.0.3
netmask 255.255.255.0
gateway 172.16.0.1
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="nobody"
#psk="passphrase"
psk=05e31b9d1544c68360877425983d85aec46cdebd849961f83e257eca61532fd3
}
and copy the output to our configuration file).wpa_passphrase <ssid> [passphrase]
RT2870 driver can be configured via following interfaces,
ie (i)"iwconfig" command, (ii)"iwpriv" command, (iii) configuration file
i) iwconfig comes with kernel.
ii) iwpriv usage, please refer to file "iwpriv_usage.txt" for details.
iii)modify configuration file "RT2870STA.dat" in /etc/Wireless/RT2870STA/RT2870STA.dat.
@> WirelessMode=value
value
0: legacy 11b/g mixed
1: legacy 11B only
2: legacy 11A only //Not support in RfIcType=1(id=RFIC_5225) and RfIcType=2(id=RFIC_5325)
3: legacy 11a/b/g mixed //Not support in RfIcType=1(id=RFIC_5225) and RfIcType=2(id=RFIC_5325)
4: legacy 11G only
5: 11ABGN mixed
6: 11N only
7: 11GN mixed
8: 11AN mixed
9: 11BGN mixed
10: 11AGN mixed
[ 10.584155] <-- RTMPAllocTxRxRingMemory, Status=0
[ 10.585882] -->RTUSBVenderReset
[ 10.586007] <--RTUSBVenderReset
[ 10.874039] --> Error 2 opening /etc/Wireless/RT3070STA/RT3070STA.dat
[ 10.874042] 1. Phy Mode = 0
[ 10.874044] 2. Phy Mode = 0
[ 10.903181] RTMPSetPhyMode: channel is out of range, use first channel=1
[ 10.913054] 3. Phy Mode = 0
[ 10.917313] MCS Set = 00 00 00 00 00
[ 10.926551] <==== RTMPInitialize, Status=0
[ 10.928068] 0x1300 = 000a4200
[ 14.217511] fuse init (API version 7.13)
[ 14.793973] DRS: unkown mode,default use 11N 1S AP
[ 14.793978] DRS: unkown mode (SupRateLen=0, ExtRateLen=0, MCSSet[0]=0x0, MCSSet[1]=0x0)
mv /etc/Wireless/RT2870STA/RT2870STA.dat /etc/Wireless/RT3070STA/RT3070STA.dat
and reboot again. Everything, the device was connected at a speed of 107mbps and works fine. It remains only to wind all the extra wires and put the computer away (:Source: https://habr.com/ru/post/93543/