Parcourir la source

tests: Invalid WMM_AC_ADDTS parameter

Signed-off-by: Jouni Malinen <j@w1.fi>
Jouni Malinen il y a 8 ans
Parent
commit
765c15d503
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      tests/hwsim/test_wpas_wmm_ac.py

+ 4 - 0
tests/hwsim/test_wpas_wmm_ac.py

@@ -110,6 +110,10 @@ def test_tspec(dev, apdev):
         if not str(e).startswith("DELTS failed"):
             raise
 
+    # "CTRL: Invalid WMM_AC_ADDTS parameter: 'foo'
+    if "FAIL" not in dev[0].request("WMM_AC_ADDTS foo"):
+        raise Exception("Invalid WMM_AC_ADDTS command accepted")
+
 def test_tspec_protocol(dev, apdev):
     """Protocol tests for addts/delts"""
     # configure ap with VO and VI requiring admission-control