As a second thought, the issue is very likely the fact that
wpa_supplicant does not work. It goes through an endless cycle of
states DISCONNECTED->CONNECTING->ASSOCIATING->ASSOCIATED->DISCONNECTED
etc.

It also reports something like "authentication timed out".

My problem is that I do not know WHY it timed out. It reports a lot of
crap, but nothing immediately useful. I will try to find its mailing
list.

i