Friday, January 11, 2008

usb wireless md40900 dongle on ubuntu gutsy with WPA2

Friday, January 11, 2008 Posted by Andre Broers ,
After installing ubuntu gutsy I discovered that my usb wireless wasn't working. I solved the problem with the following steps:

first download the windows driver from  :

extract the driver and put it on a memory stick. When the downloaded exe is started it will extract the drivers to c:Medion . Copy the c:MedionDriver directory including 4 files on the memory stick. The files should start with WlanUIG.* .

Now install the software:

sudo apt-get install ndiswrapper-common
sudo apt-get install --force-yes ndiswrapper-util

add the following lines to /etc/modprobe.d/blacklist because these drivers won't work:

blacklist islsm_pci
blacklist islsm
blacklist islsm_usb
blacklist prism2_usb
blacklist rtl8187
blacklist r8187b
blacklist r8187
blacklist prism54usb
blacklist prism54pci
blacklist p54usb
blacklist p54pci

Now it is time to install the ndis drivers. Insert the memorystick in the machine. It will be mounted on /media/disk1 in my situation. cd to the directory /media/disk1/Driver and issue the following statements:

sudo ndiswrapper -i WlanUIG.inf
sudo ndiswrapper -l

wlanuig : driver installed
device (0CDE:0006) present (alternate driver: p54usb)

sudo modprobe ndiswrapper
[   63.799356] ndiswrapper version 1.45 loaded (smp=yes)
[   63.926769] usb 5-3.4: reset high speed USB device using ehci_hcd and address 6
[   64.047713] ndiswrapper: driver wlanuig (,11/15/2004, loaded
[   65.846130] wlan0: ethernet device 00:60:b3:b3:0a:78 using NDIS driver: wlanuig, version: 0x3030d, NDIS version: 0x501, vendor: 'NB 802.11g Wireless LAN USB Adapter(3886)', 0CDE:0006.F.conf
[   65.846188] wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
[   65.846231] usbcore: registered new interface driver ndiswrapper

sudo ndiswrapper -m        //this will load the ndiswrapper module at startup.

Now it is time to configure the new wlan0 interface with the network-admin application in the Ubuntu GUI.

After all the parameter are set your /etc/network/interfaces file should look like this:

auto lo
iface lo inet loopback

iface wlan0 inet dhcp
wireless-essid <your ssid>   #this line I had to add due to a Bug#403316
wpa-psk <your key>
wpa-driver wext
wpa-key-mgmt WPA-PSK
wpa-proto WPA2
wpa-ssid <your ssid>

auto wlan0

I had to add one line the interfaces file manually.

after this I issued a:
sudo /etc/init.d/networking stop
sudo /etc/init.d/networking start

And my wireless usb dongle does the job. (After a reboot it comes up automatic)