diff --git a/samples/bluetooth/iso_broadcast_benchmark/src/receiver.c b/samples/bluetooth/iso_broadcast_benchmark/src/receiver.c index 41cad26a3b4..68470c6466f 100644 --- a/samples/bluetooth/iso_broadcast_benchmark/src/receiver.c +++ b/samples/bluetooth/iso_broadcast_benchmark/src/receiver.c @@ -86,6 +86,11 @@ static void scan_recv(const struct bt_le_scan_recv_info *info, return; } + if (info->interval == 0U) { + /* Not broadcast periodic advertising - Ignore */ + return; + } + (void)memset(name, 0, sizeof(name)); bt_data_parse(buf, data_cb, name); @@ -94,11 +99,6 @@ static void scan_recv(const struct bt_le_scan_recv_info *info, return; } - if (info->interval == 0U) { - /* Not broadcast periodic advertising - Ignore */ - return; - } - bt_addr_le_to_str(info->addr, le_addr, sizeof(le_addr)); LOG_INF("Found broadcaster with address %s (RSSI %i)",