]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: scan_multi_bssid_check_ie to allow for Multi BSSID Index IE
authorJouni Malinen <jouni@codeaurora.org>
Mon, 8 Apr 2019 20:44:45 +0000 (23:44 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 8 Apr 2019 20:44:45 +0000 (23:44 +0300)
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>
tests/hwsim/test_scan.py

index 142bf497e95644351e44986d93f1bb3033dfb1fe..735ccffc334dfef4649a9d069f738cc64456d1a1 100644 (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():