As Intel states on http://ipw3945.sourceforge.net/ this driver is deprecated and mine is not functional for WPA-2.
So I have to replace the driver IPW driver with the IWL driver from http://intellinuxwireless.org.
It turned out that my not functional IPW driver was due to how the passphrase for my wireless was stored with gnome-keyring-manager. It was stored into the 'default' keyring and not into the 'login' keyring. So this story title is not covering the end result. But still. The commands are useful to me and hopefully to you too.
Commands used are
lsmod | grep ipw