diff --git a/tests/hwsim/test_peerkey.py b/tests/hwsim/test_peerkey.py index ec182851c..74c810257 100644 --- a/tests/hwsim/test_peerkey.py +++ b/tests/hwsim/test_peerkey.py @@ -79,6 +79,15 @@ def test_peerkey_sniffer_check(dev, apdev, params): pass else: raise + if not try_other: + found = False + for pkt in out.splitlines(): + sa, da, key_info = pkt.split('\t') + if key_info != '': + found = True + break + if not found: + try_other = True if try_other: out = run_tshark(os.path.join(params['logdir'], "hwsim0.pcapng"), "eapol.type == 3",