Problem with RTL8187B USB stick

Iñigo Martínez inigomartinez at gmail.com
Mon Jan 26 19:16:21 EST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello:

I'm having some problems with an wireless USB stick. In the last months
i was thinking that the driver wasn't mature enough and that was why it
wasn't working, but lately i got a new laptop, tried with it and it was
working. Both are configured the same afaik.

This are tries done with 2.6.28-r1 kernel. I have tried with 2.6.29-rc2
without any luck neither. I'm lately out of ideas.

Anyway, i'm sending the mandatory information (sorry for the huge
message). "Please" ask me for anything more i can provide.

This is the USB stick data:

usb 1-3: new full speed USB device using ohci_hcd and address 9
usb 1-3: not running at top speed; connect to a high speed hub
usb 1-3: configuration #1 chosen from 1 choice
rtl8187: 8187B chip detected. Support is EXPERIMENTAL, and could damage your
         hardware, use at your own risk
phy4: Selected rate control algorithm 'pid'
phy4: hwaddr 00:18:e7:40:c1:6e, RTL8187BvE V0 + rtl8225z2
usb 1-3: New USB device found, idVendor=0bda, idProduct=8189
usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-3: Product: RTL8187B_WLAN_Adapter
usb 1-3: Manufacturer: Manufacturer_Realtek
usb 1-3: SerialNumber: 00e04c000001

This is what syslog says:

wlan0: direct probe to AP 00:1f:3a:2a:54:ee try 1
wlan0: direct probe to AP 00:1f:3a:2a:54:ee try 1
wlan0: direct probe to AP 00:1f:3a:2a:54:ee try 2
wlan0: direct probe to AP 00:1f:3a:2a:54:ee try 3
wlan0: direct probe to AP 00:1f:3a:2a:54:ee timed out

This is what wpa_supplicant says:

corax wpa_supplicant # wpa_supplicant -dd -Dwext -iwlan0
- -c/etc/wpa_supplicant/wpa_supplicant.conf
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'
ap_scan=1
Line: 7 - start of a new network block
ssid - hexdump_ascii(len=8):
     54 61 72 73 6f 6e 69 73                           Tarsonis
scan_ssid=1 (0x1)
proto: 0x1
key_mgmt: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=14): [REMOVED]
priority=5 (0x5)
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Line: 17 - start of a new network block
key_mgmt: 0x4
priority=-9999999 (0xff676981)
Priority group 5
   id=0 ssid='Tarsonis'
Priority group -9999999
   id=1 ssid=''
Initializing interface (2) 'wlan0'
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf flags 0x0
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:18:e7:40:c1:6e
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
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
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
Added interface wlan0
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=8):
     54 61 72 73 6f 6e 69 73                           Tarsonis
Trying to get current scan results first without requesting a new scan
to speed up initial association
Received 341 bytes of scan results (1 BSSes)
CTRL-EVENT-SCAN-RESULTS
Selecting BSS from priority group 5
Try to find WPA-enabled AP
0: 00:1f:3a:2a:54:ee ssid='Tarsonis' wpa_ie_len=22 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
   selected WPA AP 00:1f:3a:2a:54:ee ssid='Tarsonis'
Try to find non-WPA AP
Trying to associate with 00:1f:3a:2a:54:ee (SSID='Tarsonis' freq=2412 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2
02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00
00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
wpa_driver_wext_set_psk
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b04 len=12
EAPOL: disable timer tick
Authentication with 00:1f:3a:2a:54:ee timed out.
Added BSSID 00:1f:3a:2a:54:ee into blacklist
No keys have been configured - skip key clearing
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Scan requested (ret=0) - scan timeout 5 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b19 len=8
Received 922 bytes of scan results (3 BSSes)
CTRL-EVENT-SCAN-RESULTS
Selecting BSS from priority group 5
Try to find WPA-enabled AP
0: 00:1f:3a:2a:54:ee ssid='Tarsonis' wpa_ie_len=22 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
   selected WPA AP 00:1f:3a:2a:54:ee ssid='Tarsonis'
Try to find non-WPA AP
Trying to associate with 00:1f:3a:2a:54:ee (SSID='Tarsonis' freq=2412 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2
02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00
00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
wpa_driver_wext_set_psk
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b04 len=12
Authentication with 00:1f:3a:2a:54:ee timed out.
BSSID 00:1f:3a:2a:54:ee blacklist count incremented to 2
No keys have been configured - skip key clearing
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=8):
     54 61 72 73 6f 6e 69 73                           Tarsonis
Scan requested (ret=0) - scan timeout 30 seconds

And at last, this is my wpa_supplicant.conf:

# This is a network block that connects to any unsecured access point.
# We give it a low priority so any defined blocks are preferred.

ctrl_interface=/var/run/wpa_supplicant
ap_scan=1

network={
	ssid="Tarsonis"
	scan_ssid=1
	proto=WPA
	key_mgmt=WPA-PSK
	#pairwise=CCMP TKIP
	psk="conanelbarbaro"
	priority=5
}

network={
	key_mgmt=NONE
	priority=-9999999
}

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkl+UlQACgkQYeZEGfB6+4I35ACfdsXkHyq7vP7+85+VVIppRb94
EZoAnj0B/EmvUWsrmDFM7xpfJiNTBCbW
=G6jM
-----END PGP SIGNATURE-----


More information about the HostAP mailing list