[WifiMacRandomizationTest] Fix flaky issue

test_roaming_mac_randomization is flaky as the roaming to the mirror AP
does not always happen. Since this test verifies the randomized MAC
address after roaming and does not test roaming code itself, we are
setting the the attenuation to 95dbm instead of 60dbm. A dictionary
specifying the attenuation is required in the config file.

Bug: 145539505
Test: Verified the changes

Change-Id: I1c9a59b45fbcc6c5540ecd3b520ab42a14821f50
diff --git a/acts/tests/google/wifi/WifiMacRandomizationTest.py b/acts/tests/google/wifi/WifiMacRandomizationTest.py
index d41b05f..9461cbb 100644
--- a/acts/tests/google/wifi/WifiMacRandomizationTest.py
+++ b/acts/tests/google/wifi/WifiMacRandomizationTest.py
@@ -66,7 +66,7 @@
         self.dut_client = self.android_devices[1]
         wutils.wifi_test_device_init(self.dut)
         wutils.wifi_test_device_init(self.dut_client)
-        req_params = ["dbs_supported_models"]
+        req_params = ["dbs_supported_models", "roaming_attn"]
         opt_param = [
             "open_network", "reference_networks", "wep_networks"
         ]
@@ -79,8 +79,7 @@
         self.configure_packet_capture()
 
         if "AccessPoint" in self.user_params:
-            if "AccessPoint" in self.user_params:
-                self.legacy_configure_ap_and_start(wep_network=True, ap_count=2)
+            self.legacy_configure_ap_and_start(wep_network=True, ap_count=2)
 
         asserts.assert_true(
             len(self.reference_networks) > 0,
@@ -490,18 +489,18 @@
         """
         AP1_network = self.reference_networks[0]["5g"]
         AP2_network = self.reference_networks[1]["5g"]
-        wutils.set_attns(self.attenuators, "AP1_on_AP2_off")
+        wutils.set_attns(self.attenuators, "AP1_on_AP2_off", self.roaming_attn)
         mac_before_roam = self.connect_to_network_and_verify_mac_randomization(
                 AP1_network)
         wutils.trigger_roaming_and_validate(self.dut, self.attenuators,
-                "AP1_off_AP2_on", AP2_network)
+                "AP1_off_AP2_on", AP2_network, self.roaming_attn)
         mac_after_roam = self.get_randomized_mac(AP2_network)
         if mac_after_roam != mac_before_roam:
             raise signals.TestFailure("Randomized MAC address changed after "
                    "roaming from AP1 to AP2.\nMAC before roam = %s\nMAC after "
                    "roam = %s" %(mac_before_roam, mac_after_roam))
         wutils.trigger_roaming_and_validate(self.dut, self.attenuators,
-                "AP1_on_AP2_off", AP1_network)
+                "AP1_on_AP2_off", AP1_network, self.roaming_attn)
         mac_after_roam = self.get_randomized_mac(AP1_network)
         if mac_after_roam != mac_before_roam:
             raise signals.TestFailure("Randomized MAC address changed after "