]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: P2P_GET_PASSPHRASE in P2P Client mode
authorJouni Malinen <j@w1.fi>
Mon, 8 Dec 2014 19:10:03 +0000 (21:10 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 8 Dec 2014 19:15:26 +0000 (21:15 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_p2p_autogo.py

index 2bba8212bf82fd46bd2d6eb57a87926926477d2a..59e0c1237683aea7499ae076f47dbdfcae1e99f0 100644 (file)
@@ -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)