From ce4f7e0e0cf3a2ecd7839c247e83c4ecd5aca348 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 22 Oct 2019 22:39:49 +0200 Subject: [PATCH] test/mesh: process all received ADVs --- test/mesh/dump_mesh_pklg.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/mesh/dump_mesh_pklg.py b/test/mesh/dump_mesh_pklg.py index 7a82e2b70..487e94ec9 100755 --- a/test/mesh/dump_mesh_pklg.py +++ b/test/mesh/dump_mesh_pklg.py @@ -550,7 +550,7 @@ with open (infile, 'rb') as fin: if packet[1] != 0x20: continue adv_data = packet[4:] - adv_pdu = layer_pdu("ADV", adv_data) + adv_pdu = layer_pdu("ADV(TX)", adv_data) mesh_process_adv(adv_pdu) elif type == 1: @@ -559,10 +559,10 @@ with open (infile, 'rb') as fin: if event != 0x3e: continue event_len = packet[1] - if event_len != 0x2b: + if event_len < 14: continue adv_data = packet[13:-1] - adv_pdu = layer_pdu("ADV", adv_data) + adv_pdu = layer_pdu("ADV(RX)", adv_data) mesh_process_adv(adv_pdu) elif type == 0xfc: