From e62a1cbaf17e091797c1b277542d302cfe98c8ab Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 4 Jan 2020 18:08:03 +0200 Subject: [PATCH] tests: Detect tshark regression in wpas_mesh_gate_forwarding 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 --- tests/hwsim/test_wpas_mesh.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py index ad8f4f5d8..0e80a5a21 100644 --- a/tests/hwsim/test_wpas_mesh.py +++ b/tests/hwsim/test_wpas_mesh.py @@ -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: