Path: number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.co   
   !nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k   
   rotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail   
   From: Franziska von Weber    
   Newsgroups: alt.os.linux.ubuntu   
   Subject: WLAN on Ubuntu Edgy using Realtek8187 with Ndiswrapper & WPA   
   Followup-To: poster   
   Date: Thu, 1 Feb 2007 23:45:38 +0100   
   Lines: 187   
   Message-ID:    
   Reply-To: franziska.en.colombia@web.de   
   Mime-Version: 1.0   
   Content-Type: text/plain; charset="iso-8859-1"   
   Content-Transfer-Encoding: 8bit   
   X-Trace: individual.net 13a/XzeHFWMkcY4ApegBqwVRnzPxlLzMxRE6dNGENXzkJZmA4U   
   User-Agent: 40tude_Dialog/2.0.15.1de   
   Posted-And-Mailed: yes   
   Xref: number1.nntp.dca.giganews.com alt.os.linux.ubuntu:9486   
      
   Dear usenet-users (and hopefully Ubuntu specialists),   
      
   after spending three whole days in front of my computer, reading like   
   twenty different tutorials on the subject and asking questions in different   
   forums, I´m still stuck at square one with configuring my wlan.   
   I will describe what I did and post the outputs of some commands so that   
   you can see what happened so far. I hope that someone can recognize the   
   mistakes I´ve made and help me to correct them.   
      
   1. I installed Ubuntu Edgy.   
   2. I have an Avalon USB Wireless Adapter with Realtek8187 chipset.   
   Currently there´s a linux driver available at the Realtek website that is   
   widely considered useless. So, after reading some HowTo´s that all   
   recommend this procedure, I installed Ndiswrapper-1.35. Then I read in a   
   forum that somenone with the exact same adapter recommended to use the   
   Win98/ME drivers instead of the newer Win2k/XP drivers since they would not   
   work.   
   3. I installed the win98 driver, the command "ndiswrapper -l" tells me   
   "driver installed, hardware present".   
   4. I blacklisted all other modules that could be in conflict with   
   ndiswrapper and loaded the ndiswrapper-module.   
   5. I use wpa_supplicant (or at least I´m trying to), so I also made the   
   entry with my ESSID and PSK and everything else in the wpa_supplicant.conf   
   file.   
      
   - So far everything went great, no errors whatsoever. The first time I   
   realized that something had gone wrong, was when executing the following   
   command: sudo wpa_supplicant -iwlan0 -Dwext   
   -c/etc/wpa_supplicant/wpa_supplicant.conf -d   
      
   The adapter could not find any wireless network whatsoever. I then read on   
   the Ndiswrapper troubleshooting-page that there might be two problems.   
   Either the AP does not broadcast the SSID or else the radio could be turned   
   off. Since I can see the SSID when using the same adapter on win2k I   
   believe that that is not the problem. But everything I found so far on   
   turning the radio on/ off was about notebooks and I´m tyring to do this   
   with an ordinary desktop computer. (Using the adapter under win2k there´s a   
   possibility to turn off the radio but only within the wlan-application)   
      
   So any help will be appreciated but please do not be too cryptic with your   
   advice since I am totally new to Linux and have no idea where to look for   
   mistakes.   
      
      
   Well, thanks in advance and my apologies for this long posting. ;)   
   Franziska   
      
   ______________________________________________   
      
   Here are some outputs from my system:   
      
   root@ede:/# lsusb   
   Bus 003 Device 002: ID 0bda:8187 Realtek Semiconductor Corp.    
   Bus 003 Device 001: ID 0000:0000    
   Bus 001 Device 001: ID 0000:0000    
   Bus 002 Device 001: ID 0000:0000    
      
   root@ede:/# ifconfig   
   eth0 Protokoll:Ethernet Hardware Adresse 00:0B:6A:AC:D1:C5    
    UP BROADCAST MULTICAST MTU:1500 Metric:1   
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0   
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0   
    Kollisionen:0 Sendewarteschlangenlänge:1000    
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)   
    Interrupt:193 Basisadresse:0xd400   
   lo Protokoll:Lokale Schleife    
    inet Adresse:127.0.0.1 Maske:255.0.0.0   
    inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine   
    UP LOOPBACK RUNNING MTU:16436 Metric:1   
    RX packets:18 errors:0 dropped:0 overruns:0 frame:0   
    TX packets:18 errors:0 dropped:0 overruns:0 carrier:0   
    Kollisionen:0 Sendewarteschlangenlänge:0   
    RX bytes:1284 (1.2 KiB) TX bytes:1284 (1.2 KiB)   
   wlan0 Protokoll:Ethernet Hardware Adresse 00:0E:2E:A7:50:F5    
    UP BROADCAST MULTICAST MTU:1500 Metric:1   
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0   
    TX packets:3 errors:0 dropped:0 overruns:0 carrier:0   
    Kollisionen:0 Sendewarteschlangenlänge:1000    
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)   
      
   Also weird, the GUI-hardware-manager does not recognize any wireless   
   device, no name, no mac address, nothing - but with "ifconfig" it´s there.   
      
   root@ede:/# ndiswrapper -l   
   netrtuw : driver installed   
    device (0BDA:8187) present   
      
   root@ede:/# iwconfig   
   lo no wireless extensions.   
   eth0 no wireless extensions.   
   wlan0 IEEE 802.11g ESSID:off/any    
    Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated    
    Bit Rate:54 Mb/s Tx-Power:20 dBm Sensitivity=0/3    
    RTS thr:2432 B Fragment thr:2432 B    
    Encryption key:off Power Management:off   
    Link Quality:0 Signal level:0 Noise level:0   
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0   
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0   
   sit0 no wireless extensions.   
      
   root@ede:/# cat /etc/network/interfaces   
   auto lo   
   iface lo inet loopback   
   iface eth0 inet dhcp   
      
   auto eth1   
   iface eth1 inet dhcp   
      
   auto eth2   
   iface eth2 inet dhcp   
      
   auto ath0   
   iface ath0 inet dhcp   
      
   iface wlan0 inet dhcp   
   wpa-driver wext   
   wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf   
   auto wlan0   
      
   root@ede:/# cat /etc/wpa_supplicant/wpa_supplicant.conf   
   ctrl_interface=/var/run/wpa_supplicant   
   eapol_version=1   
   ap_scan=2   
   network={   
    ssid="mySSID"   
    scan_ssid=1   
    proto=WPA   
    key_mgmt=WPA-PSK   
    pairwise=TKIP   
    group=TKIP   
    psk="my-key-in-ascii"   
   }   
      
   root@ede:/# sudo wpa_supplicant -iwlan0 -Dwext   
   -c/etc/wpa_supplicant/wpa_supplicant.conf -d   
   Initializing interface 'wlan0' conf   
   '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' ctrl_interface   
   'N/A' bridge 'N/A'   
   Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' ->   
   '/etc/wpa_supplicant/wpa_supplicant.conf'   
   Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'   
   ctrl_interface='/var/run/wpa_supplicant'   
   eapol_version=1   
   ap_scan=2   
   Priority group 0   
    id=0 ssid='mySSID'   
   Initializing interface (2) 'wlan0'   
   EAPOL: SUPP_PAE entering state DISCONNECTED   
   EAPOL: KEY_RX entering state NO_KEY_RECEIVE   
   EAPOL: SUPP_BE entering state INITIALIZE   
   EAP: EAP entering state DISABLED   
   EAPOL: External notification - portEnabled=0   
   EAPOL: External notification - portValid=0   
   SIOCGIWRANGE: WE(compiled)=20 WE(source)=18 enc_capa=0xf   
    capabilities: key_mgmt 0xf enc 0xf   
   WEXT: Operstate: linkmode=1, operstate=5   
   Own MAC address: 00:0e:2e:a7:50:f5   
   wpa_driver_wext_set_wpa   
   wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0   
   wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0   
   wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0   
   wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0   
   wpa_driver_wext_set_countermeasures   
   wpa_driver_wext_set_drop_unencrypted   
   Setting scan request: 0 sec 100000 usec   
   Using existing control interface directory.   
   bind(PF_UNIX): Address already in use   
   ctrl_iface exists and seems to be in use - cannot override it   
   Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore   
   Failed to initialize control interface '/var/run/wpa_supplicant'.   
   You may have another wpa_supplicant process already running or the file was   
   left by an unclean termination of wpa_supplicant in which case you will   
   need   
   to manually remove this file before starting wpa_supplicant again.   
      
   Failed to add interface wlan0   
   State: DISCONNECTED -> DISCONNECTED   
   WEXT: Operstate: linkmode=-1, operstate=5   
   No keys have been configured - skip key clearing   
   EAPOL: External notification - portEnabled=0   
   EAPOL: External notification - portValid=0   
   wpa_driver_wext_set_wpa   
   wpa_driver_wext_set_drop_unencrypted   
   wpa_driver_wext_set_countermeasures   
   No keys have been configured - skip key clearing   
   WEXT: Operstate: linkmode=0, operstate=6   
   Cancelling scan request   
   --- Platinum Xpress/Win/WINServer v3.0pr5   
    * Origin: Omicron Theta BBS (1:261/20)   
|