If you are trying to get a device working with ndiswrapper, please help ndiswrapper project wiki by contributing your findings. See HowToContribute

Edimax EW-7811Un

From NDISWrapper
Jump to: navigation, search

Edimax EW-7811Un

Info

This device is reported to work on i386 (see report below) but no successful report on x86_64.

This is Ubuntu 10.10 on an AMD x86_64.

Plugged the device in, and saw it appear in lsusb, and a message appears in /var/log/messages

new high speed USB device using ehci_hcd and addresss 11

But iwconfig shows no wlan0.

Downloaded the Linux drivers from Edimax (the Realtek drivers). They build, but with lots of warnings relating to 64 vs 32 bit stuff. The module loads, but does not work. Lots of errors appear in /var/log/messages, mostly "usb read/wrote TimeOut!" Wrote to Realtek support asking them to fix this, haven't heard back.

Similar story, no apparent solution: http://ubuntuforums.org/showthread.php?t=1658112

So unloaded the 8192cu module, blacklisted it in in /etc/modprobe.d/blacklist.conf Then installed ndiswrapper, and got the Windows drivers from the Edimax site. There are 32 and 64 bit versions for Win7 Vista and XP. Tried XP 64 first, then the other 64 bit ones, then the 32 bit ones. They load

$ ndiswrapper -l
net8192cu: device (7392:7811) present (alternate driver: 8192cu)

but iwconfig shows no wlan0


It is possible to use WinXP 32bit drivers from Edimax site -- but only g mode is available (tested on Fedora 15 i386). Native driver rtl8192cu also loads, but card doesn't see my access points (tested on D-Link DWL-2100, TP-Link TL-WR1043ND with WPA2-PSK CCMP/CCMP).

$ cd 88_92_CU_Driver/WinXP

$ sudo ndiswrapper -i `readlink -f net8192cu.inf`

$ ndiswrapper -v
utils version: '1.9', utils version needed by module: '1.9'
module details:
filename:       /lib/modules/2.6.40-4.fc15.i686.PAE/extra/ndiswrapper/ndiswrapper.ko
version:        1.56
vermagic:       2.6.40-4.fc15.i686.PAE SMP mod_unload 686 

$ lsusb -v
Bus 002 Device 011: ID 7392:7811 Edimax Technology Co., Ltd
Device Descriptor:
bLength                18
bDescriptorType         1
bcdUSB               2.00
bDeviceClass            0 (Defined at Interface level)
bDeviceSubClass         0
bDeviceProtocol         0
bMaxPacketSize0        64
idVendor           0x7392 Edimax Technology Co., Ltd
idProduct          0x7811
bcdDevice            2.00
iManufacturer           1 Realtek
iProduct                2 802.11n WLAN Adapter
iSerial                 3 00e04c000001
bNumConfigurations      1
Configuration Descriptor:
  bLength                 9
  bDescriptorType         2
  wTotalLength           46
  bNumInterfaces          1
  bConfigurationValue     1
  iConfiguration          0
  bmAttributes         0x80
    (Bus Powered)
  MaxPower              500mA
  Interface Descriptor:
    bLength                 9
    bDescriptorType         4
    bInterfaceNumber        0
    bAlternateSetting       0
    bNumEndpoints           4
    bInterfaceClass       255 Vendor Specific Class
    bInterfaceSubClass    255 Vendor Specific Subclass
    bInterfaceProtocol    255 Vendor Specific Protocol
    iInterface              0
    Endpoint Descriptor:
      bLength                 7
      bDescriptorType         5
      bEndpointAddress     0x81  EP 1 IN
      bmAttributes            2
        Transfer Type            Bulk
        Synch Type               None
        Usage Type               Data
      wMaxPacketSize     0x0200  1x 512 bytes
      bInterval               0
    Endpoint Descriptor:
      bLength                 7
      bDescriptorType         5
      bEndpointAddress     0x02  EP 2 OUT
      bmAttributes            2
        Transfer Type            Bulk
        Synch Type               None
        Usage Type               Data
      wMaxPacketSize     0x0200  1x 512 bytes
      bInterval               0
    Endpoint Descriptor:
      bLength                 7
      bDescriptorType         5
      bEndpointAddress     0x03  EP 3 OUT
      bmAttributes            2
        Transfer Type            Bulk
        Synch Type               None
        Usage Type               Data
      wMaxPacketSize     0x0200  1x 512 bytes
      bInterval               0
    Endpoint Descriptor:
      bLength                 7
      bDescriptorType         5
      bEndpointAddress     0x84  EP 4 IN
      bmAttributes            3
        Transfer Type            Interrupt
        Synch Type               None
        Usage Type               Data
      wMaxPacketSize     0x0040  1x 64 bytes
      bInterval               1
Device Qualifier (for other device speed):
bLength                10
bDescriptorType         6
bcdUSB               2.00
bDeviceClass            0 (Defined at Interface level)
bDeviceSubClass         0
bDeviceProtocol         0
bMaxPacketSize0        64
bNumConfigurations      1
Device Status:     0x0000
(Bus Powered)

$ dmesg
[ 3252.448211] usb 2-4: new high speed USB device number 11 using ehci_hcd
[ 3252.564061] usb 2-4: New USB device found, idVendor=7392, idProduct=7811
[ 3252.564071] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3252.564079] usb 2-4: Product: 802.11n WLAN Adapter
[ 3252.564085] usb 2-4: Manufacturer: Realtek
[ 3252.564090] usb 2-4: SerialNumber: 00e04c000001
[ 3252.670078] usb 2-4: reset high speed USB device number 11 using ehci_hcd
[ 3252.791289] ndiswrapper (import:233): unknown symbol: ntoskrnl.exe:'_aulldvrm'
[ 3252.791817] ndiswrapper: driver net8192cu (Realtek Semiconductor Corp.,08/06/2010,1008.0.0806.2010) loaded
[ 3253.743432] wlan1: ethernet device 80:1f:02:11:fe:48 using NDIS driver: net8192cu, version: 0x1, NDIS version: 0x500, vendor: 'Realtek RTL8192C Wireless LAN USB NIC',7392:7811.F.conf
[ 3253.743489] wlan1: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
[ 3254.029193] ndiswrapper: changing interface name from 'wlan1' to 'wlan4'

$ wpa_supplicant -v
wpa_supplicant v0.7.3
Copyright (c) 2003-2010, Jouni Malinen <j@w1.fi> and contributors

$ wpa_supplicant -Dwext -iwlan4 -c /etc/wpa_supplicant/wpa_supplicant.conf
Trying to associate with XX:XX:XX:XX:XX:XX (SSID='Y' freq=2472 MHz)
Associated with XX:XX:XX:XX:XX:XX
WPA: Key negotiation completed with XX:XX:XX:XX:XX:XX [PTK=CCMP GTK=CCMP]
CTRL-EVENT-CONNECTED - Connection to XX:XX:XX:XX:XX:XX completed (auth) [id=0 id_str=]
WPA: Key negotiation completed with XX:XX:XX:XX:XX:XX [PTK=CCMP GTK=CCMP]
Associated with XX:XX:XX:XX:XX:XX

$ iwconfig wlan4
wlan4     IEEE 802.11g  ESSID:"Y"  
         Mode:Managed  Frequency:2.472 GHz  Access Point: XX:XX:XX:XX:XX:XX
         Bit Rate=48 Mb/s   Tx-Power:20 dBm   Sensitivity=0/3  
         RTS thr:off   Fragment thr:off
         Power Management:off
         Link Quality:57/100  Signal level:-59 dBm  Noise level:-96 dBm
         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
         Tx excessive retries:0  Invalid misc:0   Missed beacon:0