From d0c76e414dcd2f55ab84c58675adc31a6c5997e3 Mon Sep 17 00:00:00 2001 From: Les Lee Date: Mon, 24 Jan 2022 22:19:05 +0800 Subject: 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 --- apex/Android.bp | 1 + 1 file changed, 1 insertion(+) (limited to 'apex') 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", -- cgit v1.2.3-59-g8ed1b