tests: scan_multi_bssid_check_ie to allow for Multi BSSID Index IE

cfg80211 was modified to allow the Multiple BSSID Index element to be
included in the IEs for a nontransmitted BSS. Update the validation step
in this test case to allow that different with the IEs in the Beacon
frame (transmitted BSS).

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2019-04-08 23:44:45 +03:00 committed by Jouni Malinen
parent bbde461d7e
commit 8f5b1c40bd

View file

@ -1700,7 +1700,12 @@ def test_scan_multi_bssid_check_ie(dev, apdev):
if 71 in list(beacon_ie.keys()):
ie_list = list(beacon_ie.keys())
ie_list.remove(71)
if sorted(ie_list) != sorted(list(nontx_beacon_ie.keys())):
nontx_ie_list = list(nontx_beacon_ie.keys())
try:
nontx_ie_list.remove(85)
except ValueError:
pass
if sorted(ie_list) != sorted(nontx_ie_list):
raise Exception("check IE failed")
def elem_fms1():