From 73360424d908ec8752a5333a3cbea470b7c0d2ce Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 22 Nov 2014 18:30:16 +0200 Subject: [PATCH] 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 --- tests/hwsim/test_wnm.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py index 9acfda568..920d99274 100644 --- a/tests/hwsim/test_wnm.py +++ b/tests/hwsim/test_wnm.py @@ -211,7 +211,7 @@ def rx_bss_tm_resp(hapd, expect_dialog=None, expect_status=None): raise Exception("Unexpected status code %d" % status) return resp -def except_ack(hapd): +def expect_ack(hapd): ev = hapd.wait_event(["MGMT-TX-STATUS"], timeout=5) if ev is None: 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, 1, 0, 0) hapd.mgmt_tx(req) - except_ack(hapd) + expect_ack(hapd) # no disassociation and no candidate list 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_mode=0x08) hapd.mgmt_tx(req) - except_ack(hapd) + expect_ack(hapd) # BSS Termination Duration with TSF=0 and Duration=10 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_mode=0x10) hapd.mgmt_tx(req) - except_ack(hapd) + expect_ack(hapd) req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'], req_mode=0x10) req['payload'] += struct.pack("