diff options
author | Rebecca Silberstein <silberst@google.com> | 2018-05-10 19:36:30 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-05-10 19:36:30 +0000 |
commit | a9458983e3fc6ef0c64db1e1af82ecb1fe0183ff (patch) | |
tree | 2abcca8d858b9d33ee1c9418cd0ea103c326916b /service | |
parent | 9d83a9f592ba146ddb328d0415e067504f221b96 (diff) | |
parent | bf4a0d9b27116449470932b997dc885d833f5ce7 (diff) |
Merge "WifiStateMachine: send supplicant connection bcast" into pi-dev
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiStateMachine.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiStateMachine.java b/service/java/com/android/server/wifi/WifiStateMachine.java index f8f1ff3ce..8f213dfee 100644 --- a/service/java/com/android/server/wifi/WifiStateMachine.java +++ b/service/java/com/android/server/wifi/WifiStateMachine.java @@ -2639,6 +2639,12 @@ public class WifiStateMachine extends StateMachine { mContext.sendBroadcastAsUser(intent, UserHandle.ALL); } + /** + * Helper method used to send state about supplicant - This is NOT information about the current + * wifi connection state. + * + * TODO: b/79504296 This broadcast has been deprecated and should be removed + */ private void sendSupplicantConnectionChangedBroadcast(boolean connected) { Intent intent = new Intent(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION); intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT); @@ -3675,6 +3681,7 @@ public class WifiStateMachine extends StateMachine { if (!mWifiConfigManager.migrateFromLegacyStore()) { Log.e(TAG, "Failed to migrate from legacy config store"); } + // TODO: b/79504296 This broadcast has been deprecated and should be removed sendSupplicantConnectionChangedBroadcast(true); mWifiNative.setExternalSim(mInterfaceName, true); @@ -3745,6 +3752,8 @@ public class WifiStateMachine extends StateMachine { if (mNetworkAgent != null) mNetworkAgent.sendNetworkInfo(mNetworkInfo); mCountryCode.setReadyForChange(false); mInterfaceName = null; + // TODO: b/79504296 This broadcast has been deprecated and should be removed + sendSupplicantConnectionChangedBroadcast(false); } void registerConnected() { |