From: Jouni Malinen Date: Sun, 28 Feb 2021 18:40:47 +0000 (+0200) Subject: tests: Invalid COLOC_INTF_REQ parameters X-Git-Tag: hostap_2_10~498 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c6723b7f399e91ed9b8e4f70340a69603bd7db1;p=thirdparty%2Fhostap.git tests: Invalid COLOC_INTF_REQ parameters Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py index c9a16094b..9b4875bdb 100644 --- a/tests/hwsim/test_wnm.py +++ b/tests/hwsim/test_wnm.py @@ -1895,6 +1895,15 @@ def test_wnm_coloc_intf_reporting(dev, apdev): raise Exception("No Collocated Interference Report frame seen") if addr + " 0 " + binascii.hexlify(no_intf).decode() not in ev: raise Exception("Unexpected report values: " + ev) + + if "FAIL" not in hapd.request("COLOC_INTF_REQ foo 1 5"): + raise Exception("Invalid COLOC_INTF_REQ accepted") + if "FAIL" not in hapd.request("COLOC_INTF_REQ 02:ff:ff:ff:ff:ff 1 5"): + raise Exception("COLOC_INTF_REQ for unknown STA accepted") + if "FAIL" not in hapd.request("COLOC_INTF_REQ %s 1" % addr): + raise Exception("Invalid COLOC_INTF_REQ accepted") + if "FAIL" not in hapd.request("COLOC_INTF_REQ %s" % addr): + raise Exception("Invalid COLOC_INTF_REQ accepted") finally: dev[0].set("coloc_intf_reporting", "0") dev[0].set("coloc_intf_elems", "")