Merge "[Tests]Configure pcap before calling it." am: 1eb72db1bb am: 9b8061a4db
am: ea81d3b366

Bug: 129076522
Test: run "root@chromeos1-dev-test-server:~/Desktop# act.py -c
android_wifi_sanity.config -tb chromeos1-dev-test-station-3 -tc
WifiMacRandomizationTest" All tests were passing

Change-Id: Ia383ddac38224e9c430331451e8a632b71b9e50c
Merged-In: Ia383ddac38224e9c430331451e8a632b71b9e50c
(cherry picked from commit b47c4aebdf2584d16c8efb72766bda1194c50959)
diff --git a/acts/tests/google/wifi/WifiMacRandomizationTest.py b/acts/tests/google/wifi/WifiMacRandomizationTest.py
index d4bdd8a..5fe7199 100755
--- a/acts/tests/google/wifi/WifiMacRandomizationTest.py
+++ b/acts/tests/google/wifi/WifiMacRandomizationTest.py
@@ -72,6 +72,9 @@
         self.unpack_userparams(
             req_param_names=req_params, opt_param_names=opt_param)
 
+        if hasattr(self, 'packet_capture'):
+            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)