]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: P2P autonomous GO and interface being removed
authorJouni Malinen <jouni@codeaurora.org>
Thu, 1 Oct 2020 12:45:34 +0000 (15:45 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 1 Oct 2020 12:48:05 +0000 (15:48 +0300)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_p2p_autogo.py

index f0e861e2f90c40e9325952c64fdf7945acc43779..91d68eaf2836edfdc58d590ba4ea5c4f59049209 100644 (file)
@@ -922,3 +922,15 @@ def run_autogo_interworking(dev):
     dev[0].remove_group()
     if '6b03110203' not in bss['ie']:
         raise Exception("Interworking element not seen")
+
+def test_autogo_remove_iface(dev):
+    """P2P autonomous GO and interface being removed"""
+    wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
+    wpas.interface_add("wlan5")
+    wpas.global_request("SET p2p_no_group_iface 1")
+    wpas.set("p2p_group_idle", "1")
+    autogo(wpas)
+    wpas.global_request("P2P_SET disallow_freq 5000")
+    time.sleep(0.1)
+    wpas.global_request("INTERFACE_REMOVE " + wpas.ifname)
+    time.sleep(1)