]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Invalid DAC_REQUEST values
authorJouni Malinen <j@w1.fi>
Sun, 7 Mar 2021 10:46:38 +0000 (12:46 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 7 Mar 2021 10:46:38 +0000 (12:46 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_hs20.py

index c8ba767708afdc63f022f0f7fa8f677d581dbde5..de781f764a43a854adf35ee80492c0b119f9c79f 100644 (file)
@@ -6330,6 +6330,10 @@ def run_ap_hs20_terms_and_conditions_sql(dev, apdev, params, url_template,
                 raise Exeception("Unexpected number of rows in current_sessions (%d; expected %d)" % (len(rows), 1))
             logger.info("current_sessions: " + str(rows))
 
+        tests = ["foo", "disconnect q", "coa %s" % dev[0].own_addr()]
+        for t in tests:
+            if "FAIL" not in authsrv.request("DAC_REQUEST " + t):
+                raise Exception("Invalid DAC_REQUEST accepted: " + t)
         if "OK" not in authsrv.request("DAC_REQUEST coa %s t_c_clear" % dev[0].own_addr()):
             raise Exception("DAC_REQUEST failed")