tests: Fix persistent_group_per_sta_psk for P2P Device case

The dev[1] <--> dev[2] data connectivity test was using incorrect
function. dev[2] is also using a P2P group and as such, can have a
different group interface.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2015-05-08 18:21:54 +03:00
parent 36e6633415
commit 38ad1ea317

View file

@ -190,7 +190,7 @@ def test_persistent_group_per_sta_psk(dev):
raise Exception("Joining client did not recognize persistent group") raise Exception("Joining client did not recognize persistent group")
if r_res['psk'] == c_res['psk']: if r_res['psk'] == c_res['psk']:
raise Exception("Same PSK assigned for both clients") raise Exception("Same PSK assigned for both clients")
hwsim_utils.test_connectivity_p2p_sta(dev[1], dev[2]) hwsim_utils.test_connectivity_p2p(dev[1], dev[2])
logger.info("Remove persistent group and re-start it manually") logger.info("Remove persistent group and re-start it manually")
dev[0].remove_group() dev[0].remove_group()