From a22b357485a13c10d40cf89f52772cdeaadee785 Mon Sep 17 00:00:00 2001 From: Nate Jiang Date: Thu, 23 Apr 2020 20:15:25 -0700 Subject: [Passpoint] Pass creator uid and package name to WifiConfigManager Bug: 154826503 Test: atest com.android.server,wifi Change-Id: Ib6572ea78ff004a01825dd5d2af99e3f58205c3c --- .../server/wifi/hotspot2/PasspointNetworkNominateHelper.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'service') diff --git a/service/java/com/android/server/wifi/hotspot2/PasspointNetworkNominateHelper.java b/service/java/com/android/server/wifi/hotspot2/PasspointNetworkNominateHelper.java index 22ce2f07a..0a5da1f7c 100644 --- a/service/java/com/android/server/wifi/hotspot2/PasspointNetworkNominateHelper.java +++ b/service/java/com/android/server/wifi/hotspot2/PasspointNetworkNominateHelper.java @@ -204,13 +204,9 @@ public class PasspointNetworkNominateHelper { // Add or update with the newly created WifiConfiguration to WifiConfigManager. // NOTE: if existingNetwork != null, this update is a no-op in most cases if the SSID is the // same (since we update the cached config in PasspointManager#addOrUpdateProvider(). - NetworkUpdateResult result; - if (config.fromWifiNetworkSuggestion) { - result = mWifiConfigManager.addOrUpdateNetwork( - config, config.creatorUid, config.creatorName); - } else { - result = mWifiConfigManager.addOrUpdateNetwork(config, Process.WIFI_UID); - } + NetworkUpdateResult result = mWifiConfigManager.addOrUpdateNetwork( + config, config.creatorUid, config.creatorName); + if (!result.isSuccess()) { mLocalLog.log("Failed to add passpoint network"); return existingNetwork; -- cgit v1.2.3