]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Detect tshark regression in wpas_mesh_gate_forwarding
authorJouni Malinen <j@w1.fi>
Sat, 4 Jan 2020 16:08:03 +0000 (18:08 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 4 Jan 2020 16:08:03 +0000 (18:08 +0200)
Skip this test case if the used tshark version has regression in mesh
control field parsing:
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=15521

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wpas_mesh.py

index ad8f4f5d89c2611c72b1e756674f5864db630b1c..0e80a5a21bed9cac0f66b1e86868b8ec03d4f3fa 100644 (file)
@@ -1464,6 +1464,13 @@ def test_wpas_mesh_gate_forwarding(dev, apdev, p):
             break
         time.sleep(0.5)
 
+    if addr0 not in da and addr1 not in da:
+        filt = "wlan.sa==%s" % addr2
+        mesh = run_tshark(capfile, filt, ["wlan.mesh.control_field"])
+        if "1" not in mesh:
+            # Wireshark regression in mesh control field parsing:
+            # https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=15521
+            raise HwsimSkip("tshark bug 15521")
     if addr0 not in da:
         raise Exception("Frame to gate %s not observed" % addr0)
     if addr1 not in da: