From f1e26f8965ae048776fdcfd0b90ea36468c071c8 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 3 Mar 2016 16:59:27 +0200 Subject: [PATCH] tests: BTM Request Preferred Candidate List followed by vendor element This goes through parsing code for a case that was interpreted incorrectly in the past. Signed-off-by: Jouni Malinen --- tests/hwsim/test_wnm.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py index 24bb78497..777589d50 100644 --- a/tests/hwsim/test_wnm.py +++ b/tests/hwsim/test_wnm.py @@ -419,6 +419,17 @@ def test_wnm_bss_tm_req(dev, apdev): hapd.mgmt_tx(req) resp = rx_bss_tm_resp(hapd, expect_dialog=8, expect_status=7) + # Preferred Candidate List followed by vendor element + req = bss_tm_req(dev[0].p2p_interface_addr(), apdev[0]['bssid'], + req_mode=0x01, dialog_token=8) + subelems = "" + req['payload'] += struct.pack("