1#!/usr/bin/env python3 2# 3# Copyright 2019 - The Android Open Source Project 4# 5# Licensed under the Apache License, Version 2.0 (the "License"); 6# you may not use this file except in compliance with the License. 7# You may obtain a copy of the License at 8# 9# http://www.apache.org/licenses/LICENSE-2.0 10# 11# Unless required by applicable law or agreed to in writing, software 12# distributed under the License is distributed on an "AS IS" BASIS, 13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14# See the License for the specific language governing permissions and 15# limitations under the License. 16 17from acts import utils 18from acts.controllers.ap_lib import hostapd_ap_preset 19from acts.controllers.ap_lib import hostapd_constants 20from acts.controllers.ap_lib.hostapd_security import Security 21from acts.test_utils.abstract_devices.wlan_device import create_wlan_device 22from acts.test_utils.abstract_devices.utils_lib.wlan_utils import validate_setup_ap_and_associate 23from acts.test_utils.wifi.WifiBaseTest import WifiBaseTest 24 25 26class VapeInteropTest(WifiBaseTest): 27 """Tests interoperability with mock third party AP profiles. 28 29 Test Bed Requirement: 30 * One Android or Fuchsia Device 31 * One Whirlwind Access Point 32 """ 33 def setup_class(self): 34 super().setup_class() 35 if 'dut' in self.user_params: 36 if self.user_params['dut'] == 'fuchsia_devices': 37 self.dut = create_wlan_device(self.fuchsia_devices[0]) 38 elif self.user_params['dut'] == 'android_devices': 39 self.dut = create_wlan_device(self.android_devices[0]) 40 else: 41 raise ValueError('Invalid DUT specified in config. (%s)' % 42 self.user_params['dut']) 43 else: 44 # Default is an android device, just like the other tests 45 self.dut = create_wlan_device(self.android_devices[0]) 46 47 self.access_point = self.access_points[0] 48 49 # Same for both 2g and 5g 50 self.ssid = utils.rand_ascii_str(hostapd_constants.AP_SSID_LENGTH_2G) 51 self.password = utils.rand_ascii_str( 52 hostapd_constants.AP_PASSPHRASE_LENGTH_2G) 53 self.security_profile_wpa2 = Security( 54 security_mode=hostapd_constants.WPA2_STRING, 55 password=self.password, 56 wpa2_cipher=hostapd_constants.WPA2_DEFAULT_CIPER) 57 58 self.access_point.stop_all_aps() 59 60 def setup_test(self): 61 if hasattr(self, "android_devices"): 62 for ad in self.android_devices: 63 ad.droid.wakeLockAcquireBright() 64 ad.droid.wakeUpNow() 65 self.dut.wifi_toggle_state(True) 66 67 def teardown_test(self): 68 if hasattr(self, "android_devices"): 69 for ad in self.android_devices: 70 ad.droid.wakeLockRelease() 71 ad.droid.goToSleepNow() 72 self.dut.turn_location_off_and_scan_toggle_off() 73 self.dut.disconnect() 74 self.dut.reset_wifi() 75 self.access_point.stop_all_aps() 76 77 def on_fail(self, test_name, begin_time): 78 self.dut.take_bug_report(test_name, begin_time) 79 self.dut.get_log(test_name, begin_time) 80 81 def test_associate_actiontec_pk5000_24ghz_open(self): 82 validate_setup_ap_and_associate( 83 access_point=self.access_point, 84 client=self.dut, 85 profile_name='actiontec_pk5000', 86 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 87 ssid=self.ssid) 88 89 def test_associate_actiontec_pk5000_24ghz_wpa2(self): 90 validate_setup_ap_and_associate( 91 access_point=self.access_point, 92 client=self.dut, 93 profile_name='actiontec_pk5000', 94 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 95 ssid=self.ssid, 96 security=self.security_profile_wpa2, 97 password=self.password) 98 99 def test_associate_actiontec_mi424wr_24ghz_open(self): 100 validate_setup_ap_and_associate( 101 access_point=self.access_point, 102 client=self.dut, 103 profile_name='actiontec_mi424wr', 104 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 105 ssid=self.ssid) 106 107 def test_associate_actiontec_mi424wr_24ghz_wpa2(self): 108 validate_setup_ap_and_associate( 109 access_point=self.access_point, 110 client=self.dut, 111 profile_name='actiontec_mi424wr', 112 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 113 ssid=self.ssid, 114 security=self.security_profile_wpa2, 115 password=self.password) 116 117 def test_associate_asus_rtac66u_24ghz_open(self): 118 validate_setup_ap_and_associate( 119 access_point=self.access_point, 120 client=self.dut, 121 profile_name='asus_rtac66u', 122 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 123 ssid=self.ssid) 124 125 def test_associate_asus_rtac66u_24ghz_wpa2(self): 126 validate_setup_ap_and_associate( 127 access_point=self.access_point, 128 client=self.dut, 129 profile_name='asus_rtac66u', 130 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 131 ssid=self.ssid, 132 security=self.security_profile_wpa2, 133 password=self.password) 134 135 def test_associate_asus_rtac66u_5ghz_open(self): 136 validate_setup_ap_and_associate( 137 access_point=self.access_point, 138 client=self.dut, 139 profile_name='asus_rtac66u', 140 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 141 ssid=self.ssid) 142 143 def test_associate_asus_rtac66u_5ghz_wpa2(self): 144 validate_setup_ap_and_associate( 145 access_point=self.access_point, 146 client=self.dut, 147 profile_name='asus_rtac66u', 148 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 149 ssid=self.ssid, 150 security=self.security_profile_wpa2, 151 password=self.password) 152 153 def test_associate_asus_rtac86u_24ghz_open(self): 154 validate_setup_ap_and_associate( 155 access_point=self.access_point, 156 client=self.dut, 157 profile_name='asus_rtac86u', 158 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 159 ssid=self.ssid) 160 161 def test_associate_asus_rtac86u_24ghz_wpa2(self): 162 validate_setup_ap_and_associate( 163 access_point=self.access_point, 164 client=self.dut, 165 profile_name='asus_rtac86u', 166 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 167 ssid=self.ssid, 168 security=self.security_profile_wpa2, 169 password=self.password) 170 171 def test_associate_asus_rtac86u_5ghz_open(self): 172 validate_setup_ap_and_associate( 173 access_point=self.access_point, 174 client=self.dut, 175 profile_name='asus_rtac86u', 176 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 177 ssid=self.ssid) 178 179 def test_associate_asus_rtac86u_5ghz_wpa2(self): 180 validate_setup_ap_and_associate( 181 access_point=self.access_point, 182 client=self.dut, 183 profile_name='asus_rtac86u', 184 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 185 ssid=self.ssid, 186 security=self.security_profile_wpa2, 187 password=self.password) 188 189 def test_associate_asus_rtac5300_24ghz_open(self): 190 validate_setup_ap_and_associate( 191 access_point=self.access_point, 192 client=self.dut, 193 profile_name='asus_rtac5300', 194 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 195 ssid=self.ssid) 196 197 def test_associate_asus_rtac5300_24ghz_wpa2(self): 198 validate_setup_ap_and_associate( 199 access_point=self.access_point, 200 client=self.dut, 201 profile_name='asus_rtac5300', 202 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 203 ssid=self.ssid, 204 security=self.security_profile_wpa2, 205 password=self.password) 206 207 def test_associate_asus_rtac5300_5ghz_open(self): 208 validate_setup_ap_and_associate( 209 access_point=self.access_point, 210 client=self.dut, 211 profile_name='asus_rtac5300', 212 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 213 ssid=self.ssid) 214 215 def test_associate_asus_rtac5300_5ghz_wpa2(self): 216 validate_setup_ap_and_associate( 217 access_point=self.access_point, 218 client=self.dut, 219 profile_name='asus_rtac5300', 220 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 221 ssid=self.ssid, 222 security=self.security_profile_wpa2, 223 password=self.password) 224 225 def test_associate_asus_rtn56u_24ghz_open(self): 226 validate_setup_ap_and_associate( 227 access_point=self.access_point, 228 client=self.dut, 229 profile_name='asus_rtn56u', 230 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 231 ssid=self.ssid) 232 233 def test_associate_asus_rtn56u_24ghz_wpa2(self): 234 validate_setup_ap_and_associate( 235 access_point=self.access_point, 236 client=self.dut, 237 profile_name='asus_rtn56u', 238 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 239 ssid=self.ssid, 240 security=self.security_profile_wpa2, 241 password=self.password) 242 243 def test_associate_asus_rtn56u_5ghz_open(self): 244 validate_setup_ap_and_associate( 245 access_point=self.access_point, 246 client=self.dut, 247 profile_name='asus_rtn56u', 248 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 249 ssid=self.ssid) 250 251 def test_associate_asus_rtn56u_5ghz_wpa2(self): 252 validate_setup_ap_and_associate( 253 access_point=self.access_point, 254 client=self.dut, 255 profile_name='asus_rtn56u', 256 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 257 ssid=self.ssid, 258 security=self.security_profile_wpa2, 259 password=self.password) 260 261 def test_associate_asus_rtn66u_24ghz_open(self): 262 validate_setup_ap_and_associate( 263 access_point=self.access_point, 264 client=self.dut, 265 profile_name='asus_rtn66u', 266 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 267 ssid=self.ssid) 268 269 def test_associate_asus_rtn66u_24ghz_wpa2(self): 270 validate_setup_ap_and_associate( 271 access_point=self.access_point, 272 client=self.dut, 273 profile_name='asus_rtn66u', 274 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 275 ssid=self.ssid, 276 security=self.security_profile_wpa2, 277 password=self.password) 278 279 def test_associate_asus_rtn66u_5ghz_open(self): 280 validate_setup_ap_and_associate( 281 access_point=self.access_point, 282 client=self.dut, 283 profile_name='asus_rtn66u', 284 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 285 ssid=self.ssid) 286 287 def test_associate_asus_rtn66u_5ghz_wpa2(self): 288 validate_setup_ap_and_associate( 289 access_point=self.access_point, 290 client=self.dut, 291 profile_name='asus_rtn66u', 292 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 293 ssid=self.ssid, 294 security=self.security_profile_wpa2, 295 password=self.password) 296 297 def test_associate_belkin_f9k1001v5_24ghz_open(self): 298 validate_setup_ap_and_associate( 299 access_point=self.access_point, 300 client=self.dut, 301 profile_name='belkin_f9k1001v5', 302 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 303 ssid=self.ssid) 304 305 def test_associate_belkin_f9k1001v5_24ghz_wpa2(self): 306 validate_setup_ap_and_associate( 307 access_point=self.access_point, 308 client=self.dut, 309 profile_name='belkin_f9k1001v5', 310 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 311 ssid=self.ssid, 312 security=self.security_profile_wpa2, 313 password=self.password) 314 315 def test_associate_linksys_ea4500_24ghz_open(self): 316 validate_setup_ap_and_associate( 317 access_point=self.access_point, 318 client=self.dut, 319 profile_name='linksys_ea4500', 320 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 321 ssid=self.ssid) 322 323 def test_associate_linksys_ea4500_24ghz_wpa2(self): 324 validate_setup_ap_and_associate( 325 access_point=self.access_point, 326 client=self.dut, 327 profile_name='linksys_ea4500', 328 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 329 ssid=self.ssid, 330 security=self.security_profile_wpa2, 331 password=self.password) 332 333 def test_associate_linksys_ea4500_5ghz_open(self): 334 validate_setup_ap_and_associate( 335 access_point=self.access_point, 336 client=self.dut, 337 profile_name='linksys_ea4500', 338 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 339 ssid=self.ssid) 340 341 def test_associate_linksys_ea4500_5ghz_wpa2(self): 342 validate_setup_ap_and_associate( 343 access_point=self.access_point, 344 client=self.dut, 345 profile_name='linksys_ea4500', 346 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 347 ssid=self.ssid, 348 security=self.security_profile_wpa2, 349 password=self.password) 350 351 def test_associate_linksys_ea9500_24ghz_open(self): 352 validate_setup_ap_and_associate( 353 access_point=self.access_point, 354 client=self.dut, 355 profile_name='linksys_ea9500', 356 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 357 ssid=self.ssid) 358 359 def test_associate_linksys_ea9500_24ghz_wpa2(self): 360 validate_setup_ap_and_associate( 361 access_point=self.access_point, 362 client=self.dut, 363 profile_name='linksys_ea9500', 364 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 365 ssid=self.ssid, 366 security=self.security_profile_wpa2, 367 password=self.password) 368 369 def test_associate_linksys_ea9500_5ghz_open(self): 370 validate_setup_ap_and_associate( 371 access_point=self.access_point, 372 client=self.dut, 373 profile_name='linksys_ea9500', 374 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 375 ssid=self.ssid) 376 377 def test_associate_linksys_ea9500_5ghz_wpa2(self): 378 validate_setup_ap_and_associate( 379 access_point=self.access_point, 380 client=self.dut, 381 profile_name='linksys_ea9500', 382 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 383 ssid=self.ssid, 384 security=self.security_profile_wpa2, 385 password=self.password) 386 387 def test_associate_linksys_wrt1900acv2_24ghz_open(self): 388 validate_setup_ap_and_associate( 389 access_point=self.access_point, 390 client=self.dut, 391 profile_name='linksys_wrt1900acv2', 392 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 393 ssid=self.ssid) 394 395 def test_associate_linksys_wrt1900acv2_24ghz_wpa2(self): 396 validate_setup_ap_and_associate( 397 access_point=self.access_point, 398 client=self.dut, 399 profile_name='linksys_wrt1900acv2', 400 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 401 ssid=self.ssid, 402 security=self.security_profile_wpa2, 403 password=self.password) 404 405 def test_associate_linksys_wrt1900acv2_5ghz_open(self): 406 validate_setup_ap_and_associate( 407 access_point=self.access_point, 408 client=self.dut, 409 profile_name='linksys_wrt1900acv2', 410 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 411 ssid=self.ssid) 412 413 def test_associate_linksys_wrt1900acv2_5ghz_wpa2(self): 414 validate_setup_ap_and_associate( 415 access_point=self.access_point, 416 client=self.dut, 417 profile_name='linksys_wrt1900acv2', 418 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 419 ssid=self.ssid, 420 security=self.security_profile_wpa2, 421 password=self.password) 422 423 def test_associate_netgear_r7000_24ghz_open(self): 424 validate_setup_ap_and_associate( 425 access_point=self.access_point, 426 client=self.dut, 427 profile_name='netgear_r7000', 428 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 429 ssid=self.ssid) 430 431 def test_associate_netgear_r7000_24ghz_wpa2(self): 432 validate_setup_ap_and_associate( 433 access_point=self.access_point, 434 client=self.dut, 435 profile_name='netgear_r7000', 436 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 437 ssid=self.ssid, 438 security=self.security_profile_wpa2, 439 password=self.password) 440 441 def test_associate_netgear_r7000_5ghz_open(self): 442 validate_setup_ap_and_associate( 443 access_point=self.access_point, 444 client=self.dut, 445 profile_name='netgear_r7000', 446 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 447 ssid=self.ssid) 448 449 def test_associate_netgear_r7000_5ghz_wpa2(self): 450 validate_setup_ap_and_associate( 451 access_point=self.access_point, 452 client=self.dut, 453 profile_name='netgear_r7000', 454 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 455 ssid=self.ssid, 456 security=self.security_profile_wpa2, 457 password=self.password) 458 459 def test_associate_netgear_wndr3400_24ghz_open(self): 460 validate_setup_ap_and_associate( 461 access_point=self.access_point, 462 client=self.dut, 463 profile_name='netgear_wndr3400', 464 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 465 ssid=self.ssid) 466 467 def test_associate_netgear_wndr3400_24ghz_wpa2(self): 468 validate_setup_ap_and_associate( 469 access_point=self.access_point, 470 client=self.dut, 471 profile_name='netgear_wndr3400', 472 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 473 ssid=self.ssid, 474 security=self.security_profile_wpa2, 475 password=self.password) 476 477 def test_associate_netgear_wndr3400_5ghz_open(self): 478 validate_setup_ap_and_associate( 479 access_point=self.access_point, 480 client=self.dut, 481 profile_name='netgear_wndr3400', 482 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 483 ssid=self.ssid) 484 485 def test_associate_netgear_wndr3400_5ghz_wpa2(self): 486 validate_setup_ap_and_associate( 487 access_point=self.access_point, 488 client=self.dut, 489 profile_name='netgear_wndr3400', 490 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 491 ssid=self.ssid, 492 security=self.security_profile_wpa2, 493 password=self.password) 494 495 def test_associate_securifi_almond_24ghz_open(self): 496 validate_setup_ap_and_associate( 497 access_point=self.access_point, 498 client=self.dut, 499 profile_name='securifi_almond', 500 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 501 ssid=self.ssid) 502 503 def test_associate_securifi_almond_24ghz_wpa2(self): 504 validate_setup_ap_and_associate( 505 access_point=self.access_point, 506 client=self.dut, 507 profile_name='securifi_almond', 508 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 509 ssid=self.ssid, 510 security=self.security_profile_wpa2, 511 password=self.password) 512 513 def test_associate_tplink_archerc5_24ghz_open(self): 514 validate_setup_ap_and_associate( 515 access_point=self.access_point, 516 client=self.dut, 517 profile_name='tplink_archerc5', 518 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 519 ssid=self.ssid) 520 521 def test_associate_tplink_archerc5_24ghz_wpa2(self): 522 validate_setup_ap_and_associate( 523 access_point=self.access_point, 524 client=self.dut, 525 profile_name='tplink_archerc5', 526 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 527 ssid=self.ssid, 528 security=self.security_profile_wpa2, 529 password=self.password) 530 531 def test_associate_tplink_archerc5_5ghz_open(self): 532 validate_setup_ap_and_associate( 533 access_point=self.access_point, 534 client=self.dut, 535 profile_name='tplink_archerc5', 536 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 537 ssid=self.ssid) 538 539 def test_associate_tplink_archerc5_5ghz_wpa2(self): 540 validate_setup_ap_and_associate( 541 access_point=self.access_point, 542 client=self.dut, 543 profile_name='tplink_archerc5', 544 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 545 ssid=self.ssid, 546 security=self.security_profile_wpa2, 547 password=self.password) 548 549 def test_associate_tplink_archerc7_24ghz_open(self): 550 validate_setup_ap_and_associate( 551 access_point=self.access_point, 552 client=self.dut, 553 profile_name='tplink_archerc7', 554 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 555 ssid=self.ssid) 556 557 def test_associate_tplink_archerc7_24ghz_wpa2(self): 558 validate_setup_ap_and_associate( 559 access_point=self.access_point, 560 client=self.dut, 561 profile_name='tplink_archerc7', 562 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 563 ssid=self.ssid, 564 security=self.security_profile_wpa2, 565 password=self.password) 566 567 def test_associate_tplink_archerc7_5ghz_open(self): 568 validate_setup_ap_and_associate( 569 access_point=self.access_point, 570 client=self.dut, 571 profile_name='tplink_archerc7', 572 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 573 ssid=self.ssid) 574 575 def test_associate_tplink_archerc7_5ghz_wpa2(self): 576 validate_setup_ap_and_associate( 577 access_point=self.access_point, 578 client=self.dut, 579 profile_name='tplink_archerc7', 580 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 581 ssid=self.ssid, 582 security=self.security_profile_wpa2, 583 password=self.password) 584 585 def test_associate_tplink_c1200_24ghz_open(self): 586 validate_setup_ap_and_associate( 587 access_point=self.access_point, 588 client=self.dut, 589 profile_name='tplink_c1200', 590 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 591 ssid=self.ssid) 592 593 def test_associate_tplink_c1200_24ghz_wpa2(self): 594 validate_setup_ap_and_associate( 595 access_point=self.access_point, 596 client=self.dut, 597 profile_name='tplink_c1200', 598 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 599 ssid=self.ssid, 600 security=self.security_profile_wpa2, 601 password=self.password) 602 603 def test_associate_tplink_c1200_5ghz_open(self): 604 validate_setup_ap_and_associate( 605 access_point=self.access_point, 606 client=self.dut, 607 profile_name='tplink_c1200', 608 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 609 ssid=self.ssid) 610 611 def test_associate_tplink_c1200_5ghz_wpa2(self): 612 validate_setup_ap_and_associate( 613 access_point=self.access_point, 614 client=self.dut, 615 profile_name='tplink_c1200', 616 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G, 617 ssid=self.ssid, 618 security=self.security_profile_wpa2, 619 password=self.password) 620 621 def test_associate_tplink_tlwr940n_24ghz_open(self): 622 validate_setup_ap_and_associate( 623 access_point=self.access_point, 624 client=self.dut, 625 profile_name='tplink_tlwr940n', 626 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 627 ssid=self.ssid) 628 629 def test_associate_tplink_tlwr940n_24ghz_wpa2(self): 630 validate_setup_ap_and_associate( 631 access_point=self.access_point, 632 client=self.dut, 633 profile_name='tplink_tlwr940n', 634 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G, 635 ssid=self.ssid, 636 security=self.security_profile_wpa2, 637 password=self.password)