tests: Additional invalid SET_NEIGHBOR coverage

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2021-03-07 12:08:02 +02:00
parent 924c17aad5
commit b0ded7d273

View file

@ -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")