From: Jouni Malinen Date: Sat, 22 Nov 2014 16:28:22 +0000 (+0200) Subject: tests: Fix wnm_bss_tm_req status code expectation X-Git-Tag: hostap_2_4~1074 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ab4ee34306f9859969923fdc3e4554ce758412b5;p=thirdparty%2Fhostap.git tests: Fix wnm_bss_tm_req status code expectation The implementation of WNM BSS transition management was extended to be able to return a reject status code based on whether a matching entry is found. The test case wnm_bss_tm_req was trying to enforce a different status code to be used here based on old implementation. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py index 14867f783..9acfda568 100644 --- a/tests/hwsim/test_wnm.py +++ b/tests/hwsim/test_wnm.py @@ -277,7 +277,7 @@ def test_wnm_bss_tm_req(dev, apdev): req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'], req_mode=0x01, dialog_token=5) hapd.mgmt_tx(req) - resp = rx_bss_tm_resp(hapd, expect_dialog=5, expect_status=1) + resp = rx_bss_tm_resp(hapd, expect_dialog=5, expect_status=7) # Preferred Candidate List with a truncated entry req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'], @@ -291,7 +291,7 @@ def test_wnm_bss_tm_req(dev, apdev): req_mode=0x01, dialog_token=6) req['payload'] += struct.pack("