tests: Increase timeouts when MCC is enabled

When MCC is enabled, the remain of channel scheduling might
incur additional delays, so increase the timeouts to be able
to receive delays frames.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
Ilan Peer 2015-07-27 22:24:33 +03:00 committed by Jouni Malinen
parent 1977de368b
commit 48dd5e4da8

View file

@ -1309,7 +1309,7 @@ def test_p2p_msg_pd(dev, apdev):
raise Exception("Unexpected PD result event") raise Exception("Unexpected PD result event")
def check_p2p_response(hapd, dialog_token, status): def check_p2p_response(hapd, dialog_token, status):
resp = hapd.mgmt_rx(timeout=1) resp = hapd.mgmt_rx(timeout=2)
if resp is None: if resp is None:
raise Exception("No GO Neg Response " + str(dialog_token)) raise Exception("No GO Neg Response " + str(dialog_token))
p2p = parse_p2p_public_action(resp['payload']) p2p = parse_p2p_public_action(resp['payload'])
@ -1388,7 +1388,7 @@ def test_p2p_msg_go_neg_req(dev, apdev):
attrs += p2p_attr_operating_channel() attrs += p2p_attr_operating_channel()
msg['payload'] += ie_p2p(attrs) msg['payload'] += ie_p2p(attrs)
hapd.mgmt_tx(msg) hapd.mgmt_tx(msg)
if hapd.mgmt_rx(timeout=1) is None: if hapd.mgmt_rx(timeout=2) is None:
raise Exception("No GO Neg Response " + str(dialog_token)) raise Exception("No GO Neg Response " + str(dialog_token))
time.sleep(0.1) time.sleep(0.1)
@ -1405,7 +1405,7 @@ def test_p2p_msg_go_neg_req(dev, apdev):
#attrs += p2p_attr_operating_channel() #attrs += p2p_attr_operating_channel()
msg['payload'] += ie_p2p(attrs) msg['payload'] += ie_p2p(attrs)
hapd.mgmt_tx(msg) hapd.mgmt_tx(msg)
if hapd.mgmt_rx(timeout=1) is None: if hapd.mgmt_rx(timeout=2) is None:
raise Exception("No GO Neg Response " + str(dialog_token)) raise Exception("No GO Neg Response " + str(dialog_token))
time.sleep(0.1) time.sleep(0.1)
@ -1422,7 +1422,7 @@ def test_p2p_msg_go_neg_req(dev, apdev):
attrs += p2p_attr_operating_channel() attrs += p2p_attr_operating_channel()
msg['payload'] += ie_p2p(attrs) msg['payload'] += ie_p2p(attrs)
hapd.mgmt_tx(msg) hapd.mgmt_tx(msg)
if hapd.mgmt_rx(timeout=1) is None: if hapd.mgmt_rx(timeout=2) is None:
raise Exception("No GO Neg Response " + str(dialog_token)) raise Exception("No GO Neg Response " + str(dialog_token))
time.sleep(0.1) time.sleep(0.1)
@ -1439,7 +1439,7 @@ def test_p2p_msg_go_neg_req(dev, apdev):
attrs += p2p_attr_operating_channel() attrs += p2p_attr_operating_channel()
msg['payload'] += ie_p2p(attrs) msg['payload'] += ie_p2p(attrs)
hapd.mgmt_tx(msg) hapd.mgmt_tx(msg)
if hapd.mgmt_rx(timeout=1) is None: if hapd.mgmt_rx(timeout=2) is None:
raise Exception("No GO Neg Response " + str(dialog_token)) raise Exception("No GO Neg Response " + str(dialog_token))
time.sleep(0.1) time.sleep(0.1)
@ -1456,7 +1456,7 @@ def test_p2p_msg_go_neg_req(dev, apdev):
attrs += p2p_attr_operating_channel() attrs += p2p_attr_operating_channel()
msg['payload'] += ie_p2p(attrs) msg['payload'] += ie_p2p(attrs)
hapd.mgmt_tx(msg) hapd.mgmt_tx(msg)
if hapd.mgmt_rx(timeout=1) is None: if hapd.mgmt_rx(timeout=2) is None:
raise Exception("No GO Neg Response " + str(dialog_token)) raise Exception("No GO Neg Response " + str(dialog_token))
time.sleep(0.1) time.sleep(0.1)
@ -1474,7 +1474,7 @@ def test_p2p_msg_go_neg_req(dev, apdev):
attrs += p2p_attr_operating_channel() attrs += p2p_attr_operating_channel()
msg['payload'] += ie_p2p(attrs) msg['payload'] += ie_p2p(attrs)
hapd.mgmt_tx(msg) hapd.mgmt_tx(msg)
if hapd.mgmt_rx(timeout=1) is None: if hapd.mgmt_rx(timeout=2) is None:
raise Exception("No GO Neg Response " + str(dialog_token)) raise Exception("No GO Neg Response " + str(dialog_token))
time.sleep(0.1) time.sleep(0.1)
@ -1493,7 +1493,7 @@ def test_p2p_msg_go_neg_req(dev, apdev):
attrs += p2p_attr_status(status=P2P_SC_FAIL_INFO_CURRENTLY_UNAVAILABLE) attrs += p2p_attr_status(status=P2P_SC_FAIL_INFO_CURRENTLY_UNAVAILABLE)
msg['payload'] += ie_p2p(attrs) msg['payload'] += ie_p2p(attrs)
hapd.mgmt_tx(msg) hapd.mgmt_tx(msg)
if hapd.mgmt_rx(timeout=1) is None: if hapd.mgmt_rx(timeout=2) is None:
raise Exception("No GO Neg Response(1) " + str(dialog_token)) raise Exception("No GO Neg Response(1) " + str(dialog_token))
time.sleep(0.1) time.sleep(0.1)
@ -1513,7 +1513,7 @@ def test_p2p_msg_go_neg_req(dev, apdev):
hapd.mgmt_tx(msg) hapd.mgmt_tx(msg)
check_p2p_response(hapd, dialog_token, check_p2p_response(hapd, dialog_token,
P2P_SC_FAIL_INFO_CURRENTLY_UNAVAILABLE) P2P_SC_FAIL_INFO_CURRENTLY_UNAVAILABLE)
ev = dev[0].wait_global_event(["P2P-GO-NEG-REQUEST"], timeout=1) ev = dev[0].wait_global_event(["P2P-GO-NEG-REQUEST"], timeout=2)
if ev is None: if ev is None:
raise Exception("Timeout on GO Neg event " + str(dialog_token)) raise Exception("Timeout on GO Neg event " + str(dialog_token))
@ -1534,7 +1534,7 @@ def test_p2p_msg_go_neg_req(dev, apdev):
attrs += p2p_attr_operating_channel() attrs += p2p_attr_operating_channel()
msg['payload'] += ie_p2p(attrs) msg['payload'] += ie_p2p(attrs)
hapd.mgmt_tx(msg) hapd.mgmt_tx(msg)
if hapd.mgmt_rx(timeout=1) is None: if hapd.mgmt_rx(timeout=2) is None:
raise Exception("No GO Neg Response " + str(dialog_token)) raise Exception("No GO Neg Response " + str(dialog_token))
# ready - invalid GO Intent GO Neg Req # ready - invalid GO Intent GO Neg Req