summaryrefslogtreecommitdiff
path: root/apex
diff options
context:
space:
mode:
author Les Lee <lesl@google.com> 2022-01-24 22:19:05 +0800
committer Les Lee <lesl@google.com> 2022-01-29 10:17:23 +0800
commitd0c76e414dcd2f55ab84c58675adc31a6c5997e3 (patch)
tree1b4df7025a5e900499514da4216d51f290fc1b06 /apex
parentaf41199b35d6a059477526d061b3cc43675e5a88 (diff)
wifi: Adding new API to indicate randomized MAC address
Returns persistent MAC address for the SoftApConfiguration. Returns the persistent MAC randomization, even when the SoftAp is configured to a use non-randomized or non-persistent randomized MAC address. This is different from the WifiConfiguration equivalent method which returns the latest randomized MAC address - persistent or non-persistent. Note: Started from R, Soft AP had been supporting MAC ramdonization. So it is fine to add this API without SDK version check. i.e. It allows to use it from R. (first mainlined version) Note: Add multul exclusive check between BSSID and MAC randomization Setting. It requires to configure MAC randomization Setting to NONE when configuring BSSID. Bug: 209325943 Bug: 215656264 Test: atest -c FrameworksWifiTests Test: atest -c FrameworksWifiApiTests Test: adb shell dumpsys platform_compat Change-Id: Ia0691bffa4facaa98c69bf221f21945dd4add1fe
Diffstat (limited to 'apex')
-rw-r--r--apex/Android.bp1
1 files changed, 1 insertions, 0 deletions
diff --git a/apex/Android.bp b/apex/Android.bp
index ad1a97eefb..c9d7936592 100644
--- a/apex/Android.bp
+++ b/apex/Android.bp
@@ -23,6 +23,7 @@ apex_defaults {
androidManifest: ":com.android.wifi-androidManifest",
bootclasspath_fragments: ["com.android.wifi-bootclasspath-fragment"],
systemserverclasspath_fragments: ["com.android.wifi-systemserverclasspath-fragment"],
+ compat_configs: ["wifi-compat-config"],
// from build rule `cacerts_wfa`
prebuilts: [
"target-cacert-wifi-674b5f5b.0",