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 <avraham.stern@intel.com>
This commit is contained in:
Avraham Stern 2019-04-03 20:38:49 +03:00 committed by Jouni Malinen
parent 56ac1f9dfe
commit 986bfb6ed6

View File

@ -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