The card is a Intel 3945ABG, which used to work fine in Lenny.
root@debian:/etc# wpa_supplicant -iwlan0 -cwpa_supplicant.conf -Dwext
Trying to associate with 00:21:29:96:8a:ee (SSID='linux' freq=2462 MHz)
Associated with 00:00:00:00:00:00
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Trying to associate with 00:21:29:96:8a:ee (SSID='linux' freq=2462 MHz)
Associated with 00:21:29:96:8a:ee
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Trying to associate with 00:21:29:96:8a:ee (SSID='linux' freq=2462 MHz)
Associated with 00:21:29:96:8a:ee
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Trying to associate with 00:21:29:96:8a:ee (SSID='linux' freq=2462 MHz)
Associated with 00:21:29:96:8a:ee
WPA: No SSID info found (msg 1 of 4).
It's weird I can see the router with iwlist scanning but can't connect.
I also tried without WPA, using iwconfig wlan0 essid linux and still couldn't get the AP associated.