Edimax EW-7318USg with the RT73 Enhanced Driver

After several failed attempts to get my Edimax EW-7318USg wireless USB adapter recognized in Linux using the RT73 enhanced drivers (3.0.3), I finally realized the USB device ID was not listed where it should have been in the file rtmp_def.h with the rest of the RT73-based devices. Edimax must have changed the ID fairly recently because I was hardly able to find anyone who reported having trouble with this device aside from one particular forum topic which was of little help.

After updating rtmp_def.h and recompiling the driver, the device was then recognized as expected.  If you are experiencing a similar problem with this adapter, try the following:

Disconnect the adapter and remove the existing kernel module:

modprobe -r rt73

Add the new device ID to the bottom of rtmp_def.h in the VID/PID area:

/* Edimax EW-7318USg */\
{USB_DEVICE(0x7392,0x7318)},\

Recompile and install the driver (as root):

make && make install

Add the module back:

modprobe rt73

After reconnecting the device, the dmesg command should now show the device as being registered by the RT73 driver. Note that this was after blacklisting the rt73usb and rt2570 drivers.

Filed under Linux · Tagged with , ,

Comments

14 Responses to “Edimax EW-7318USg with the RT73 Enhanced Driver”
  1. Charlie says:

    Thanks for posting this. I’ve been struggling with this same problem on and off for a couple of months now. I was mucking about with udev, noticing that the adapter didn’t seem to be reporting its MAC address via sysfs and wondering if I had a faulty device.

    It seems so obvious now. I’m grateful.

  2. ashton says:

    could you please explain the steps to add the new device id? I can do the rest but I don’t understand this part.

  3. Greeker says:

    I have a real hard time getting this to work. Is there any way that I can get a hold of the image for VMWARE that you are using since you seem to have it working? I made the changes and after that I began to have problems with the aircrack script ending or aborting while just trying to scan.

  4. Jeff says:

    @ashton: in the driver source, you should see a file named rtmp_def.h. Open it up and go to around line 807 where you’ll see:

    //——————-
    // VID/PID
    //——————-

    Below that is a list of device IDs that you will want to modify to add the missing device ID for this device with the values that I posted. Make sure you don’t leave out the comma and/or backslash. It should look just like the rest.

  5. Jeff says:

    @Greeker: Not using a VWware image. Sorry!

  6. Andrea says:

    I just got this adapter today and I do not understand how to install it. Can someone please help me? after I add that line and i type “make install” it gives me an error.
    SOmeone please? what do I do wrong?

  7. Andrea says:

    Ok. I installed it. it seems working but it actually isn’t! First of all I need to reboot my pc every time I want to see the available wireless networks. Then, I can oly see them (it does not show me the strnght of the signal) and it does not let me connect at any of them, even my own one or the ones with no passwords.
    Any help? pleaseeee. This is so wired! I can see the wireless connections but I cannot connect to them!! =(

  8. Jeff,

    I’ve the same problem as Andrea.

    I see my ssid but can’t connect.

    I’m using Ubuntu 9.04 i386

    ricardo@earth:~$ cat /etc/modprobe.d/blacklist
    blacklist rt73usb
    blacklist rt2570
    blacklist rt2500usb
    blacklist rt2×00lib


    ricardo@earth:~$ lsusb
    Bus 001 Device 002: ID 7392:7318

    ricardo@earth:~$ lshw -c Network
    *-network:2
    description: Wireless interface
    physical id: 3
    logical name: rausb0
    serial: 00:1f:1f:4d:be:96
    capabilities: ethernet physical wireless
    configuration: broadcast=yes multicast=yes wireless=RT73 WLAN

  9. Lukk says:

    Hi.have the same problem with edimax.but don have enought knowleade about linux.i’m using bt3 live cd and if i change this file i need to done this every single time when i start again bt3 live cd?So it will be so great if someone tell mi how make it work step by step

  10. Jeff says:

    Lukk,

    Are you booting from a flash drive or CD? If the latter, I would recommend booting BT from a flash drive. It’s pretty easy to run in a persistent mode.

  11. fri says:

    alguen pude decirme k significa “retire el modulo de kernel”?

  12. anon says:

    In rtmp_def.h, does the pasted text go before /* end marker */ or after, because when I paste it after, the code isn’t highlighted in purple like the other values..

  13. Felipe Martins says:

    I cant express how thankful I am for you having created this article. Its the kind of thing that makes us wanna help other people after receiving such a nice and useful help. Thanks again

  14. James says:

    After reading few How to’s and getting more familiar with Linux (especially BT 4 Final) thanks to Jeff I confirm that this one works. I’ve never used Linux before and I had some trouble getting Edimax to work with Enhanced RT73 drivers but now there’s no problem with airmon-ng, aireplay-ng, kismet and aircrack-ng. Here’s a quick manual. First blacklist already existing drivers (http://www.aircrack-ng.org/doku.php?id=rt73), then proceed with Step Installing on the top of the page.
    wget http://homepages.tu-darmstadt.de/~p_larbig/wlan/rt73-k2wrlz-3.0.3.tar.bz2
    tar -xjf rt73-k2wrlz-3.0.3.tar.bz2
    cd rt73-k2wrlz-3.0.3/Module
    Now write – nano rtmp_def.h
    Find the VID/PID, do what Jeff said, then make, make install, reboot, modprobe rt73, plug Edie and youre ready to go.
    P.S. Firstly I’ve tried to locate rtmp_def.h after the Installing procedure. File was found in /usr/bin/linux-source-2.6.30.9/drivers/staging/rt2860/rtmp_def.h
    But there was no VID/PID Area…

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!