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.
This commit is contained in:
Mathy Vanhoef 2022-10-02 00:40:29 +02:00
parent 8936e2d33e
commit 8092813616

View File

@ -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))