tests: Extended listen timing in GO Negotiation messages
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
0e67482427
commit
7e6ca8a534
1 changed files with 26 additions and 0 deletions
|
@ -237,6 +237,32 @@ def test_grpform_pd(dev):
|
||||||
check_grpform_results(i_res, r_res)
|
check_grpform_results(i_res, r_res)
|
||||||
remove_group(dev[0], dev[1])
|
remove_group(dev[0], dev[1])
|
||||||
|
|
||||||
|
def test_grpform_ext_listen(dev):
|
||||||
|
"""P2P group formation with extended listen timing enabled"""
|
||||||
|
try:
|
||||||
|
if "OK" not in dev[0].global_request("P2P_EXT_LISTEN 100 50000"):
|
||||||
|
raise Exception("Failed to set extended listen timing")
|
||||||
|
if "OK" not in dev[1].global_request("P2P_EXT_LISTEN 200 40000"):
|
||||||
|
raise Exception("Failed to set extended listen timing")
|
||||||
|
[i_res, r_res] = go_neg_pbc(i_dev=dev[0], provdisc=True, r_dev=dev[1], r_listen=True)
|
||||||
|
check_grpform_results(i_res, r_res)
|
||||||
|
peer1 = dev[0].get_peer(dev[1].p2p_dev_addr())
|
||||||
|
if peer1['ext_listen_interval'] != "40000":
|
||||||
|
raise Exception("Extended listen interval not discovered correctly")
|
||||||
|
if peer1['ext_listen_period'] != "200":
|
||||||
|
raise Exception("Extended listen period not discovered correctly")
|
||||||
|
peer0 = dev[1].get_peer(dev[0].p2p_dev_addr())
|
||||||
|
if peer0['ext_listen_interval'] != "50000":
|
||||||
|
raise Exception("Extended listen interval not discovered correctly")
|
||||||
|
if peer0['ext_listen_period'] != "100":
|
||||||
|
raise Exception("Extended listen period not discovered correctly")
|
||||||
|
remove_group(dev[0], dev[1])
|
||||||
|
finally:
|
||||||
|
if "OK" not in dev[0].global_request("P2P_EXT_LISTEN"):
|
||||||
|
raise Exception("Failed to clear extended listen timing")
|
||||||
|
if "OK" not in dev[1].global_request("P2P_EXT_LISTEN"):
|
||||||
|
raise Exception("Failed to clear extended listen timing")
|
||||||
|
|
||||||
def test_both_go_intent_15(dev):
|
def test_both_go_intent_15(dev):
|
||||||
"""P2P GO Negotiation with both devices using GO intent 15"""
|
"""P2P GO Negotiation with both devices using GO intent 15"""
|
||||||
go_neg_pin_authorized(i_dev=dev[0], i_intent=15, r_dev=dev[1], r_intent=15, expect_failure=True, i_go_neg_status=9)
|
go_neg_pin_authorized(i_dev=dev[0], i_intent=15, r_dev=dev[1], r_intent=15, expect_failure=True, i_go_neg_status=9)
|
||||||
|
|
Loading…
Reference in a new issue