#7825 BLOC 8.2.0 (: can't complete WPA handshake with D-Link WBR-2310

Zarro Boogs per Child bugtracker at laptop.org
Tue Sep 23 19:35:59 EDT 2008


#7825: can't complete WPA handshake with D-Link WBR-2310
-------------------------------+--------------------------------------------
   Reporter:  dsd              |       Owner:  jcardona            
       Type:  defect           |      Status:  assigned            
   Priority:  blocker          |   Milestone:  8.2.0 (was Update.2)
  Component:  wireless         |     Version:  not specified       
 Resolution:                   |    Keywords:  8.2.0:? relnote     
Next_action:  test in release  |    Verified:  1                   
  Blockedby:                   |    Blocking:                      
-------------------------------+--------------------------------------------

Comment(by jcardona):

 I need a good way to replicate the new problems reported in this ticket.
 My original unit test against the WBR-2310 was always failing, and now it
 always passes, so is not useful anymore.

 I've now set up 3 APs, one with WPA, one with WPA2 and one with WEP40
 security protocols.  And I wrote this test script:

 {{{
 #! /bin/bash

 function wait_for_assoc()
 {
         WPA_STATUS=`wpa_cli status | grep 'wpa_state' | cut -d= -f2`
         retries=0
         while [ "$WPA_STATUS" != COMPLETED ]
         do
                 WPA_STATUS=`wpa_cli status | grep 'wpa_state' | cut -d=
 -f2`
                 retries=$((retries+1))
                 [ $retries -lt 10000 ] || exit 1
         done
         echo $WPA_STATUS
 }

 for i in `seq 0 20`
 do
         killall wpa_supplicant
         sleep 1
         n=$((i%3))
         SEC_TYPE=`cat conf/$n.conf  | grep info | cut -d: -f2`
         echo -n "Trying AP$n ($SEC_TYPE)..."
         wpa_supplicant -B -Dwext -ieth1 -cconf/$n.conf 2> /dev/null
         wait_for_assoc
 done

 echo PASS
 exit 0
 }}}

 (note that the test requires wpa_supplicant configuration files named
 {{{conf/0.conf, conf/1.conf}}} and {{{conf/2.conf}}})

 I get perfect results:

 {{{
 Trying AP0 (WPA2)...COMPLETED
 Trying AP1 (WPA)...COMPLETED     # AP1 is the WBR-2310
 Trying AP2 (WEP40)...COMPLETED
 Trying AP0 (WPA2)...COMPLETED
 Trying AP1 (WPA)...COMPLETED
 Trying AP2 (WEP40)...COMPLETED
 Trying AP0 (WPA2)...COMPLETED
 Trying AP1 (WPA)...COMPLETED
 Trying AP2 (WEP40)...COMPLETED
 Trying AP0 (WPA2)...COMPLETED
 Trying AP1 (WPA)...COMPLETED
 Trying AP2 (WEP40)...COMPLETED
 Trying AP0 (WPA2)...COMPLETED
 Trying AP1 (WPA)...COMPLETED
 Trying AP2 (WEP40)...COMPLETED
 Trying AP0 (WPA2)...COMPLETED
 Trying AP1 (WPA)...COMPLETED
 Trying AP2 (WEP40)...COMPLETED
 Trying AP0 (WPA2)...COMPLETED
 Trying AP1 (WPA)...COMPLETED
 Trying AP2 (WEP40)...COMPLETED
 PASS
 }}}

 If anyone out there wants to run the provided test script I would be very
 grateful.

-- 
Ticket URL: <http://dev.laptop.org/ticket/7825#comment:57>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list