]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Extend scan_dfs to cover US-disallowed channels 12 and 13
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 30 Nov 2015 09:59:45 +0000 (11:59 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 30 Nov 2015 12:03:23 +0000 (14:03 +0200)
Verify that active scanning is not used in US regulatory domain on 2.4
GHz channels 12 and 13.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_scan.py

index ff7e69c1966b80f9e1f5fe39fdb0f328b14a061d..7229456f8b6b6fda2adda061670d2a5a68816df6 100644 (file)
@@ -947,6 +947,8 @@ 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)
 
 def test_scan_abort(dev, apdev):
     """Aborting a full scan"""