Ralink RT2870 based USB Wireless N adapters (Ubuntu)

I can’t believe! I fixed it!
I just heated rt5370 with my Lukey rework station, only F-2000 flux paste was used!
And dongle works again )

Nice, so the drivers are working too ?

Mark its me again from 2 pages back - I’m updating my Ralink driver by doing a remove and an install as you recommended 2 pages back everytome Linux updates. I’m getting absolutely dumbfounded by Linux’s horrific reliability.

Any commands of mine containing sudo are magically “hanging”.

Its similar to what this chap experiences:

So my machine is useless now. Any hints?

A restart fixed it.

Seriously this operating system is way too hyped

Hi Mark, this always used to work for me (your remove command should actually write …sta/1.0 and not …sta/1.02).

Now it has stopped working.

When I try the install (the second command) I get a bad exit status of 2. it says the binary package is not found.

Looking at the detailed log, I get this:

In function ‘memcpy’, inlined from ‘rt_ioctl_iwaplist’ at /var/lib/dkms/mt7610u_sta/1.0/build/os/linux/../../os/linux/sta_ioctl.c:696:2: ./include/linux/string.h:305:4: error: call to ‘__read_overflow2’ declared with attribute error: detected read beyond size of object passed as 2nd parameter __read_overflow2(); ^ scripts/Makefile.build:308: recipe for target '/var/lib/dkms/mt7610u_sta/1.0/build/os/linux/../../os/linux/sta_ioctl.o' failed make[2]: *** [/var/lib/dkms/mt7610u_sta/1.0/build/os/linux/../../os/linux/sta_ioctl.o] Error 1 make[2]: *** Waiting for unfinished jobs.... Makefile:1550: recipe for target '_module_/var/lib/dkms/mt7610u_sta/1.0/build/os/linux' failed make[1]: *** [_module_/var/lib/dkms/mt7610u_sta/1.0/build/os/linux] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-32-generic' Makefile:394: recipe for target 'LINUX' failed make: *** [LINUX] Error 2

Any ideas how to resolve this?

Okay let’s start from scratch…

Uninstall and remove the old dkms driver

sudo dkms uninstall mt7610u_sta/1.0

then

sudo dkms remove mt7610u_sta/1.0 --all

and remove the dmks source:

sudo rm -rv /usr/src/mt7610u_sta-1.0

delete the old downloaded driver source

sudo rm -rv ~/mt7610u-driver

then re-download the driver:

mkdir ~/mt7610u-driver

then

cd ~/mt7610u-driver

then

git clone https://github.com/xtknight/mt7610u-linksys-ae6000-wifi-fixes.git

then

cd ~/mt7610u-driver/mt7610u-linksys-ae6000-wifi-fixes

then

sudo cp -R . /usr/src/mt7610u_sta-1.0

then

sudo dkms add mt7610u_sta/1.0

then

sudo dkms build mt7610u_sta/1.0

then

sudo dkms install mt7610u_sta/1.0

then

sudo modprobe mt7610u_sta

did wireless spring to life ?

As soon as I hit enter on the last command, I get a “system programme problem detected” prompt where it asks me whether I want to report the problem.

Also when I reboot the same prompt comes up as soon as loading up.

Anyway, what has changed since before is I do see that my wifi wireless modem shows on the top right but after clicking it I get more prompts including “connection activation failed” and “(2) active connection removed before it was initialised”

Im trying to see why that is

Im trying to see why that is

New kernel patched for Spectre/Meltdown … the new kernel obviously doesn’t like that driver once compiled.

Let’s try another driver

sudo dkms uninstall mt7610u_sta/1.0

then

sudo dkms remove mt7610u_sta/1.0 --all

and remove the dmks source:

sudo rm -rv /usr/src/mt7610u_sta-1.0

delete the old downloaded driver source

sudo rm -rv ~/mt7610u-driver

then

mkdir ~/mt7610u

then

cd ~/mt7610u

then

git clone https://github.com/ulli-kroll/mt7610u.git

then

cd ~/mt7610u/mt7610u

then

make

then

sudo make installfw

then

sudo rm -rv /etc/Wireless/RT2870STA

then

sudo mkdir /etc/Wireless/RT2870STA

then

sudo cp -v RT2870STA.dat /etc/Wireless/RT2870STA/

then

sudo install -d /lib/modules/$(uname -r)/kernel/drivers/net/wireless/

then

sudo install -m 644 -c mt7610u.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless/

then

sudo depmod -a $(uname -r)

then

sudo rmmod mt7610u_sta

then

sudo modprobe mt7610u

did wireless spring to life ?


To UNINSTALL

sudo rmmod mt7610u

then

sudo rm -v /lib/modules/$(uname -r)/kernel/drivers/net/wireless/mt7610u.ko

then

sudo rm -rv /etc/Wireless/RT2870STA

then

sudo rm -v /lib/firmware/mt7610u.bin

then

sudo rm -v /lib/firmware/mt7650u.bin

then

sudo depmod -a $(uname -r)

Hello :),

i have a Hama rt2870 based Wlan Adapter. (00062740)

I was trying to change PID/VID but it didtn work out : ra0 no private ioctls.

So i was trying to compile the driver wich also didnt work, dont know what to do next. ( driver: Dropbox - 2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2 - Simplify your life )


4.15.0-29-generic

Bus 001 Device 004: ID 148f:2870 Ralink Technology, Corp. RT2870 Wireless Adapter
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

rt2800usb 32768 0
rt2x00usb 20480 1 rt2800usb
rt2800lib 114688 1 rt2800usb
rt2x00lib 53248 3 rt2800lib,rt2800usb,rt2x00usb
mac80211 778240 3 rt2800lib,rt2x00lib,rt2x00usb
cfg80211 622592 2 rt2x00lib,mac80211

need to restart Oracle to reproduce the make errors

edit: ps: forgot to say : i am new with linux

make

tester@tester-VirtualBox:~/2010_0709_RT2870_Linux_STA_v2.4.0.1$ sudo su
[sudo] password for tester:
root@tester-VirtualBox:/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1# make
make -C tools
make[1]: Entering directory ‘/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/tools’
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory ‘/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/tools’
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/tools/bin2h
cp -f os/linux/Makefile.6 /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/Makefile
make -C /lib/modules/4.15.0-29-generic/build SUBDIRS=/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux modules
make[1]: Entering directory ‘/usr/src/linux-headers-4.15.0-29-generic’
Makefile:976: “Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel”
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_md5.o
In file included from /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/rtmp_os.h:42:0,
from /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/rt_config.h:72,
from /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_md5.c:28:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_md5.c: In function ‘MD5Final’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_md5.c:322:32: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
NdisZeroMemory(pCtx, sizeof(pCtx)); // memory free
^
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/os/rt_linux.h:452:76: note: in definition of macro ‘NdisZeroMemory’
fine NdisZeroMemory(Destination, Length) memset(Destination, 0, Length)
^~~~~~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_md5.c: In function ‘SHAFinal’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_md5.c:621:32: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
NdisZeroMemory(pCtx, sizeof(pCtx)); // memory free
^
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/os/rt_linux.h:452:76: note: in definition of macro ‘NdisZeroMemory’
fine NdisZeroMemory(Destination, Length) memset(Destination, 0, Length)
^~~~~~
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_sha2.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_hmac.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_aes.o
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_aes.c: In function ‘WscEncryptData’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_aes.c:1522:1: warning: the frame size of 1400 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_aes.c: In function ‘WscDecryptData’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_aes.c:1592:1: warning: the frame size of 1400 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_aes.c: In function ‘AES_GTK_KEY_WRAP’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_aes.c:2265:1: warning: the frame size of 1616 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_aes.c: In function ‘AES_GTK_KEY_UNWRAP’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_aes.c:2348:1: warning: the frame size of 1136 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/crypt_arc4.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/mlme.o
In file included from /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/rtmp_os.h:42:0,
from /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/rt_config.h:72,
from /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/mlme.c:39:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/mlme.c: In function ‘MlmeResetRalinkCounters’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/mlme.c:896:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(UINT32)&pAd->RalinkCounters.OneSecEnd -
^
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/os/rt_linux.h:452:76: note: in definition of macro ‘NdisZeroMemory’
fine NdisZeroMemory(Destination, Length) memset(Destination, 0, Length)
^~~~~~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/mlme.c:897:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(UINT32)&pAd->RalinkCounters.OneSecStart);
^
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/os/rt_linux.h:452:76: note: in definition of macro ‘NdisZeroMemory’
fine NdisZeroMemory(Destination, Length) memset(Destination, 0, Length)
^~~~~~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/mlme.c: In function ‘BssTableSetEntry’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/mlme.c:5739:39: warning: operation on ‘Tab->BssOverlapNr’ may be undefined [-Wsequence-point]
Tab->BssOverlapNr = (Tab->BssOverlapNr++) % MAX_LEN_OF_BSS_TABLE;
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/mlme.c: In function ‘BssTableSortByRssi’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/mlme.c:6100:1: warning: the frame size of 1720 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_wep.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/action.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_data.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/rtmp_init.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_tkip.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_aes.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_sync.o
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_sync.c: In function ‘ScanNextChannel’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_sync.c:591:3: warning: this ‘if’ clause does not guard… [-Wmisleading-indentation]
if (OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_DOZE))
^~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_sync.c:595:4: note: …this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if (pAd->StaCfg.Psm == PWR_SAVE)
^~
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/eeprom.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_sanity.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_info.o
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_info.c: In function ‘GetEncryptType’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_info.c:2073:5: warning: this ‘if’ clause does not guard… [-Wmisleading-indentation]
if(enc == Ndis802_11Encryption3Enabled)
^~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_info.c:2075:2: note: …this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if(enc == Ndis802_11Encryption4Enabled)
^~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_info.c: In function ‘GetAuthMode’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_info.c:2085:5: warning: this ‘if’ clause does not guard… [-Wmisleading-indentation]
if(auth == Ndis802_11AuthModeShared)
^~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_info.c:2087:2: note: …this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if(auth == Ndis802_11AuthModeAutoSwitch)
^~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_info.c:2097:5: warning: this ‘if’ clause does not guard… [-Wmisleading-indentation]
if(auth == Ndis802_11AuthModeWPA2PSK)
^~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_info.c:2099:2: note: …this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if(auth == Ndis802_11AuthModeWPA1WPA2)
^~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_info.c: In function ‘Show_PMK_Proc’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_info.c:3909:5: warning: this ‘for’ clause does not guard… [-Wmisleading-indentation]
for (idx = 0; idx < 32; idx++)
^~~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_info.c:3912:2: note: …this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
return 0;
^~~~~~
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_cfg.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_wpa.o
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_wpa.c: In function ‘WPAStart2WayGroupHS’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_wpa.c:1198:5: warning: this ‘if’ clause does not guard… [-Wmisleading-indentation]
if ((!pEntry) || !IS_ENTRY_CLIENT(pEntry))
^~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_wpa.c:1203:2: note: …this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
os_alloc_mem(NULL, (PUCHAR *)&mpool, TX_EAPOL_BUFFER);
^~~~~~~~~~~~
In file included from ./include/linux/bitmap.h:9:0,
from ./include/linux/cpumask.h:12,
from ./arch/x86/include/asm/cpumask.h:5,
from ./arch/x86/include/asm/msr.h:11,
from ./arch/x86/include/asm/processor.h:21,
from ./arch/x86/include/asm/cpufeature.h:5,
from ./arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:38,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:81,
from ./include/linux/spinlock.h:51,
from ./include/linux/seqlock.h:36,
from ./include/linux/time.h:6,
from ./include/linux/stat.h:19,
from ./include/linux/module.h:10,
from /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/os/rt_linux.h:40,
from /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/rtmp_os.h:42,
from /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/rt_config.h:72,
from /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_wpa.c:38:
./include/linux/string.h:359:9: warning: argument 2 null where non-null expected [-Wnonnull]
return __builtin_memmove(p, q, size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/string.h:359:9: note: in a call to built-in function ‘__builtin_memmove’
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_wpa.c: In function ‘PeerPairMsg2Action’:
./include/linux/string.h:359:9: warning: argument 2 null where non-null expected [-Wnonnull]
return __builtin_memmove(p, q, size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/string.h:359:9: note: in a call to built-in function ‘__builtin_memmove’
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/dfs.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/spectrum.o
In file included from /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/rtmp_os.h:42:0,
from /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/rt_config.h:72,
from /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/spectrum.c:39:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/spectrum.c: In function ‘PeerMeasureReportAction’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/spectrum.c:1977:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
DBGPRINT(RT_DEBUG_ERROR, (“%s unable to alloc memory for measure report buffer (size=%d).\n”, FUNCTION, sizeof(MEASURE_RPI_REPORT)));
^
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/os/rt_linux.h:621:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt;
^~~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/spectrum.c:1977:3: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_ERROR, (“%s unable to alloc memory for measure report buffer (size=%d).\n”, FUNCTION, sizeof(MEASURE_RPI_REPORT)));
^~~~~~~~
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/rtmp_timer.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/rt_channel.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_profile.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_asic.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_cmd.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/assoc.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/auth.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/auth_rsp.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/sync.o
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/sync.c: In function ‘PeerBeaconAtScanAction’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/sync.c:764:1: warning: the frame size of 1280 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/sync.c: In function ‘PeerBeaconAtJoinAction’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/sync.c:1094:1: warning: the frame size of 1328 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/sync.c: In function ‘PeerBeacon’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/sync.c:1764:1: warning: the frame size of 1320 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/sanity.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/rtmp_data.o
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/rtmp_data.c: In function ‘STAFindCipherAlgorithm’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/rtmp_data.c:1497:6: warning: this ‘else’ clause does not guard… [-Wmisleading-indentation]
else
^~~~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/rtmp_data.c:1500:3: note: …this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
if (RTMP_GET_PACKET_EAPOL(pTxBlk->pPacket))
^~
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/connect.o
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/connect.c: In function ‘CntlOidScanProc.part.0’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/connect.c:355:1: warning: the frame size of 1760 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/wpa.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/ags.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/sta_cfg.o
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/sta_cfg.c: In function ‘Set_EncrypType_Proc’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/sta_cfg.c:679:5: warning: this ‘else’ clause does not guard… [-Wmisleading-indentation]
else
^~~~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/sta/sta_cfg.c:682:2: note: …this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
if (pAd->StaCfg.BssType == BSS_ADHOC)
^~
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/rtmp_init_inf.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/rt_profile.o
CC [M] /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.o
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.c: In function ‘rt_ioctl_siwfreq’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.c:174:5: warning: this ‘else’ clause does not guard… [-Wmisleading-indentation]
else
^~~~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.c:177:2: note: …this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
return 0;
^~~~~~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.c: In function ‘rt_ioctl_siwencode’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.c:1479:6: warning: suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to ‘~’ [-Wparentheses]
if(!erq->flags & IW_ENCODE_MODE)
^~~~~~~~~~~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.c: In function ‘rt_private_show’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.c:1830:78: error: macro “DATE” might prevent reproducible builds [-Werror=date-time]
sprintf(extra, “Driver version-%s, %s %s\n”, STA_DRIVER_VERSION, DATE, TIME );
^~~~~~~~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.c:1830:88: error: macro “TIME” might prevent reproducible builds [-Werror=date-time]
(extra, “Driver version-%s, %s %s\n”, STA_DRIVER_VERSION, DATE, TIME );
^~~~~~~~
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.c: In function ‘rt_ioctl_siwmlme’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.c:1979:1: warning: the frame size of 1664 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.c: In function ‘rt_ioctl_iwaplist’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.c:599:1: warning: the frame size of 1312 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.c: In function ‘RTMPIoctlMAC’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.c:5836:1: warning: the frame size of 1352 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.c: In function ‘RTMPIoctlE2PROM’:
/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.c:6035:1: warning: the frame size of 1352 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target ‘/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.o’ failed
make[2]: *** [/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/os/linux/sta_ioctl.o] Error 1
Makefile:1552: recipe for target ‘module/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux’ failed
make[1]: *** [module/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-4.15.0-29-generic’
Makefile:243: recipe for target ‘LINUX’ failed
make: *** [LINUX] Error 2

make install

root@tester-VirtualBox:/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1# make install
make -C /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux -f Makefile.6 install
make[1]: Entering directory ‘/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux’
mkdir: cannot create directory ‘/etc/Wireless’: File exists
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
cp /home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/RT2870STA.dat /etc/Wireless/RT2870STA/.
install -d /lib/modules/4.15.0-29-generic/kernel/drivers/net/wireless/
install -m 644 -c rt2870sta.ko /lib/modules/4.15.0-29-generic/kernel/drivers/net/wireless/
install: cannot stat ‘rt2870sta.ko’: No such file or directory
Makefile.6:140: recipe for target ‘install’ failed
make[1]: *** [install] Error 1
make[1]: Leaving directory ‘/home/tester/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux’
Makefile:281: recipe for target ‘install’ failed
make: *** [install] Error 2

Hey guys

Sorry for bringing back the topic but I’ve searched an answer for 2 days now but still can’t figure it out.

I pretty much tried everything in this thread but nothing has worked yet

I just installed Ubuntu 18.04.LTS on one of my laptop. I’m trying to install the driver for my ALFA AWUS036NH but it’s a nightmare. The laptop think it’s the rt2800 driver, so when I turn off the built-in wifi, the wireless card shut down. I’ve blacklist the rt2800usb but I can’t install the rt2870 driver at all.

It does show up when I type

lsusb

Bus 001 Device 003: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter

Let me know what you need from my Terminal!