Browse Source

tests: P2P_GET_PASSPHRASE in P2P Client mode

Signed-off-by: Jouni Malinen <j@w1.fi>
Jouni Malinen 10 years ago
parent
commit
dd15d44884
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/hwsim/test_p2p_autogo.py

+ 3 - 0
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)