From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> Fixes issues with junk packets. --- monitor/analyze.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/monitor/analyze.c b/monitor/analyze.c index 7aa98b0..9ec6b06 100644 --- a/monitor/analyze.c +++ b/monitor/analyze.c @@ -339,6 +339,9 @@ void analyze_trace(const char *path) case BTSNOOP_OPCODE_SCO_RX_PKT: sco_pkt(&tv, index, true, buf, pktlen); break; + default: + fprintf(stderr, "Wrong opcode %u", opcode); + goto done; } num_packets++; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html