From: Jouni Malinen Date: Mon, 8 Apr 2019 20:44:45 +0000 (+0300) Subject: tests: scan_multi_bssid_check_ie to allow for Multi BSSID Index IE X-Git-Tag: hostap_2_8~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f5b1c40bddf6e0a67f8381ad5f82440d14c894f;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/test_scan.py b/tests/hwsim/test_scan.py index 142bf497e..735ccffc3 100644 --- a/tests/hwsim/test_scan.py +++ b/tests/hwsim/test_scan.py @@ -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():