From 986bfb6ed670cf04adef48ca2679085dd1584a6b Mon Sep 17 00:00:00 2001 From: Avraham Stern Date: Wed, 3 Apr 2019 20:38:49 +0300 Subject: [PATCH] tests: Update rrm_beacon_req_last_frame_indication to match implementation The last beacon report indication was set in all the beacon report elements in the last frame of the beacon report, while it should be set only in the last beacon report element of the last frame. This is now fixed in wpa_supplicant, so update the test case expectation to match the fixed behavior. Signed-off-by: Avraham Stern --- tests/hwsim/test_rrm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/test_rrm.py b/tests/hwsim/test_rrm.py index 23af269d1..1ac66fe23 100644 --- a/tests/hwsim/test_rrm.py +++ b/tests/hwsim/test_rrm.py @@ -875,7 +875,7 @@ def test_rrm_beacon_req_last_frame_indication(dev, apdev): raise Exception("Last Beacon Report Indication subelement missing") last = binascii.hexlify(report.last_indication).decode() - if last != '01': + if (i == 2 and last != '01') or (i != 2 and last != '00'): raise Exception("last beacon report indication is not set on last frame") # The request does not contain the last beacon report indication subelement