summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2010-07-28 11:19:54 -0700
committerIrfan Sheriff <isheriff@google.com>2010-07-28 11:19:54 -0700
commit22c2b25ad7c6ed175831bd2421ee110a343c78dd (patch)
tree62dad040a853bb33afd510d6665f78a61bdd5100 /wifi
parent080985458085c77a1a3344c0a02608e8359ed551 (diff)
downloadframeworks_base-22c2b25ad7c6ed175831bd2421ee110a343c78dd.zip
frameworks_base-22c2b25ad7c6ed175831bd2421ee110a343c78dd.tar.gz
frameworks_base-22c2b25ad7c6ed175831bd2421ee110a343c78dd.tar.bz2
sticky broadcasts dont need system ready check
Fix an issue where checking for system ready status for sticky broadcasts can lead to boot up with wifi turned on and settings showing incorrect status. Bug: 2876746 Change-Id: Iae39855c255513e28a13bd819b3d14d81fbaba43
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/WifiStateTracker.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/wifi/java/android/net/wifi/WifiStateTracker.java b/wifi/java/android/net/wifi/WifiStateTracker.java
index 96f0354..4fb35c9 100644
--- a/wifi/java/android/net/wifi/WifiStateTracker.java
+++ b/wifi/java/android/net/wifi/WifiStateTracker.java
@@ -1207,8 +1207,6 @@ public class WifiStateTracker extends HierarchicalStateMachine implements Networ
if (DBG) Log.d(TAG, "setWifiState: " + getWifiStateByName());
- if (!ActivityManagerNative.isSystemReady()) return;
-
final Intent intent = new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION);
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
intent.putExtra(WifiManager.EXTRA_WIFI_STATE, wifiState);
@@ -1235,7 +1233,6 @@ public class WifiStateTracker extends HierarchicalStateMachine implements Networ
if (DBG) Log.d(TAG, "setWifiApState: " + getWifiApStateByName());
// Broadcast
- if (!ActivityManagerNative.isSystemReady()) return;
final Intent intent = new Intent(WifiManager.WIFI_AP_STATE_CHANGED_ACTION);
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
intent.putExtra(WifiManager.EXTRA_WIFI_AP_STATE, wifiApState);
@@ -1706,8 +1703,6 @@ public class WifiStateTracker extends HierarchicalStateMachine implements Networ
}
private void sendNetworkStateChangeBroadcast(String bssid) {
- if (!ActivityManagerNative.isSystemReady()) return;
-
Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION);
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT
| Intent.FLAG_RECEIVER_REPLACE_PENDING);
@@ -1718,8 +1713,6 @@ public class WifiStateTracker extends HierarchicalStateMachine implements Networ
}
private void sendSupplicantStateChangedBroadcast(StateChangeResult sc, boolean failedAuth) {
- if (!ActivityManagerNative.isSystemReady()) return;
-
Intent intent = new Intent(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION);
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT
| Intent.FLAG_RECEIVER_REPLACE_PENDING);