To whom it may concern.
Using wpa_supplicant, unable to establish connection to access point.
iwlist can detect AP (TKIP, WPA), pass phrase is correct, id is correct, however, both ifconfig and iwconfig indicate that something is wrong with connection. Not much error message (/var/log, dmesg, console...)
add one line to wpa_supplicant.conf as indicated bold below
Without this line, some AP's do not work, (Maybe WPA ones. I have not investigated, because I do not have any control over the AP.) In the past, all AP's around me worked without the line.