|
@@ -86,6 +86,7 @@ def dfs_simulate_radar(hapd):
|
|
|
def test_dfs(dev, apdev):
|
|
|
"""DFS CAC functionality on clear channel"""
|
|
|
try:
|
|
|
+ hapd = None
|
|
|
hapd = start_dfs_ap(apdev[0], allow_failure=True)
|
|
|
|
|
|
ev = wait_dfs_event(hapd, "DFS-CAC-COMPLETED", 70)
|
|
@@ -138,6 +139,7 @@ def test_dfs(dev, apdev):
|
|
|
def test_dfs_radar(dev, apdev):
|
|
|
"""DFS CAC functionality with radar detected"""
|
|
|
try:
|
|
|
+ hapd = None
|
|
|
hapd2 = None
|
|
|
hapd = start_dfs_ap(apdev[0], allow_failure=True)
|
|
|
time.sleep(1)
|
|
@@ -225,6 +227,7 @@ def test_dfs_radar_on_non_dfs_channel(dev, apdev):
|
|
|
def test_dfs_radar_chanlist(dev, apdev):
|
|
|
"""DFS chanlist when radar is detected"""
|
|
|
try:
|
|
|
+ hapd = None
|
|
|
hapd = start_dfs_ap(apdev[0], chanlist="40 44", allow_failure=True)
|
|
|
time.sleep(1)
|
|
|
|
|
@@ -258,6 +261,7 @@ def test_dfs_radar_chanlist(dev, apdev):
|
|
|
def test_dfs_radar_chanlist_vht80(dev, apdev):
|
|
|
"""DFS chanlist when radar is detected and VHT80 configured"""
|
|
|
try:
|
|
|
+ hapd = None
|
|
|
hapd = start_dfs_ap(apdev[0], chanlist="36", ht40=True, vht80=True,
|
|
|
allow_failure=True)
|
|
|
time.sleep(1)
|
|
@@ -295,6 +299,7 @@ def test_dfs_radar_chanlist_vht80(dev, apdev):
|
|
|
def test_dfs_radar_chanlist_vht20(dev, apdev):
|
|
|
"""DFS chanlist when radar is detected and VHT40 configured"""
|
|
|
try:
|
|
|
+ hapd = None
|
|
|
hapd = start_dfs_ap(apdev[0], chanlist="36", vht20=True,
|
|
|
allow_failure=True)
|
|
|
time.sleep(1)
|
|
@@ -329,6 +334,7 @@ def test_dfs_radar_chanlist_vht20(dev, apdev):
|
|
|
def test_dfs_radar_no_ht(dev, apdev):
|
|
|
"""DFS chanlist when radar is detected and no HT configured"""
|
|
|
try:
|
|
|
+ hapd = None
|
|
|
hapd = start_dfs_ap(apdev[0], chanlist="36", ht=False,
|
|
|
allow_failure=True)
|
|
|
time.sleep(1)
|
|
@@ -363,6 +369,7 @@ def test_dfs_radar_no_ht(dev, apdev):
|
|
|
def test_dfs_radar_ht40minus(dev, apdev):
|
|
|
"""DFS chanlist when radar is detected and HT40- configured"""
|
|
|
try:
|
|
|
+ hapd = None
|
|
|
hapd = start_dfs_ap(apdev[0], chanlist="36", ht40minus=True,
|
|
|
allow_failure=True)
|
|
|
time.sleep(1)
|