diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2017-01-05 14:11:31 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2017-01-05 14:11:31 (GMT) |
commit | 5e8f231947f450ff1225b6cdafdb546c83843aaf (patch) | |
tree | 8d278b06fb6cb37dbf655524d212ecceeeffcf9d /tests | |
parent | 4041d2af4df8ff44fe046d73332a35c4b6cb4e22 (diff) | |
download | hostap-5e8f231947f450ff1225b6cdafdb546c83843aaf.zip hostap-5e8f231947f450ff1225b6cdafdb546c83843aaf.tar.gz hostap-5e8f231947f450ff1225b6cdafdb546c83843aaf.tar.bz2 |
tests: P2P autonomous GO switching channels (separate group interface)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hwsim/test_p2p_autogo.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/hwsim/test_p2p_autogo.py b/tests/hwsim/test_p2p_autogo.py index 1f4d30e..7d36105 100644 --- a/tests/hwsim/test_p2p_autogo.py +++ b/tests/hwsim/test_p2p_autogo.py @@ -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""" |