From: Jouni Malinen Date: Tue, 27 Dec 2016 18:55:12 +0000 (+0200) Subject: tests: hostapd and POLL_STA errors X-Git-Tag: hostap_2_7~1899 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f608a9a0776323f1a0117b1f04408bcb451e6cf7;p=thirdparty%2Fhostap.git tests: hostapd and POLL_STA errors Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_hapd_ctrl.py b/tests/hwsim/test_hapd_ctrl.py index 95ef451a4..f7921b5bc 100644 --- a/tests/hwsim/test_hapd_ctrl.py +++ b/tests/hwsim/test_hapd_ctrl.py @@ -844,3 +844,14 @@ def test_hapd_ctrl_eapol_relog(dev, apdev): hapd = hostapd.add_ap(apdev[0], params) if "OK" not in hapd.request("RELOG"): raise Exception("RELOG failed") + +def test_hapd_ctrl_poll_sta_errors(dev, apdev): + """hostapd and POLL_STA errors""" + ssid = "hapd-ctrl" + params = { "ssid": ssid } + hapd = hostapd.add_ap(apdev[0], params) + tests = [ "foo", + "11:22:33:44:55:66" ] + for t in tests: + if "FAIL" not in hapd.request("POLL_STA " + t): + raise Exception("Invalid POLL_STA command accepted: " + t)