From c37fdf5f94711ffbdf966f2ab366bbd047dfc147 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Sat, 21 Jan 2012 12:55:16 -0600 Subject: decode: updates all around Rewrite packet handling so packets can span multiple USB URBs (which sometimes happens with WMC) and also add a bunch more WMC decoding stuff. --- decode/qmux.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'decode/qmux.py') diff --git a/decode/qmux.py b/decode/qmux.py index 36a2f302..4ff5cad7 100644 --- a/decode/qmux.py +++ b/decode/qmux.py @@ -24,6 +24,10 @@ TP_REQUEST = 0x00 TP_RESPONSE = 0x02 TP_INDICATION = 0x04 +def complete(data, direction): + # We don't handle QMUX frames spanning packets yet + return True + def unpack(data, direction): return binascii.unhexlify(data) @@ -183,5 +187,5 @@ def show(data, prefix, direction): print "" def get_funcs(): - return (unpack, show) + return (complete, unpack, show) -- cgit v1.2.3-70-g09d2