WiFi on the Milestone – hmm, interesting…
The Milestone (and I suppose, Droid) has an interesting glitch in its WiFi code.
When trying to connect to a protected network with an incorrect password, the networking code does not notify the application that the password is wrong. It just sits there trying to connect – the final notification is that a connection is in progress, but no notification of a successful connect (obviously) and no errors.
The problem is deep inside the firmware. This can be verified with Android’s built-it WiFi connection screen.
My code registers for
WifiManager.SUPPLICANT_STATE_CHANGED_ACTION (“android.net.wifi.supplicant.STATE_CHANGE”). It is broadcast in many cases, but in case there is an authentication error there is supposed to be an integer extra,
WifiManager.EXTRA_SUPPLICANT_ERROR set to
On the Milestone, the action is never broadcast.
HTC Hero handles this case the way it’s supposed to.