[PATCH 1/2] tests: allow US channel 12 and 13

Thomas Pedersen thomas at adapt-ip.com
Thu Aug 27 18:58:54 EDT 2020


Channels 12 and 13 were recently unlocked in the US.
Unbreak the scan_dfs test in case a recent regulatory
database is loaded.

Signed-off-by: Thomas Pedersen <thomas at adapt-ip.com>
---
 tests/hwsim/test_scan.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tests/hwsim/test_scan.py b/tests/hwsim/test_scan.py
index 2e64ceec7676..cfc619dfe5ea 100644
--- a/tests/hwsim/test_scan.py
+++ b/tests/hwsim/test_scan.py
@@ -1035,8 +1035,6 @@ def _test_scan_dfs(dev, apdev, params):
         for f in freq:
             if (f >= 5260 and f <= 5320) or (f >= 5500 and f <= 5700):
                 raise Exception("Active scan on DFS channel: %d" % f)
-            if f in [2467, 2472]:
-                raise Exception("Active scan on US-disallowed channel: %d" % f)
 
 @remote_compatible
 def test_scan_abort(dev, apdev):
-- 
2.20.1




More information about the Hostap mailing list