Home > android, hardware, wifi > WiFi on the Milestone – hmm, interesting…

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 WifiManager.ERROR_AUTHENTICATING.

On the Milestone, the action is never broadcast.

HTC Hero handles this case the way it’s supposed to.

Advertisements
Categories: android, hardware, wifi
  1. jester
    March 29, 2012 at 3:31 pm

    great app. only one thing is. when i first installed it my neighbors network was open. i decided to put a password on it. the app did it so fast i did not see what it was. now my neighbor cant get on his own network. help

    • March 29, 2012 at 3:39 pm

      Android doesn’t let application access network passwords for security reasons. You will need to change the password at the router (there is usually a web interface for this), then update the network’s password in the application.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s