Add ability to test Wifi performance in airplane mode.

This CL adds the option to test wifi performance in airplane mode. The
airplane mode configuration is currently controlled by test class
parameter.

Test: Done
Bug: None

Change-Id: I25dab5451a12e43b007dd717caef7ccff4e869f8
Signed-off-by: Omar El Ayach <oelayach@google.com>
diff --git a/acts/tests/google/wifi/WifiSensitivityTest.py b/acts/tests/google/wifi/WifiSensitivityTest.py
index 85abf2d..9d6ba59 100644
--- a/acts/tests/google/wifi/WifiSensitivityTest.py
+++ b/acts/tests/google/wifi/WifiSensitivityTest.py
@@ -175,6 +175,11 @@
         self.testclass_results = []
 
         # Turn WiFi ON
+        if self.testclass_params.get('airplane_mode', 1):
+            self.log.info('Turning on airplane mode.')
+            asserts.assert_true(
+                utils.force_airplane_mode(self.dut, True),
+                "Can not turn on airplane mode.")
         wutils.wifi_toggle_state(self.dut, True)
 
     def teardown_class(self):