Configure file path
/etc/Wireless/RT2870STA/RT2870STA.dat
Unload and load mt7662u_sta kernel module
$ sudo ifconfig wlan0 down
$ sudo modprobe -r mt7662u_sta
$ sudo modprobe mt7662u_sta
Enable wifi interface
$ sudo ifconfig wlan0 up
Scan AP's SSID
$ sudo iw dev wlan0 scan|grep SSID
Connect to AP Xiaomi_A154_VIP
$ sudo iw dev wlan0 connect Xiaomi_A154_VIP
Check connection
$ sudo iw dev wlan0 connect link
Connected to 8e:be:be:2a:a1:57 (on wlan0)
SSID: Xiaomi_A154_VIP
freq: 2422
signal: -44 dBm
tx bitrate: 130.0 MBit/s MCS 15
Getting IP address
$ sudo dhclient wlan0
Check wlan0 connection information
$ iwconfig wlan0
wlan0 Ralink STA ESSID:"Xiaomi_A154_VIP" Nickname:"mt7612u_sta"
Mode:Managed Frequency=2.422 GHz Access Point: 8E:BE:BE:2A:A1:57
Bit Rate=130 Mb/s
RTS thr:off Fragment thr:off
Link Quality=100/100 Signal level:-42 dBm Noise level:-71 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
Check wlan0 interface information
$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr a0:63:91:bb:ca:fc
inet addr:192.168.32.232 Bcast:192.168.32.255 Mask:255.255.255.0
inet6 addr: fe80::a263:91ff:febb:cafc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:300229 errors:289 dropped:0 overruns:0 frame:0
TX packets:262 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:69388910 (69.3 MB) TX bytes:29446 (29.4 KB)
Keep dmesg log
$ dmesg
[1261263.715191] usbcore: registered new interface driver rt2870
[1261263.739688] ModemManager[14151]: segfault at 0 ip 0000000000431ab3 sp 00007ffd570ae540 error 4 in ModemManager[400000+103000]
[1261284.132582] -->RTUSBVendorReset
[1261284.152783] <--RTUSBVendorReset
[1261284.163916] ...........andes_usb_chk_crc
[1261284.298612] andes_usb_reset_wmt
[1261284.319377] -->RTUSBVendorReset
[1261284.339433] <--RTUSBVendorReset
[1261284.340117] fw version:0.0.00 build:1
[1261284.340120] build time:201406241830____
[1261284.340124] fw for E3 IC
[1261284.340126] ilm length = 59312(bytes)
[1261284.340126] dlm length = 32068(bytes)
[1261284.341682] loading fw........
[1261284.406194] cfg_mode=5
[1261284.406300] Key1Str is Invalid key length(0) or Type(0)
[1261284.406312] Key2Str is Invalid key length(0) or Type(0)
[1261284.406322] Key3Str is Invalid key length(0) or Type(0)
[1261284.406329] Key4Str is Invalid key length(0) or Type(0)
[1261284.406557] USBAggregation = 1
[1261284.406562] 1. Phy Mode = 31
[1261284.406564] NVM is Efuse and its size =1d[1e0-1fc]
[1261284.439018] get_chl_grp:illegal channel (167)
[1261284.439021] get_chl_grp:illegal channel (167)
[1261284.439022] get_chl_grp:illegal channel (169)
[1261284.439022] get_chl_grp:illegal channel (169)
[1261284.439023] get_chl_grp:illegal channel (171)
[1261284.439024] get_chl_grp:illegal channel (171)
[1261284.439024] get_chl_grp:illegal channel (173)
[1261284.439025] get_chl_grp:illegal channel (173)
[1261284.441414] Country Region from e2p = ffff
[1261284.454560] mt76x2_get_external_lna_gain::LNA type=0x0, BLNAGain=0xffffff8d, ALNAGain0=0xffffff89, ALNAGain1=0xffffff88, ALNAGain2=0xffffff87
[1261284.454564] 2. Phy Mode = 31
[1261284.454565] 3. Phy Mode = 31
[1261284.454805] andes_usb_fw_init
[1261284.666413] AntCfgInit: primary/secondary ant 0/1
[1261284.666418] andes_load_cr:cr_type(2)
[1261284.667952] ChipStructAssign(): MT76x2 hook !
[1261284.667955] ---> InitFrequencyCalibration
[1261284.667956] InitFrequencyCalibrationMode:Unknow mode = 3
[1261284.667957] InitFrequencyCalibration: frequency offset in the EEPROM = 168
[1261284.667958] <--- InitFrequencyCalibration
[1261284.667965] RTMPSetPhyMode: channel is out of range, use first channel=1
[1261284.667966] RTMPSetPhyMode: Update for STA
[1261284.672065] MCS Set = ff ff 00 00 01
[1261284.672231] 80211> re-init bands...
[1261284.672233] 80211> CurTxPower = 20 dBm
[1261284.672235] ====> Radar Channel 52
[1261284.672235] ====> Radar Channel 54
[1261284.672236] ====> Radar Channel 56
[1261284.672236] ====> Radar Channel 60
[1261284.672237] ====> Radar Channel 62
[1261284.672238] ====> Radar Channel 64
[1261284.672238] ====> Radar Channel 100
[1261284.672239] ====> Radar Channel 104
[1261284.672240] 80211> TxStream = 2
[1261284.672245] Chan 167 (frq 5835): not allowed!
[1261284.672246] Chan 169 (frq 5845): not allowed!
[1261284.672246] Chan 171 (frq 5855): not allowed!
[1261284.672247] Chan 173 (frq 5865): not allowed!
[1261284.672248] Chan 184 (frq 4920): not allowed!
[1261284.672248] Chan 188 (frq 4940): not allowed!
[1261284.672249] Chan 192 (frq 4960): not allowed!
[1261284.672250] Chan 196 (frq 4980): not allowed!
[1261284.672250] Chan 208 (frq 6040): not allowed!
[1261284.672251] Chan 212 (frq 6060): not allowed!
[1261284.672252] Chan 216 (frq 6080): not allowed!
[1261284.672253] RTMPDrvOpen(1):Check if PDMA is idle!
[1261284.672383] RTMPDrvOpen(2):Check if PDMA is idle!
[1261295.990020] TX0 power compensation = 0x38
[1261295.990451] TX1 power compensation = 0x38
[1261298.471730] 80211> bss inform fail ==> 13
[1264743.862269] prlfs_release returns error (-22)
[1265325.342515] PeerBeaconAtJoinAction(): HT-CtrlChannel=3, CentralChannel=>3
[1265325.342526] PeerBeaconAtJoinAction(): Set CentralChannel=3
[1265325.342534] AdjustChannelRelatedValue(): Input BW=0, rf_channel=3, vht_bw=1, Channel=3, vht_cent_ch=3!
[1265325.458810] RTMPSoftEncryptWEP : The key is empty !
[1265325.485244] RTMPSoftEncryptWEP : The key is empty !
[1265325.546810] mt76x2_reinit_agc_gain:original agc_vga0 = 0x48, agc_vga1 = 0x48
[1265325.546814] mt76x2_reinit_agc_gain:updated agc_vga0 = 0x48, agc_vga1 = 0x48
[1265325.548202] mt76x2_reinit_hi_lna_gain:original hi_lna0 = 0x34, hi_lna1 = 0x34
[1265325.548206] mt76x2_reinit_hi_lna_gain:updated hi_lna0 = 0x34, hi_lna1 = 0x34
[1265325.548767] original vga value(chain0) = 48
[1265325.548934] original vga value(chain1) = 48
[1265325.549816] mt76x2_calibration(channel = 3)
[1265386.677115] Rcv Wcid(1) AddBAReq
[1265386.677121] Start Seq = 00000000