Fixing rt61pci in Ubuntu Gutsy

I’d experienced what were, judging by the forums, similar issues to many others using Gutsy with the supplied rt2x00 drivers. Wireless when connected worked just fine, but wouldn’t connect on login; you’d need to either click on the network manager icon, and then on the wireless connection to force a reconnect, or with the network using ‘manual configuration’, untick/tick the configured connection.

There are various solutions proposed using the ‘legacy’ rt61 drivers, but I wanted something that worked well with network manager – hence fixing the Gutsy ‘rt61pci’ approach. Here’s how, from the terminal:

  • Do a search for rt2x00-cvs-20070914.tar.bz2 , and download (you can find this here). I found issues with the latest rt2x00 source and the stock kernel, but this version seems to work fine.
  • Unpack the file, using the command: tar xjvf rt2x00-cvs-20070914.tar.bz2
  • Following the advice found on the rt2x00 forum, detailed here , using a text editor make the following changes to the source:
    • in source/rt2x00/rt2x00mac.c : search for “rt2x00dev->interface.id, and remove that specific block of text where found, including the comma (there should be two instances of this).
    • in source/rt2x00/rt2x00_compat.h : Add the line:
  • #define IEEE80211_TXCTL_LONG_RETRY_LIMIT (1 << 20)
    below the line:

    #define RT2X00_COMPAT_H

  • Now, from the source/rt2x00 directory, do a make .  The source should compile cleanly.  Then, sudo make install
  • Now, change to the /lib/modules/2.6.22-14-generic directory.  Backup the contents of the ubuntu/wireless/rt2x00 directory to somewhere outside of the /lib/modules structure, and delete.  You can use this to restore from if you find that the newly compiled modules don’t work as anticipated.
  • Finally, to neaten things up, do a sudo mv rt2x00 ubuntu/wireless/ which will move your newly compiled modules to the default location.

Reboot, and the wireless should now work as intended!

Advertisements

One Response to “Fixing rt61pci in Ubuntu Gutsy”

  1. RavenBlack Says:

    Didn’t work for me. It compiled and moved the files around okay, but the wireless just completely failed to do anything afterwards (it seemed to think it was sending DHCP requests, but didn’t get a reply). But then, my wireless problem doesn’t seem to match the original one here either – mine works on bootup, it just stops working after about three minutes of traffic and won’t come back without a full reboot.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: