tests: Use group control interface in autogo

P2P-PRESENCE-RESPONSE is a group event, and thus need
to use the group control interface.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
Ilan Peer 2015-02-05 20:30:57 -05:00 committed by Jouni Malinen
parent 75826fc6e6
commit d4f2ba749e

View file

@ -63,7 +63,7 @@ def test_autogo(dev):
raise Exception("Invald P2P_PRESENCE_REQ accepted") raise Exception("Invald P2P_PRESENCE_REQ accepted")
if "FAIL" in dev[1].group_request("P2P_PRESENCE_REQ 30000 102400"): if "FAIL" in dev[1].group_request("P2P_PRESENCE_REQ 30000 102400"):
raise Exception("Could not send presence request") raise Exception("Could not send presence request")
ev = dev[1].wait_event(["P2P-PRESENCE-RESPONSE"]) ev = dev[1].wait_group_event(["P2P-PRESENCE-RESPONSE"], 10)
if ev is None: if ev is None:
raise Exception("Timeout while waiting for Presence Response") raise Exception("Timeout while waiting for Presence Response")
if "FAIL" in dev[1].group_request("P2P_PRESENCE_REQ 30000 102400 20000 102400"): if "FAIL" in dev[1].group_request("P2P_PRESENCE_REQ 30000 102400 20000 102400"):