From: Jouni Malinen Date: Mon, 8 Dec 2014 19:10:03 +0000 (+0200) Subject: tests: P2P_GET_PASSPHRASE in P2P Client mode X-Git-Tag: hostap_2_4~856 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd15d44884d46407d45f553a26f47b066b8ede70;p=thirdparty%2Fhostap.git tests: P2P_GET_PASSPHRASE in P2P Client mode Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_p2p_autogo.py b/tests/hwsim/test_p2p_autogo.py index 2bba8212b..59e0c1237 100644 --- a/tests/hwsim/test_p2p_autogo.py +++ b/tests/hwsim/test_p2p_autogo.py @@ -287,6 +287,9 @@ def test_autogo_legacy(dev): logger.info("Connect P2P client") connect_cli(dev[0], dev[1], social=True, freq=2462) + if "FAIL" not in dev[1].request("P2P_GET_PASSPHRASE"): + raise Exception("P2P_GET_PASSPHRASE succeeded on P2P Client") + logger.info("Connect legacy WPS client") pin = dev[2].wps_read_pin() dev[0].p2p_go_authorize_client(pin)