Installing drivers Linksys AE1000 on Linux

This article shows you how to install the Linksys AE1000 drivers from the manufacturer. This driver has some advantages over the Linux default driver.

root@packer-vmware-iso:/usr/local/src/DPO_RT5572_LinuxSTA_2.6.1.3_20121022# lsusb  
Bus 001 Device 015: ID 13b1:002f Linksys AE1000 v1 802.11n [Ralink RT3572]  
Compile and install module

Download the driver from: http://www.mediatek.com/AmazonS3/Downloads/linux/DPORT5572LinuxSTA_2.6.1 and extract it to /usr/local/src/.

In include/os/rtlinux.h, update the _OSFSINFO struct. The fsuid and fsgid have changed from int to kuidt and kgidt in newer kernels.

typedef struct _OS_FS_INFO_  
{
        kuid_t                          fsuid;
        // int                          fsuid;
        kgid_t                          fsgid;
        // int                          fsgid;
        mm_segment_t    fs;
} OS_FS_INFO;

Compile the driver and install the kernel module:

make  
make install  
Install firmware

Download the firmware from: http://www.mediatek.com/AmazonS3/Downloads/linux/RT2870FirmwareV22.zip and copy the firmware to /lib/firmware/.

Blacklist

Prevent the original modules from loading using the blacklist. Edit /etc/modprobe.d/blacklist.conf and add the following:

blacklist rt2800usb  
blacklist rt28x00usb  
blacklist rt2800lib  
blacklist rt2x00lib  
Start

Start the interface:

iwconfig ra0 up  

Check the device:

root@packer-vmware-iso:/usr/local/src/DPO_RT5572_LinuxSTA_2.6.1.3_20121022# iwconfig  
ra0       Ralink STA  ESSID:""  Nickname:"RT3572STA"  
          Mode:Monitor  Frequency=2.457 GHz  Access Point: Not-Associated
          Bit Rate:1 Mb/s
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Link Quality=10/100  Signal level:0 dBm  Noise level:0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0