I'm using madwifi 0.9.2 (although i have also tried latest snapshot 1747) With wpa_supplicant (0.4.9, 0.5.4 and 0.5.5).
everything works fine in unencrypted mode, however when i try to use WPA or WPA2, the connection is broken just after its completed. Below is the output of wpa_supplicant -dd -i ath0:
...
State: GROUP_HANDSHAKE -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to 00:0e:2e:90:50:34 completed (reauth) [id=0 id_str=]
WEXT: Operstate: linkmode=-1, operstate=6
EAPOL: External notification - portValid=1
EAPOL: External notification - EAP success=1
EAPOL: SUPP_PAE entering state AUTHENTICATING
EAPOL: SUPP_BE entering state SUCCESS
EAP: EAP entering state DISABLED
EAPOL: SUPP_PAE entering state AUTHENTICATED
EAPOL: SUPP_BE entering state IDLE
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
EAPOL: startWhen --> 0
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Setting scan request: 0 sec 100000 usec
Added BSSID 00:0e:2e:90:50:34 into blacklist
State: COMPLETED -> DISCONNECTED
as you can see, it connects to the AP, but then after producing "Setting scan request..." almost instantly the connection is terminated.
i have found some info in track about race conditions related to scanning
but as far as i understand, they were supposed to be solved in 0.9.2, thats
why i decided to fill in this bug.
Please let me know if i could be of any assistance - maybe supplying additional debug info or so.
cheers,
marek