I too run an access point powered by hostapd daemon on a Gentoo linux box.I have numerous devices that are able to connect to this AP without any problems, including several laptops running various versions of windows, other brands of phone, blu-ray players etc....

I received a brand new iPhone 4 from my boss today as a work phone only to discover that when I tried to connect it to my AP, it asks me to enter a username and password! ?!My network only requires a PSK. It does not need a username.

I have setting up the connection manually, specifying WPA2-PSK but the phone still cannot connect.

For anyone else who comes across this apparently very obscure problem. I have found a fix (that works for me at least).

Two settings are required in the /etc/hostapd/hostapd.conf file in order fo rthe iPhone to see the access point as wpa2-psk and not wpa2-enterprise.

ieee8021x=0eap_server=0

Although these should be the default settings for the hostapd daemon if they are left unspecified, the apparently are not. I had to explicitly disable these features before my iPhone 4 (and for that matter my wifes new Galaxy GT-I9000) would see that access point as they should.

The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Compnet Ventures, LLC hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.