• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2#   Copyright 2021 - The Android Open Source Project
3#
4#   Licensed under the Apache License, Version 2.0 (the "License");
5#   you may not use this file except in compliance with the License.
6#   You may obtain a copy of the License at
7#
8#   http://www.apache.org/licenses/LICENSE-2.0
9#
10#   Unless required by applicable law or agreed to in writing, software
11#   distributed under the License is distributed on an "AS IS" BASIS,
12#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13#   See the License for the specific language governing permissions and
14#   limitations under the License.
15
16from acts_contrib.test_utils.wifi.WifiBaseTest import WifiBaseTest
17from WifiWpa3OweTest import WifiWpa3OweTest
18
19
20class WifiWpa311axTest(WifiWpa3OweTest):
21  """Tests for WPA3 11ax.
22
23  Test Bed Requirement:
24    One Android device and 1 Asus AXE11000 Access Point.
25  """
26
27  def __init__(self, configs):
28    super().__init__(configs)
29    self.tests = (
30        "test_connect_to_wpa3_personal_2g",
31        "test_connect_to_wpa3_personal_5g",
32        "test_connect_to_wpa3_personal_reconnection"
33    )
34
35  def setup_class(self):
36    WifiBaseTest.setup_class(self)
37
38    self.dut = self.android_devices[0]
39    req_params = ["wifi6_models",]
40    self.unpack_userparams(req_param_names=req_params,)
41    self.ap = self.access_points[0]
42    self.ap.configure_ap({"2g": {"security": "sae"},
43                          "5g": {"security": "sae"}})
44    self.wpa3_personal_2g = self.ap.get_wifi_network("2g")
45    self.wpa3_personal_5g = self.ap.get_wifi_network("5g")
46