Encryption test results - beyond my parsing ability, but looks like my 
target ap gets blacklisted, don't know why -

Dan O'Reilly wrote:
> On Tue, Jun 16, 2009 at 7:58 AM, Steve Nahn<n...@mit.edu> wrote:
>   
>> ...

>> 2) However, I cannot connect to a WEP encrypted network.  The odd thing
>> here is the iwconfig parameters are set correctly, including the WEP key
>> (using the external tools and wext driver) so after wicd fails with "bad
>> password" I can start dhclient by hand and connect immediately.
>>
>> [n...@sammy ~]$ sudo iwconfig ra0
>> ra0       Ralink STA  ESSID:"TG374"  Nickname:"RT2860STA"
>>          Mode:Managed  Frequency=2.437 GHz  Access Point: 00:1F:90:D4:A7:90
>>          Bit Rate=54 Mb/s
>>          RTS thr:off   Fragment thr:off
>>          Encryption key:DEAD-BEEF-AD
>>          Link Quality=100/100  Signal level:-52 dBm  Noise level:-81 dBm
>>          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>>          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
>>
>> So, something in the wpa_supplicant is failing, but I am not exactly
>> sure how to test this.  Any ideas?  I tried using the RALINK legacy
>> driver but it didn't really work, and I've browsed a fair amount of
>> forums but haven't come up with any hints for debugging.  Could it be
>> that wicd just doesn't work for my hardware?
>>     
>
> It sounds like your driver is behaving strangely.  You can try running
> the commands you see in the log by hand to debug, with some minor
> adjustments:
> /sbin/dhclient -v -r eth0
> ifconfig eth0 0.0.0.0
> /sbin/ip route flush dev eth0
> ifconfig eth0 down
> ifconfig eth0 up
> ifconfig ra0 down
> /sbin/dhclient -v -r ra0
> ifconfig ra0 0.0.0.0
> wpa_cli -i ra0 terminate
> /sbin/ip route flush dev ra0
> iwconfig ra0 mode Managed
> ifconfig ra0 up
> wpa_supplicant -i ra0 -c /var/lib/wicd/configurations/001f90d4a790 -D
> wext (run this in its own window, also note the -B option has been
> removed, which causes wpa_supplicant to fork into the background)
> iwconfig ra0 essid TG374
> iwconfig ra0 channel 6
> iwconfig ra0 ap 00:1F:90:D4:A7:90
>
> Then watch the wpa_supplicant window for stuff that looks like an error.
>
>   

Did this, in fact did

 wpa_supplicant -i ra0 -c /var/lib/wicd/configurations/001f90d4a790 -D wext 
-ddKf wpa_debug2.txt



contents of  debug file:

Initializing interface 'ra0' conf '/var/lib/wicd/configurations/001f90d4a790' dr
iver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/var/lib/wicd/configurations/001f90d4a790' -> '/var/lib/wicd
/configurations/001f90d4a790'
Reading configuration file '/var/lib/wicd/configurations/001f90d4a790'
ap_scan=1
ctrl_interface='/var/run/wpa_supplicant'
Line: 3 - start of a new network block
ssid - hexdump_ascii(len=5):
     54 47 33 37 34                                    TG374           
scan_ssid=0 (0x0)
key_mgmt: 0x4
wep_key0 - hexdump(len=5): 84 90 d2 ca ba
wep_tx_keyidx=0 (0x0)
priority=5 (0x5)
Priority group 5
   id=0 ssid='TG374'
Initializing interface (2) 'ra0'
SIOCGIWRANGE: WE(compiled)=22 WE(source)=14 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf flags 0x0
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:22:43:95:c3:99
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 ra0
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
State: DISCONNECTED -> SCANNINGStarting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed 
up initial association
Received 511 bytes of scan results (5 BSSes)
CTRL-EVENT-SCAN-RESULTS 
Selecting BSS from priority group 5
Try to find WPA-enabled AP
0: 00:1f:90:d4:a7:90 ssid='TG374' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
1: 00:1f:33:38:7a:e8 ssid='Parthum' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
2: 00:18:01:ed:34:57 ssid='0G7D2' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
3: 00:1a:70:67:a5:2f ssid='linksys' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
4: 00:23:69:33:d5:26 ssid='linksys' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1f:90:d4:a7:90 ssid='TG374' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   selected non-WPA AP 00:1f:90:d4:a7:90 ssid='TG374'
Trying to associate with 00:1f:90:d4:a7:90 (SSID='TG374' freq=2437 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
wpa_driver_wext_set_key: alg=1 key_idx=0 set_tx=1 seq_len=0 key_len=5
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: 20 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
Wireless event: cmd=0x8b04 len=12
EAPOL: disable timer tick
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
Wireless event: cmd=0x8b04 len=12
Authentication with 00:1f:90:d4:a7:90 timed out.
Added BSSID 00:1f:90:d4:a7:90 into blacklist
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
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
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Scan requested (ret=0) - scan timeout 5 seconds
Scan timeout - try to get results
Received 612 bytes of scan results (6 BSSes)
CTRL-EVENT-SCAN-RESULTS 
Selecting BSS from priority group 5
Try to find WPA-enabled AP
0: 00:1f:90:d4:a7:90 ssid='TG374' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
1: 00:1f:33:38:7a:e8 ssid='Parthum' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
2: 00:18:01:ed:34:57 ssid='0G7D2' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
3: 00:1f:90:ee:bd:81 ssid='54CC2' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
4: 00:1a:70:67:a5:2f ssid='linksys' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
5: 00:23:69:33:d5:26 ssid='linksys' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1f:90:d4:a7:90 ssid='TG374' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   selected non-WPA AP 00:1f:90:d4:a7:90 ssid='TG374'
Trying to associate with 00:1f:90:d4:a7:90 (SSID='TG374' freq=2437 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
wpa_driver_wext_set_key: alg=1 key_idx=0 set_tx=1 seq_len=0 key_len=5
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: 20 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
Wireless event: cmd=0x8b04 len=12
Authentication with 00:1f:90:d4:a7:90 timed out.
BSSID 00:1f:90:d4:a7:90 blacklist count incremented to 2
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
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
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Scan requested (ret=0) - scan timeout 5 seconds
Scan timeout - try to get results
Received 511 bytes of scan results (5 BSSes)
CTRL-EVENT-SCAN-RESULTS 
Selecting BSS from priority group 5
Try to find WPA-enabled AP0: 00:1f:90:d4:a7:90 ssid='TG374' wpa_ie_len=0 
rsn_ie_len=0 caps=0x11
   skip - blacklisted
1: 00:1f:33:38:7a:e8 ssid='Parthum' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
2: 00:18:01:ed:34:57 ssid='0G7D2' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
3: 00:1a:70:67:a5:2f ssid='linksys' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
4: 00:23:69:33:d5:26 ssid='linksys' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1f:90:d4:a7:90 ssid='TG374' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - blacklisted
1: 00:1f:33:38:7a:e8 ssid='Parthum' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - SSID mismatch
2: 00:18:01:ed:34:57 ssid='0G7D2' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - SSID mismatch
3: 00:1a:70:67:a5:2f ssid='linksys' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - SSID mismatch
4: 00:23:69:33:d5:26 ssid='linksys' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - SSID mismatch
No APs found - clear blacklist and try again
Removed BSSID 00:1f:90:d4:a7:90 from blacklist (clear)
Selecting BSS from priority group 5
Try to find WPA-enabled AP
0: 00:1f:90:d4:a7:90 ssid='TG374' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
1: 00:1f:33:38:7a:e8 ssid='Parthum' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
2: 00:18:01:ed:34:57 ssid='0G7D2' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
3: 00:1a:70:67:a5:2f ssid='linksys' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
4: 00:23:69:33:d5:26 ssid='linksys' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1f:90:d4:a7:90 ssid='TG374' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   selected non-WPA AP 00:1f:90:d4:a7:90 ssid='TG374'
Trying to associate with 00:1f:90:d4:a7:90 (SSID='TG374' freq=2437 MHz)
Cancelling scan request


and this seems to repeat forever...any insights?

Steve

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
wicd-devel mailing list
wicd-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicd-devel

Reply via email to