Ubuntu 13.04 Ralink rt5390 won't work after upgrade,

I Have an HP 2000 Notebook dualboot with Win7 and Ubuntu 13.04. After I upgraded from 12.10, the wireless network detects wifi but when I try connecting It wont do anything.

I try doing stuff from those websites How do I install a bz2.bz2 file? But I get errors at make and from here http://ubuntuforums.org/showthread.php?t=2138302 But since I'm barely new here I don't know how to make the patch to work.

Please help.


Combining a couple of answers from here

From answer #4

  1. download driver http://www.mediatek.com/_en/07_downloads/01-1_windowsDetail.php?sn=5001
  2. tar -xvf /home/ukbeast/USERNAME/Downloads/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO_v2.bz2.bz2
  3. cd 2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO
  4. download patch http://gridlox.net/diff/rt5592sta_fix_64bit_3.8.patch
  5. patch -p1 <rt5592sta_fix_64bit_3.8.patch (if asks for directory point it to rt_linux_dev.c rt_linux.c)
  6. make sure /os/linux/config.mk reads HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
  7. make
  8. sudo make install
  9. modprobe rt5390sta

and from answer #6

10.sudo gedit /etc/modprobe.d/blacklist.conf

At the end of the file, add these lines:

# Blacklist conflicting kernel modules
blacklist rt2800pci
blacklist rt2800lib
blacklist rt2x00usb
blacklist rt2x00pci
blacklist rt2x00lib
blacklist rt2860sta
blacklist rt3090sta

I do not know if this will work, but it may be worth a shot. :D