time.sleep(3)
hapd.request("DISABLE")
hostapd.cmd_execute(apdev[0], ['iw', 'reg', 'set', '00'])
+ time.sleep(0.1)
def test_ap_acs_bias(dev, apdev):
"""Automatic channel selection with bias values"""
hostapd.cmd_execute(apdev1, ['iw', 'reg', 'set', '00'])
if dev0:
dev0.cmd_execute(['iw', 'reg', 'set', '00'])
+ time.sleep(0.1)
def test_ap_ht40_scan(dev, apdev):
"""HT40 co-ex scan"""
_test_ap_track_sta(dev, apdev)
finally:
subprocess.call(['iw', 'reg', 'set', '00'])
+ time.sleep(0.1)
def _test_ap_track_sta(dev, apdev):
params = { "ssid": "track",
_test_ap_track_sta_no_probe_resp(dev, apdev)
finally:
subprocess.call(['iw', 'reg', 'set', '00'])
+ time.sleep(0.1)
def _test_ap_track_sta_no_probe_resp(dev, apdev):
dev[0].flush_scan_cache()
_test_ap_track_sta_no_auth(dev, apdev)
finally:
subprocess.call(['iw', 'reg', 'set', '00'])
+ time.sleep(0.1)
def _test_ap_track_sta_no_auth(dev, apdev):
params = { "ssid": "track",
_test_ap_track_sta_no_auth_passive(dev, apdev)
finally:
subprocess.call(['iw', 'reg', 'set', '00'])
+ time.sleep(0.1)
def _test_ap_track_sta_no_auth_passive(dev, apdev):
dev[0].flush_scan_cache()
_test_ap_track_sta_force_5ghz(dev, apdev)
finally:
subprocess.call(['iw', 'reg', 'set', '00'])
+ time.sleep(0.1)
def _test_ap_track_sta_force_5ghz(dev, apdev):
params = { "ssid": "track",
_test_ap_track_sta_force_2ghz(dev, apdev)
finally:
subprocess.call(['iw', 'reg', 'set', '00'])
+ time.sleep(0.1)
def _test_ap_track_sta_force_2ghz(dev, apdev):
params = { "ssid": "track",
if hapd:
hapd.request("DISABLE")
subprocess.call(['iw', 'reg', 'set', '00'])
+ time.sleep(0.1)
def test_ap_vht80_invalid2(dev, apdev):
"""VHT with invalid 80 MHz channel configuration (seg0)"""
if hapd:
hapd.request("DISABLE")
subprocess.call(['iw', 'reg', 'set', '00'])
+ time.sleep(0.1)
def test_ap_vht_20(devs, apdevs):
"""VHT and 20 MHz channel"""
raise Exception("Unexpected SET failure")
finally:
subprocess.call(['iw', 'reg', 'set', '00'])
+ time.sleep(0.1)
def test_ap_vht160(dev, apdev):
"""VHT with 160 MHz channel width (1)"""
if hapd:
hapd.request("DISABLE")
subprocess.call(['iw', 'reg', 'set', '00'])
+ time.sleep(0.1)
def test_ap_vht80plus80(dev, apdev):
"""VHT with 80+80 MHz channel width"""
if hapd:
hapd.request("DISABLE")
subprocess.call(['iw', 'reg', 'set', '00'])
+ time.sleep(0.1)
def test_ap_vht80_csa(dev, apdev):
"""VHT with 80 MHz channel width and CSA"""
if hapd:
hapd.request("DISABLE")
subprocess.call(['iw', 'reg', 'set', '00'])
+ time.sleep(0.1)
@remote_compatible
def test_dfs_radar_on_non_dfs_channel(dev, apdev):
dev[0].request("SET country 00")
dev[1].request("SET country 00")
subprocess.call(['iw', 'reg', 'set', '00'])
+ time.sleep(0.1)
def run_dpp_pkex_5ghz(dev, apdev):
check_dpp_capab(dev[0])
_test_scan_dfs(dev, apdev, params)
finally:
subprocess.call(['iw', 'reg', 'set', '00'])
+ time.sleep(0.1)
def _test_scan_dfs(dev, apdev, params):
subprocess.call(['iw', 'reg', 'set', 'US'])