commit | 33ffa2e2535883703fdc5cfc5e5f082dee48aebd | [log] [tgz] |
---|---|---|
author | Jake Hamby <jhamby@google.com> | Fri Oct 26 15:38:10 2012 -0700 |
committer | Jake Hamby <jhamby@google.com> | Fri Oct 26 16:01:09 2012 -0700 |
tree | cabaae1b260ba4e1a88c4dcd97bc9bcab5220fe7 | |
parent | 8bd80bfce0b26dcafaab5b665a72df3ab706124a [diff] |
Fix race condition causing occasional CTS failures. WifiManagerTest was waiting for SUPPLICANT_STATE_CHANGED_ACTION after enabling or disabling WiFi. Fix the code to check if the WiFi state is already the desired state, and if not, to wait for the WIFI_STATE_CHANGED_ACTION broadcast intent. Bug: 7082455 Change-Id: Id1c2242c32311084f5587ea5403f6b227d1b8b04