diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2015-12-30 22:06:06 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-12-30 22:06:06 (GMT) |
commit | ce438369653a0a4b0ff2eda13cfea7ff706dd3ce (patch) | |
tree | fedf2e18742724eba5062837059ded077693b10c /tests | |
parent | 944f693591077d05c29cb60790bf0578eff216b4 (diff) | |
download | hostap-ce438369653a0a4b0ff2eda13cfea7ff706dd3ce.zip hostap-ce438369653a0a4b0ff2eda13cfea7ff706dd3ce.tar.gz hostap-ce438369653a0a4b0ff2eda13cfea7ff706dd3ce.tar.bz2 |
tests: GO Negotiation stopped after TX start
This verifies that P2P_STOP_FIND stops a pending offchannel TX wait in
the kernel by checking that a listen operation can be started in less
than a second after stopping a pending Action frame TX. This verifies
that the optimization introduced in the previous commit works properly.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hwsim/test_p2p_grpform.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/hwsim/test_p2p_grpform.py b/tests/hwsim/test_p2p_grpform.py index bd42792..f13f0a3 100644 --- a/tests/hwsim/test_p2p_grpform.py +++ b/tests/hwsim/test_p2p_grpform.py @@ -1099,3 +1099,21 @@ def test_grpform_go_neg_dup_on_restart(dev): lower.dump_monitor() higher.dump_monitor() + +def test_grpform_go_neg_stopped(dev): + """GO Negotiation stopped after TX start""" + addr0 = dev[0].p2p_dev_addr() + dev[0].p2p_listen() + if not dev[1].discover_peer(addr0): + raise Exception("Could not discover peer") + dev[0].p2p_stop_find() + if "OK" not in dev[1].request("P2P_CONNECT %s pbc" % addr0): + raise Exception("Could not request GO Negotiation") + dev[1].p2p_stop_find() + dev[1].p2p_listen() + dev[0].p2p_find(social=True) + ev = dev[0].wait_global_event(["P2P-DEVICE-FOUND"], timeout=1.2) + dev[0].p2p_stop_find() + dev[1].p2p_stop_find() + if ev is None: + raise Exception("Did not find peer quickly enough after stopped P2P_CONNECT") |