summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-03-25 01:04:47 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-03-25 01:04:47 +0000
commit3f5d6666567720d9784b06cb7b55108b85160cc3 (patch)
treec14ca168e8894731284ef1341314c1a3af20bd40 /libs
parent9e53fe99f9e7952a7525b4ccbcee4677d1814185 (diff)
parentb11071ccf5dd291b8a66955b7fd454b4658b2c6a (diff)
Merge "[WifiTrackerLib] Allow privacy setting for Passpoint entries" into rvc-dev
Diffstat (limited to 'libs')
-rw-r--r--libs/WifiTrackerLib/src/com/android/wifitrackerlib/PasspointWifiEntry.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/PasspointWifiEntry.java b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/PasspointWifiEntry.java
index b607180fc..b26d035da 100644
--- a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/PasspointWifiEntry.java
+++ b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/PasspointWifiEntry.java
@@ -340,20 +340,21 @@ public class PasspointWifiEntry extends WifiEntry {
@Override
public boolean canSetPrivacy() {
- // TODO(b/70983952): Fill this method in
- return false;
+ return true;
}
@Override
@Privacy
public int getPrivacy() {
- // TODO(b/70983952): Fill this method in
- return PRIVACY_UNKNOWN;
+ return mPasspointConfig.isMacRandomizationEnabled()
+ ? PRIVACY_RANDOMIZED_MAC : PRIVACY_DEVICE_MAC;
}
@Override
public void setPrivacy(int privacy) {
- // TODO(b/70983952): Fill this method in
+ mWifiManager.setMacRandomizationSettingPasspointEnabled(
+ mPasspointConfig.getHomeSp().getFqdn(),
+ privacy == PRIVACY_DEVICE_MAC ? false : true);
}
@Override