From b0ded7d273479ad2826bade6c69efae7e953e94f Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 7 Mar 2021 12:08:02 +0200 Subject: [PATCH] tests: Additional invalid SET_NEIGHBOR coverage Signed-off-by: Jouni Malinen --- tests/hwsim/test_rrm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/hwsim/test_rrm.py b/tests/hwsim/test_rrm.py index 5f794bb19..84318f6cb 100644 --- a/tests/hwsim/test_rrm.py +++ b/tests/hwsim/test_rrm.py @@ -90,6 +90,10 @@ def test_rrm_neighbor_db(dev, apdev): if "FAIL" not in hapd.request("SET_NEIGHBOR 00:11:22:33:44:55 ssid=test1 nr=" + nr): raise Exception("Set neighbor succeeded unexpectedly") + # Bad SSID end + if "FAIL" not in hapd.request("SET_NEIGHBOR 00:11:22:33:44:55 ssid=\"test1 nr=" + nr): + raise Exception("Set neighbor succeeded unexpectedly") + # No SSID if "FAIL" not in hapd.request("SET_NEIGHBOR 00:11:22:33:44:55 nr=" + nr): raise Exception("Set neighbor succeeded unexpectedly") -- 2.47.2