tests: Update group_ifname after group start
After P2P-GROUP-STARTED event, use group_form_result in order to update the group_ifname for the device. This is needed when using P2P Device for managing P2P operations which results in a separate group interface being used. Signed-off-by: Ben Rosenfeld <ben.rosenfeld@intel.com>
This commit is contained in:
parent
6f27f79084
commit
622ef15b77
1 changed files with 4 additions and 0 deletions
|
@ -216,6 +216,7 @@ def test_persistent_group_per_sta_psk(dev):
|
|||
ev = dev[i].wait_global_event(["P2P-GROUP-STARTED"], timeout=30)
|
||||
if ev is None:
|
||||
raise Exception("Timeout on group restart")
|
||||
dev[i].group_form_result(ev)
|
||||
|
||||
logger.info("Leave persistent group and rejoin it")
|
||||
dev[2].remove_group()
|
||||
|
@ -283,6 +284,8 @@ def test_persistent_group_per_sta_psk(dev):
|
|||
dev[1].dump_monitor()
|
||||
peer = dev[1].get_peer(addr0)
|
||||
dev[1].global_request("P2P_INVITE persistent=" + peer['persistent'] + " peer=" + addr0)
|
||||
ev = dev[0].wait_global_event(["P2P-GROUP-STARTED"], timeout=30)
|
||||
dev[0].group_form_result(ev)
|
||||
ev = dev[1].wait_global_event(["P2P-GROUP-STARTED","WPA: 4-Way Handshake failed"], timeout=30)
|
||||
if ev is None:
|
||||
raise Exception("Timeout on group restart (on client)")
|
||||
|
@ -421,6 +424,7 @@ def test_persistent_go_client_list(dev):
|
|||
ev = dev[1].wait_global_event(["P2P-GROUP-STARTED"], timeout=30)
|
||||
if ev is None:
|
||||
raise Exception("Timeout on group restart (on client)")
|
||||
dev[1].group_form_result(ev)
|
||||
clients = dev[0].global_request("GET_NETWORK " + id + " p2p_client_list").rstrip()
|
||||
if clients != addr1 + " " + addr2:
|
||||
raise Exception("Unexpected p2p_client_list entry(4): " + clients)
|
||||
|
|
Loading…
Reference in a new issue