mozilla-b2g/gaia — pull request #8640 by leob2g (2013-03-14 06:21:08+00:00)
Title: Bug 845178 - [Wi-Fi][Gaia/System] Wi-Fi is not reenabled sometimes after...

Wi-Fi is not reenabled sometimes after LCD Off and On.

The reproduce sequence is the following.
1. Wi-Fi enable.
2. Push power button to LCD Off.
3. Waitting 60 ~ 70 seconds.
4. Push power button to LCD On.
5. check whether Wi-Fi is enabled.
6. repeat 2 ~ 5.

The System App maintains this function. And I think the main cause is the Wi-Fi enable request is skipped when Wi-Fi disable request is processed.

So we should maintain the Wi-Fi state to check whether the Wi-Fi is now enabling or disabling.

https://bugzilla.mozilla.org/show_bug.cgi?id=845178