From 8f5b1c40bddf6e0a67f8381ad5f82440d14c894f Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 8 Apr 2019 23:44:45 +0300 Subject: [PATCH] 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 --- tests/hwsim/test_scan.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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():