aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-08-22 16:22:01 (GMT)
committerJouni Malinen <j@w1.fi>2016-08-22 16:22:01 (GMT)
commitcb320a6d2d6a80629d69ad1793cab23b85f526d0 (patch)
treec4bad89f52ba479a62a608915da67a29616b936a
parentd952f021361c428d7c9e947d57c3bf4a1706f69c (diff)
downloadhostap-cb320a6d2d6a80629d69ad1793cab23b85f526d0.zip
hostap-cb320a6d2d6a80629d69ad1793cab23b85f526d0.tar.gz
hostap-cb320a6d2d6a80629d69ad1793cab23b85f526d0.tar.bz2
tests: Allow regdb missing some op classes in mbo_supp_oper_classes
Not all installed regdb files include channels for global operating classes 121-123, and 129. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--tests/hwsim/test_mbo.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/hwsim/test_mbo.py b/tests/hwsim/test_mbo.py
index 859eede..8f3d358 100644
--- a/tests/hwsim/test_mbo.py
+++ b/tests/hwsim/test_mbo.py
@@ -116,9 +116,15 @@ def test_mbo_supp_oper_classes(dev, apdev):
("BD", bd, bd2, bd5, False),
("KZ", kz, kz2, kz5, False) ]
for country, expected, res2, res5, inc5 in tests:
- if res2 != expected:
+ # For now, allow operating class 129 to be missing since not all
+ # installed regdb files include the 160 MHz channels.
+ expected2 = expected.replace('808182', '8082')
+ # For now, allow operating classes 121-123 to be missing since not all
+ # installed regdb files include the related US DFS channels.
+ expected2 = expected2.replace('78797a7b7c', '787c')
+ if res2 != expected and res2 != expected2:
raise Exception("Unexpected supp_op_class string (country=%s, 2.4 GHz): %s (expected: %s)" % (country, res2, expected))
- if inc5 and res5 != expected:
+ if inc5 and res5 != expected and res5 != expected2:
raise Exception("Unexpected supp_op_class string (country=%s, 5 GHz): %s (expected: %s)" % (country, res5, expected))
def test_mbo_assoc_disallow(dev, apdev, params):