]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: P2P autonomous GO switching channels (separate group interface)
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 5 Jan 2017 14:11:31 +0000 (16:11 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 5 Jan 2017 14:11:31 +0000 (16:11 +0200)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_p2p_autogo.py

index 1f4d30e008b2614585591de567d59382ec3a4538..7d3610598d5235d2958305114556a3ad8d473f43 100644 (file)
@@ -324,8 +324,11 @@ def test_autogo_legacy(dev):
 
 def test_autogo_chan_switch(dev):
     """P2P autonomous GO switching channels"""
+    run_autogo_chan_switch(dev)
+
+def run_autogo_chan_switch(dev):
     autogo(dev[0], freq=2417)
-    connect_cli(dev[0], dev[1])
+    connect_cli(dev[0], dev[1], freq=2417)
     res = dev[0].group_request("CHAN_SWITCH 5 2422")
     if "FAIL" in res:
         # for now, skip test since mac80211_hwsim support is not yet widely
@@ -341,6 +344,14 @@ def test_autogo_chan_switch(dev):
     time.sleep(0.1)
     hwsim_utils.test_connectivity_p2p(dev[0], dev[1])
 
+    dev[0].remove_group()
+    dev[1].wait_go_ending_session()
+
+def test_autogo_chan_switch_group_iface(dev):
+    """P2P autonomous GO switching channels (separate group interface)"""
+    dev[0].global_request("SET p2p_no_group_iface 0")
+    run_autogo_chan_switch(dev)
+
 @remote_compatible
 def test_autogo_extra_cred(dev):
     """P2P autonomous GO sending two WPS credentials"""