Right now, nsWifiWorker.js simply tracks the interface. We should really track the configured networks, whether we're connected to a network and the available networks as well.
Configured networks are tracked by the supplicant, right? Thats where the configuration sits.
Yes, but they're useful to keep track of locally too. For example, Android shows all of your configured networks below the available networks. Also, connecting to a network is done with the network's ID, so we'll have to have that for the current (or about-to-be-current) network no matter what.
I see most of the state here useful for consumers such as the settings screen.
This ended up being part of bug 732982.