]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: BTM Request Preferred Candidate List followed by vendor element
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 3 Mar 2016 14:59:27 +0000 (16:59 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 3 Mar 2016 15:10:25 +0000 (17:10 +0200)
This goes through parsing code for a case that was interpreted
incorrectly in the past.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_wnm.py

index 24bb7849706b9c6643ec239a81ed9b8a87c431e5..777589d50da292ec35fcae07885a552cee00e7b0 100644 (file)
@@ -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("<BB6BLBBB", 52, 13 + len(subelems),
+                                  1, 2, 3, 4, 5, 6,
+                                  0, 81, 1, 7) + subelems
+    req['payload'] += binascii.unhexlify("DD0411223344")
+    hapd.mgmt_tx(req)
+    resp = rx_bss_tm_resp(hapd, expect_dialog=8, expect_status=7)
+
 def test_wnm_bss_keep_alive(dev, apdev):
     """WNM keep-alive"""
     params = { "ssid": "test-wnm",