From 80928136162facf5ac7fc20b4bcba5e78999bfd6 Mon Sep 17 00:00:00 2001 From: Mathy Vanhoef Date: Sun, 2 Oct 2022 00:40:29 +0200 Subject: [PATCH] injection test: sniff longer in reorder test This was important to avoid false negatives when testing the MT7612U, specifcally a device with internally an MT7612UN. --- research/libwifi/injectiontest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/research/libwifi/injectiontest.py b/research/libwifi/injectiontest.py index 872ff9c83..6309ffc05 100644 --- a/research/libwifi/injectiontest.py +++ b/research/libwifi/injectiontest.py @@ -120,7 +120,7 @@ def test_injection_order(sout, sin, ref, strtype, retries=1): for p in [p2] * 4 + [p6]: sout.send(RadioTap(present="TXFlags", TXFlags="NOSEQ+ORDER")/p/Raw(label)) - packets = sniff(opened_socket=sin, timeout=1.5, lfilter=lambda p: Dot11QoS in p and label in raw(p)) + packets = sniff(opened_socket=sin, timeout=2.5, lfilter=lambda p: Dot11QoS in p and label in raw(p)) tids = [p[Dot11QoS].TID for p in packets] log(STATUS, "Captured TIDs: " + str(tids))