Well, fresh installed Debian Jessie (kernel 3.16.0-4-686-pae). Everything working fine, updated and upgraded. Then i got this nano wifi dongle, with rt2870 chipset. Doesn't work out of the box so i start googling.
First step was, obviously, install firmware-ralink. Everything ok. Lsmod output, grepping "rt2" here:
rt2800usb 21854 0
rt2x00usb 17426 1 rt2800usb
rt2800lib 72379 1 rt2800usb
rt2x00lib 41387 3 rt2x00usb,rt2800lib,rt2800usb
mac80211 425546 3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211 354137 2 mac80211,rt2x00lib
crc_ccitt 12331 1 rt2800lib
usbcore 171098 6 rt2x00usb,rt2800usb,ehci_hcd,ehci_pci,usbhid,xhci_hcd
So the modules are loaded. Reboot and nothing. Iwconfig yields this:
lo no wireless extensions.
eth0 no wireless extensions.
Then i tried to build from source, not everyday you got a CD with linux drivers on it from manufacturer and things got weirder than i can handle. Here is the make fail output:
david@DavidDesktop:~/Descargas/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913$ make
make -C tools
make[1]: Entering directory '/home/david/Descargas/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/david/Descargas/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools'
/home/david/Descargas/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/tools/bin2h
cp -f os/linux/Makefile.6 /home/david/Descargas/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux/Makefile
make -C /lib/modules/3.16.0-4-686-pae/build SUBDIRS=/home/david/Descargas/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/os/linux modules
make[1]: *** /lib/modules/3.16.0-4-686-pae/build: No existe el fichero o el directorio. Alto.
Makefile:394: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
I have seen and read a lot of post about troubleshoting with this chipset, but none of them works for me. Also, driver readme says this:
Description:
=============
This is a linux device driver for Ralink RT2870 USB ABGN WLAN Card.
But folder is named: "DPO_MT7601U_LinuxSTA_3.0.0.4_20130913"
Am i doing something like targeting the wrong chipset?
Should i blacklist some of "rt" modules? (i read about it but i never did it)
Should i modify makefile or something? (i read this question, but is beyond my knowledge where or what modify)
lsusb output:
Bus 004 Device 004: ID 148f:7601 Ralink Technology, Corp.