tests: Use global control interface to remove P2P networks
[mech_eap.git] / tests / hwsim / test_p2p_persistent.py
index 980b84f..673fda3 100644 (file)
@@ -392,13 +392,13 @@ def test_persistent_group_without_persistent_reconnect(dev):
 
     ev = dev[0].wait_global_event(["P2P-INVITATION-RECEIVED"], timeout=15)
     if ev is None:
-        raise Exception("No invitation request reported");
+        raise Exception("No invitation request reported")
     if "persistent=" not in ev:
         raise Exception("Invalid invitation type reported: " + ev)
 
     ev2 = dev[1].wait_global_event(["P2P-INVITATION-RESULT"], timeout=15)
     if ev2 is None:
-        raise Exception("No invitation response reported");
+        raise Exception("No invitation response reported")
     if "status=1" not in ev2:
         raise Exception("Unexpected status: " + ev2)
     dev[1].p2p_listen()
@@ -432,13 +432,13 @@ def test_persistent_group_without_persistent_reconnect(dev):
 
     ev = dev[1].wait_global_event(["P2P-INVITATION-RECEIVED"], timeout=15)
     if ev is None:
-        raise Exception("No invitation request reported");
+        raise Exception("No invitation request reported")
     if "persistent=" not in ev:
         raise Exception("Invalid invitation type reported: " + ev)
 
     ev2 = dev[0].wait_global_event(["P2P-INVITATION-RESULT"], timeout=15)
     if ev2 is None:
-        raise Exception("No invitation response reported");
+        raise Exception("No invitation response reported")
     if "status=1" not in ev2:
         raise Exception("Unexpected status: " + ev2)
     dev[0].p2p_listen()
@@ -657,7 +657,7 @@ def test_persistent_group_peer_dropped3(dev):
     invite_from_cli(dev[0], dev[1])
 
     logger.info("Remove group on the GO and try to invite from the client")
-    dev[0].request("REMOVE_NETWORK all")
+    dev[0].global_request("REMOVE_NETWORK all")
     invite(dev[1], dev[0], use_listen=False)
     ev = dev[1].wait_global_event(["P2P-INVITATION-RESULT"], timeout=10)
     if ev is None: