tests: P2P_GET_PASSPHRASE in P2P Client mode

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-12-08 21:10:03 +02:00
parent e22335e5db
commit dd15d44884

View file

@ -287,6 +287,9 @@ def test_autogo_legacy(dev):
logger.info("Connect P2P client") logger.info("Connect P2P client")
connect_cli(dev[0], dev[1], social=True, freq=2462) 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") logger.info("Connect legacy WPS client")
pin = dev[2].wps_read_pin() pin = dev[2].wps_read_pin()
dev[0].p2p_go_authorize_client(pin) dev[0].p2p_go_authorize_client(pin)