tests: Fix persistent_group_per_sta_psk for P2P Device case
authorJouni Malinen <j@w1.fi>
Fri, 8 May 2015 15:21:54 +0000 (18:21 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 8 May 2015 15:33:20 +0000 (18:33 +0300)
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>
tests/hwsim/test_p2p_persistent.py

index eaf4233..c2689af 100644 (file)
@@ -190,7 +190,7 @@ def test_persistent_group_per_sta_psk(dev):
         raise Exception("Joining client did not recognize persistent group")
     if r_res['psk'] == c_res['psk']:
         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")
     dev[0].remove_group()