summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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