Lines Matching refs:apdev

36 def start_wnm_ap(apdev, bss_transition=True, time_adv=False, ssid=None,  argument
101 hapd = hostapd.add_ap(apdev, params)
114 def test_wnm_bss_transition_mgmt(dev, apdev): argument
116 start_wnm_ap(apdev[0], time_adv=True, wnm_sleep_mode=True)
120 def test_wnm_bss_transition_mgmt_oom(dev, apdev): argument
122 hapd = start_wnm_ap(apdev[0])
129 def test_wnm_disassoc_imminent(dev, apdev): argument
131 hapd = start_wnm_ap(apdev[0], time_adv=True, wnm_sleep_mode=True)
144 def test_wnm_disassoc_imminent_bssid_set(dev, apdev): argument
146 hapd = start_wnm_ap(apdev[0], time_adv=True, wnm_sleep_mode=True)
147 hapd2 = start_wnm_ap(apdev[1], time_adv=True, wnm_sleep_mode=True)
151 …cmd = "BSS_TM_REQ " + addr + " pref=1 disassoc_imminent=1 disassoc_timer=100 neighbor=" + apdev[1]…
174 def test_wnm_disassoc_imminent_fail(dev, apdev): argument
176 hapd = start_wnm_ap(apdev[0])
184 def test_wnm_ess_disassoc_imminent(dev, apdev): argument
186 hapd = start_wnm_ap(apdev[0], time_adv=True, wnm_sleep_mode=True)
199 def test_wnm_ess_disassoc_imminent_fail(dev, apdev): argument
201 hapd = start_wnm_ap(apdev[0])
210 def test_wnm_ess_disassoc_imminent_reject(dev, apdev): argument
212 hapd = start_wnm_ap(apdev[0])
228 def test_wnm_ess_disassoc_imminent_pmf(dev, apdev): argument
230 hapd = start_wnm_ap(apdev[0], rsn=True)
299 def test_wnm_sleep_mode_open(dev, apdev): argument
301 hapd = start_wnm_ap(apdev[0], time_adv=True, wnm_sleep_mode=True)
317 def test_wnm_sleep_mode_open_fail(dev, apdev): argument
319 hapd = start_wnm_ap(apdev[0], wnm_sleep_mode=True)
325 def test_wnm_sleep_mode_disabled_on_ap(dev, apdev): argument
327 hapd = start_wnm_ap(apdev[0], wnm_sleep_mode=False)
334 def test_wnm_sleep_mode_rsn(dev, apdev): argument
336 hapd = start_wnm_ap(apdev[0], time_adv=True, wnm_sleep_mode=True, rsn=True,
345 def test_wnm_sleep_mode_ap_oom(dev, apdev): argument
347 hapd = start_wnm_ap(apdev[0], bss_transition=False, wnm_sleep_mode=True)
360 def test_wnm_sleep_mode_rsn_pmf(dev, apdev): argument
362 hapd = start_wnm_ap(apdev[0], rsn=True, wnm_sleep_mode=True, time_adv=True)
370 def test_wnm_sleep_mode_rsn_beacon_prot(dev, apdev): argument
372 hapd = start_wnm_ap(apdev[0], rsn=True, wnm_sleep_mode=True, time_adv=True,
384 def test_wnm_sleep_mode_rsn_ocv(dev, apdev): argument
386 hapd = start_wnm_ap(apdev[0], rsn=True, wnm_sleep_mode=True,
402 def test_wnm_sleep_mode_rsn_badocv(dev, apdev): argument
405 hapd = start_wnm_ap(apdev[0], rsn=True, wnm_sleep_mode=True, ocv=True)
406 bssid = apdev[0]['bssid']
479 def test_wnm_sleep_mode_rsn_ocv_failure(dev, apdev): argument
481 hapd = start_wnm_ap(apdev[0], rsn=True, wnm_sleep_mode=True,
493 def test_wnm_sleep_mode_rsn_pmf_key_workaround(dev, apdev): argument
495 hapd = start_wnm_ap(apdev[0], rsn=True, wnm_sleep_mode=True,
505 def test_wnm_sleep_mode_proto(dev, apdev): argument
507 hapd = start_wnm_ap(apdev[0], wnm_sleep_mode=True, bss_transition=False)
616 def test_wnm_bss_tm_req(dev, apdev): argument
618 hapd = start_wnm_ap(apdev[0])
625 req = bss_tm_req(addr, apdev[0]['bssid'],
635 req = bss_tm_req(addr, apdev[0]['bssid'],
642 req = bss_tm_req(addr, apdev[0]['bssid'],
649 req = bss_tm_req(addr, apdev[0]['bssid'],
657 req = bss_tm_req(addr, apdev[0]['bssid'],
661 req = bss_tm_req(addr, apdev[0]['bssid'],
669 req = bss_tm_req(addr, apdev[0]['bssid'],
677 req = bss_tm_req(addr, apdev[0]['bssid'],
684 req = bss_tm_req(addr, apdev[0]['bssid'],
692 req = bss_tm_req(addr, apdev[0]['bssid'],
700 req = bss_tm_req(addr, apdev[0]['bssid'],
710 req = bss_tm_req(addr, apdev[0]['bssid'],
721 req = bss_tm_req(addr, apdev[0]['bssid'],
739 req = bss_tm_req(addr, apdev[0]['bssid'],
766 req = bss_tm_req(addr, apdev[0]['bssid'],
778 req = bss_tm_req(addr, apdev[0]['bssid'],
791 def test_wnm_bss_keep_alive(dev, apdev): argument
793 run_wnm_bss_keep_alive(dev, apdev, False)
795 def test_wnm_bss_protected_keep_alive(dev, apdev): argument
797 run_wnm_bss_keep_alive(dev, apdev, True)
799 def run_wnm_bss_keep_alive(dev, apdev, protected): argument
800 hapd = start_wnm_ap(apdev[0], bss_transition=False, ap_max_inactivity=1,
829 def test_wnm_bss_max_idle_period_management(dev, apdev): argument
831 hapd = start_wnm_ap(apdev[0], bss_transition=False, ap_max_inactivity=10,
857 def test_wnm_bss_group_rekey(dev, apdev): argument
859 hapd = start_wnm_ap(apdev[0], bss_transition=False, ap_max_inactivity=100,
879 def test_wnm_bss_group_rekey_skip(dev, apdev): argument
881 hapd = start_wnm_ap(apdev[0], bss_transition=False, ap_max_inactivity=100,
902 def test_wnm_bss_tm(dev, apdev): argument
907 hapd = start_wnm_ap(apdev[0], country_code="FI")
912 hapd2 = start_wnm_ap(apdev[1], country_code="FI", hw_mode="a",
954 …est("BSS_TM_REQ " + addr + " pref=1 abridged=1 valid_int=255 neighbor=" + apdev[1]['bssid'] + ",0x…
961 if "target_bssid=" + apdev[1]['bssid'] not in ev:
964 if apdev[1]['bssid'] not in ev:
972 … pref=1 abridged=1 valid_int=255 neighbor=" + apdev[0]['bssid'] + ",0x0000,81,1,7,030101 neighbor=…
979 if "target_bssid=" + apdev[1]['bssid'] not in ev:
989 … pref=1 abridged=1 valid_int=255 neighbor=" + apdev[0]['bssid'] + ",0x0000,81,1,7,030101 neighbor=…
996 if "target_bssid=" + apdev[1]['bssid'] not in ev:
1007 def test_wnm_bss_tm_steering_timeout(dev, apdev): argument
1009 hapd = start_wnm_ap(apdev[0])
1012 hapd2 = start_wnm_ap(apdev[1])
1013 dev[0].scan_for_bss(apdev[1]['bssid'], 2412)
1016 …est("BSS_TM_REQ " + addr + " pref=1 abridged=1 valid_int=255 neighbor=" + apdev[1]['bssid'] + ",0x…
1035 def test_wnm_bss_tm_errors(dev, apdev): argument
1037 hapd = start_wnm_ap(apdev[0])
1074 def test_wnm_bss_tm_termination(dev, apdev): argument
1076 hapd = start_wnm_ap(apdev[0])
1092 def test_wnm_bss_tm_scan_not_needed(dev, apdev): argument
1094 run_wnm_bss_tm_scan_not_needed(dev, apdev)
1096 def test_wnm_bss_tm_nei_vht(dev, apdev): argument
1098 run_wnm_bss_tm_scan_not_needed(dev, apdev, vht=True, nei_info="115,36,9")
1100 def test_wnm_bss_tm_nei_11a(dev, apdev): argument
1102 run_wnm_bss_tm_scan_not_needed(dev, apdev, ht=False, nei_info="115,36,4")
1104 def test_wnm_bss_tm_nei_11g(dev, apdev): argument
1106 run_wnm_bss_tm_scan_not_needed(dev, apdev, ht=False, hwmode='g',
1109 def test_wnm_bss_tm_nei_11b(dev, apdev): argument
1111 run_wnm_bss_tm_scan_not_needed(dev, apdev, ht=False, hwmode='b',
1114 def run_wnm_bss_tm_scan_not_needed(dev, apdev, ht=True, vht=False, hwmode='a', argument
1120 hapd = start_wnm_ap(apdev[0], country_code="FI", hw_mode="g",
1122 hapd2 = start_wnm_ap(apdev[1], country_code="FI", hw_mode=hwmode,
1124 dev[0].scan_for_bss(apdev[1]['bssid'], freq)
1127 bssid=apdev[0]['bssid'], scan_freq="2412")
1135 …est("BSS_TM_REQ " + addr + " pref=1 abridged=1 valid_int=255 neighbor=" + apdev[1]['bssid'] + ",0x…
1142 if "target_bssid=" + apdev[1]['bssid'] not in ev:
1145 if apdev[1]['bssid'] not in ev:
1154 def test_wnm_bss_tm_scan_needed(dev, apdev): argument
1159 hapd = start_wnm_ap(apdev[0], country_code="FI", hw_mode="g",
1161 hapd2 = start_wnm_ap(apdev[1], country_code="FI", hw_mode="a",
1165 dev[0].scan_for_bss(apdev[1]['bssid'], 5180)
1168 bssid=apdev[0]['bssid'], scan_freq="2412")
1178 …est("BSS_TM_REQ " + addr + " pref=1 abridged=1 valid_int=255 neighbor=" + apdev[1]['bssid'] + ",0x…
1185 if "target_bssid=" + apdev[1]['bssid'] not in ev:
1188 if apdev[1]['bssid'] not in ev:
1197 def test_wnm_bss_tm_scan_needed_e4(dev, apdev): argument
1202 hapd = start_wnm_ap(apdev[0], country_code="FI", country3="0x04",
1204 hapd2 = start_wnm_ap(apdev[1], country_code="FI", country3="0x04",
1208 bssid=apdev[0]['bssid'], scan_freq="2412")
1216 …est("BSS_TM_REQ " + addr + " pref=1 abridged=1 valid_int=255 neighbor=" + apdev[1]['bssid'] + ",0x…
1275 def test_wnm_bss_tm_country_us(dev, apdev): argument
1279 hapd, id = start_wnm_tm(apdev[0], "US", dev[0])
1294 def test_wnm_bss_tm_country_fi(dev, apdev): argument
1299 hapd, id = start_wnm_tm(apdev[0], "FI", dev[0])
1314 def test_wnm_bss_tm_country_jp(dev, apdev): argument
1319 hapd, id = start_wnm_tm(apdev[0], "JP", dev[0])
1331 def test_wnm_bss_tm_country_cn(dev, apdev): argument
1336 hapd, id = start_wnm_tm(apdev[0], "CN", dev[0])
1348 def test_wnm_bss_tm_global(dev, apdev): argument
1350 run_wnm_bss_tm_global(dev, apdev, "XX", None)
1352 def test_wnm_bss_tm_global4(dev, apdev): argument
1354 run_wnm_bss_tm_global(dev, apdev, "FI", "0x04")
1356 def run_wnm_bss_tm_global(dev, apdev, country, country3): argument
1360 hapd, id = start_wnm_tm(apdev[0], country, dev[0], country3=country3)
1375 def test_wnm_bss_tm_op_class_0(dev, apdev): argument
1379 hapd, id = start_wnm_tm(apdev[0], "US", dev[0])
1386 def test_wnm_bss_tm_rsn(dev, apdev): argument
1392 hapd = start_wnm_ap(apdev[0], country_code="FI", hw_mode="g",
1395 hapd2 = start_wnm_ap(apdev[1], country_code="FI", hw_mode="a",
1398 dev[0].scan_for_bss(apdev[1]['bssid'], 5180)
1401 bssid=apdev[0]['bssid'], scan_freq="2412")
1410 …est("BSS_TM_REQ " + addr + " pref=1 abridged=1 valid_int=255 neighbor=" + apdev[1]['bssid'] + ",0x…
1417 if "target_bssid=" + apdev[1]['bssid'] not in ev:
1420 if apdev[1]['bssid'] not in ev:
1425 def test_wnm_action_proto(dev, apdev): argument
1427 hapd = start_wnm_ap(apdev[0], bss_transition=False, wnm_sleep_mode=True)
1428 bssid = apdev[0]['bssid']
1623 def test_wnm_action_proto_pmf(dev, apdev): argument
1626 hapd = start_wnm_ap(apdev[0], rsn=True, wnm_sleep_mode=True, ssid=ssid)
1627 bssid = apdev[0]['bssid']
1724 def test_wnm_action_proto_no_pmf(dev, apdev): argument
1727 hapd = start_wnm_ap(apdev[0], rsn=True, pmf=False, bss_transition=False,
1729 bssid = apdev[0]['bssid']
1769 def test_wnm_bss_tm_req_with_mbo_ie(dev, apdev): argument
1772 hapd = start_wnm_ap(apdev[0], rsn=True, pmf=False, ssid=ssid)
1773 bssid = apdev[0]['bssid']
1830 def test_wnm_bss_transition_mgmt_query(dev, apdev): argument
1832 hapd = start_wnm_ap(apdev[0])
1834 hapd2 = hostapd.add_ap(apdev[1], params)
1836 dev[0].scan_for_bss(apdev[1]['bssid'], 2412)
1837 dev[0].scan_for_bss(apdev[0]['bssid'], 2412)
1851 def test_wnm_bss_transition_mgmt_query_disabled_on_ap(dev, apdev): argument
1853 hapd = start_wnm_ap(apdev[0], bss_transition=False)
1861 def test_wnm_bss_transition_mgmt_query_mbo(dev, apdev): argument
1863 hapd = start_wnm_ap(apdev[0], bss_transition=False, mbo=True)
1871 def test_wnm_bss_tm_security_mismatch(dev, apdev): argument
1873 hapd = start_wnm_ap(apdev[0], hw_mode="g", channel="1", ssid="test-wnm",
1875 hapd2 = start_wnm_ap(apdev[1], hw_mode="g", channel="11")
1876 dev[0].scan_for_bss(apdev[1]['bssid'], 2462)
1879 bssid=apdev[0]['bssid'], scan_freq="2412")
1887 …est("BSS_TM_REQ " + addr + " pref=1 abridged=1 valid_int=255 neighbor=" + apdev[1]['bssid'] + ",0x…
1895 def test_wnm_bss_tm_connect_cmd(dev, apdev): argument
1897 hapd = start_wnm_ap(apdev[0], hw_mode="g", channel="1")
1898 hapd2 = start_wnm_ap(apdev[1], hw_mode="g", channel="11")
1903 wpas.scan_for_bss(apdev[1]['bssid'], 2462)
1906 bssid=apdev[0]['bssid'], scan_freq="2412")
1914 …est("BSS_TM_REQ " + addr + " pref=1 abridged=1 valid_int=255 neighbor=" + apdev[1]['bssid'] + ",0x…
1921 if "target_bssid=" + apdev[1]['bssid'] not in ev:
1929 if apdev[1]['bssid'] not in ev:
1932 def test_wnm_bss_tm_reject(dev, apdev): argument
1936 hapd = start_wnm_ap(apdev[0], country_code="FI", hw_mode="g",
1964 def test_wnm_bss_tm_ap_proto(dev, apdev): argument
1966 hapd = start_wnm_ap(apdev[0])
1997 def test_wnm_bss_transition_mgmt_query_with_unknown_candidates(dev, apdev): argument
1999 hapd = start_wnm_ap(apdev[0])
2000 dev[0].scan_for_bss(apdev[0]['bssid'], 2412)
2014 def test_wnm_time_adv_without_time_zone(dev, apdev): argument
2018 hostapd.add_ap(apdev[0], params)
2022 def test_wnm_coloc_intf_reporting(dev, apdev): argument
2024 hapd = start_wnm_ap(apdev[0], bss_transition=False,
2078 def test_wnm_coloc_intf_reporting_errors(dev, apdev): argument
2080 hapd = start_wnm_ap(apdev[0], bss_transition=False,
2099 def test_wnm_bss_transition_mgmt_disabled(dev, apdev): argument
2101 hapd = start_wnm_ap(apdev[0])
2113 def test_wnm_time_adv_restart(dev, apdev): argument
2115 hapd = start_wnm_ap(apdev[0], time_adv=True)
2120 def test_wnm_event_report(dev, apdev): argument
2123 hapd = start_wnm_ap(apdev[0], rsn=True, he=True)
2124 bssid = apdev[0]['bssid']