summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2018-05-16 11:23:01 -0700
committerRoshan Pius <rpius@google.com>2018-05-16 11:23:01 -0700
commit35b49ffad94e7e7d7769db2a4aea0057640165fa (patch)
tree01fdde6cd8120ae00e034ea12dcc8975941c9f60 /service
parentd0b1c6de370037885cf0da1eb202efff23c746b4 (diff)
WifiConfigManager: Explcitly set the disable reason for new networks
New networks added start out with network selection "status" marked disabled, also set the "disable reason" explicitly to be consistent. Note: This does not fix any issues other than the discrepancy noticed between "status" and "disable reason" in network selection status. Bug: 79750205 Test: Unit tests Change-Id: I4be4e3d1719bc34b62e527294e0d59b3dd1b1627
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiConfigManager.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigManager.java b/service/java/com/android/server/wifi/WifiConfigManager.java
index 336ebbd16..982c48a48 100644
--- a/service/java/com/android/server/wifi/WifiConfigManager.java
+++ b/service/java/com/android/server/wifi/WifiConfigManager.java
@@ -898,6 +898,8 @@ public class WifiConfigManager {
configuration.status = WifiConfiguration.Status.DISABLED;
configuration.getNetworkSelectionStatus().setNetworkSelectionStatus(
NetworkSelectionStatus.NETWORK_SELECTION_PERMANENTLY_DISABLED);
+ configuration.getNetworkSelectionStatus().setNetworkSelectionDisableReason(
+ NetworkSelectionStatus.DISABLED_BY_WIFI_MANAGER);
}
/**