From: Jouni Malinen Date: Sat, 22 Mar 2014 14:37:45 +0000 (+0200) Subject: tests: WPS_CHECK_PIN error cases X-Git-Tag: hostap_2_2~494 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ac786d67fe9790a8d199f545f4ce04bc4ccc1381;p=thirdparty%2Fhostap.git tests: WPS_CHECK_PIN error cases Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index 8267c7fec..ee64077d6 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -1015,6 +1015,11 @@ def test_ap_wps_check_pin(dev, apdev): if res != t[1]: raise Exception("Incorrect WPS_CHECK_PIN response {} (expected {})".format(res, t[1])) + if "FAIL" not in hapd.request("WPS_CHECK_PIN 12345"): + raise Exception("Unexpected WPS_CHECK_PIN success") + if "FAIL" not in hapd.request("WPS_CHECK_PIN 123456789"): + raise Exception("Unexpected WPS_CHECK_PIN success") + def test_ap_wps_wep_config(dev, apdev): """WPS 2.0 AP rejecting WEP configuration""" ssid = "test-wps-config"