tests: Fix a typo in function name
except_ack() was supposed to be verifying that the frame was ACK'ed, i.e., it was really supposed to be called expect_ack(). Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
ab4ee34306
commit
73360424d9
1 changed files with 6 additions and 6 deletions
|
@ -211,7 +211,7 @@ def rx_bss_tm_resp(hapd, expect_dialog=None, expect_status=None):
|
||||||
raise Exception("Unexpected status code %d" % status)
|
raise Exception("Unexpected status code %d" % status)
|
||||||
return resp
|
return resp
|
||||||
|
|
||||||
def except_ack(hapd):
|
def expect_ack(hapd):
|
||||||
ev = hapd.wait_event(["MGMT-TX-STATUS"], timeout=5)
|
ev = hapd.wait_event(["MGMT-TX-STATUS"], timeout=5)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("Missing TX status")
|
raise Exception("Missing TX status")
|
||||||
|
@ -234,7 +234,7 @@ def test_wnm_bss_tm_req(dev, apdev):
|
||||||
ACTION_CATEG_WNM, WNM_ACT_BSS_TM_REQ,
|
ACTION_CATEG_WNM, WNM_ACT_BSS_TM_REQ,
|
||||||
1, 0, 0)
|
1, 0, 0)
|
||||||
hapd.mgmt_tx(req)
|
hapd.mgmt_tx(req)
|
||||||
except_ack(hapd)
|
expect_ack(hapd)
|
||||||
|
|
||||||
# no disassociation and no candidate list
|
# no disassociation and no candidate list
|
||||||
req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'],
|
req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'],
|
||||||
|
@ -246,7 +246,7 @@ def test_wnm_bss_tm_req(dev, apdev):
|
||||||
req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'],
|
req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'],
|
||||||
req_mode=0x08)
|
req_mode=0x08)
|
||||||
hapd.mgmt_tx(req)
|
hapd.mgmt_tx(req)
|
||||||
except_ack(hapd)
|
expect_ack(hapd)
|
||||||
|
|
||||||
# BSS Termination Duration with TSF=0 and Duration=10
|
# BSS Termination Duration with TSF=0 and Duration=10
|
||||||
req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'],
|
req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'],
|
||||||
|
@ -259,12 +259,12 @@ def test_wnm_bss_tm_req(dev, apdev):
|
||||||
req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'],
|
req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'],
|
||||||
req_mode=0x10)
|
req_mode=0x10)
|
||||||
hapd.mgmt_tx(req)
|
hapd.mgmt_tx(req)
|
||||||
except_ack(hapd)
|
expect_ack(hapd)
|
||||||
req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'],
|
req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'],
|
||||||
req_mode=0x10)
|
req_mode=0x10)
|
||||||
req['payload'] += struct.pack("<BBB", 3, 65, 66)
|
req['payload'] += struct.pack("<BBB", 3, 65, 66)
|
||||||
hapd.mgmt_tx(req)
|
hapd.mgmt_tx(req)
|
||||||
except_ack(hapd)
|
expect_ack(hapd)
|
||||||
|
|
||||||
# Session Information URL
|
# Session Information URL
|
||||||
req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'],
|
req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'],
|
||||||
|
@ -284,7 +284,7 @@ def test_wnm_bss_tm_req(dev, apdev):
|
||||||
req_mode=0x01)
|
req_mode=0x01)
|
||||||
req['payload'] += struct.pack("<BB", 52, 1)
|
req['payload'] += struct.pack("<BB", 52, 1)
|
||||||
hapd.mgmt_tx(req)
|
hapd.mgmt_tx(req)
|
||||||
except_ack(hapd)
|
expect_ack(hapd)
|
||||||
|
|
||||||
# Preferred Candidate List with a too short entry
|
# Preferred Candidate List with a too short entry
|
||||||
req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'],
|
req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'],
|
||||||
|
|
Loading…
Reference in a new issue