diff options
-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 4a0a24a21..4a51ffceb 100644 --- a/service/java/com/android/server/wifi/WifiStateMachine.java +++ b/service/java/com/android/server/wifi/WifiStateMachine.java @@ -2665,6 +2665,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); @@ -3701,6 +3707,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); @@ -3766,6 +3773,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() { |