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 b027b3c..4c52d12 100644 --- a/monitor/analyze.c +++ b/monitor/analyze.c @@ -309,6 +309,9 @@ void analyze_trace(const char *path) case BTSNOOP_OPCODE_SCO_RX_PKT: sco_pkt(&tv, index, 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