]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Update rrm_beacon_req_table_rsne to expect full RSNE
authorJouni Malinen <j@w1.fi>
Wed, 2 Jan 2019 14:25:31 +0000 (16:25 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 2 Jan 2019 14:26:11 +0000 (16:26 +0200)
Now that wpa_supplicant is sending out full RSNE instead of the
fragmented one, update this test case to match.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_rrm.py

index 2b205bcad1a799631781df80c09088ce0be90177..39f9a2a26296c46ea52b38d2b9ac640c66e8bd97 100644 (file)
@@ -1063,7 +1063,7 @@ def test_rrm_beacon_req_table_truncated_subelem(dev, apdev):
 
 @remote_compatible
 def test_rrm_beacon_req_table_rsne(dev, apdev):
-    """Beacon request - beacon table mode - RSNE truncation"""
+    """Beacon request - beacon table mode - RSNE reporting"""
     params = hostapd.wpa2_params(ssid="rrm-rsn", passphrase="12345678")
     params["rrm_beacon_report"] = "1"
     hapd = hostapd.add_ap(apdev[0], params)
@@ -1080,10 +1080,10 @@ def test_rrm_beacon_req_table_rsne(dev, apdev):
     logger.info("Received beacon report: " + str(report))
     if not report.frame_body:
         raise Exception("Reported Frame Body subelement missing")
-    if len(report.frame_body) != 12 + 6:
+    if len(report.frame_body) != 12 + 22:
         raise Exception("Unexpected Reported Frame Body subelement length with Reporting Detail 1 and requested element RSNE")
-    if binascii.unhexlify("30040100000f") not in report.frame_body:
-        raise Exception("Truncated RSNE not found")
+    if binascii.unhexlify("30140100000fac040100000fac040100000fac020c00") not in report.frame_body:
+        raise Exception("Full RSNE not found")
 
 def test_rrm_beacon_req_table_vht(dev, apdev):
     """Beacon request - beacon table mode - VHT"""