summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-01-14 03:08:22 -0800
committerMarcel Holtmann <marcel@holtmann.org>2014-01-14 03:08:22 -0800
commit0796d17886c79429fa9dc6c25761a2c559d09aad (patch)
treed6b9e97bda1b7f6719703ce7a4b30e1f55fb5a1f
parent15073f0e294e1c29a20fb0a3519b092c41aede48 (diff)
monitor: Print status only command complete for unknown commands
-rw-r--r--monitor/packet.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/monitor/packet.c b/monitor/packet.c
index 9ca2d8882..879fe22c0 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -6371,6 +6371,13 @@ static void cmd_complete_evt(const void *data, uint8_t size)
" (0x%2.2x|0x%4.4x) ncmd %d", ogf, ocf, evt->ncmd);
if (!opcode_data || !opcode_data->rsp_func) {
+ if (size - 3 == 1) {
+ uint8_t status = *((uint8_t *) (data + 3));
+
+ print_status(status);
+ return;
+ }
+
packet_hexdump(data + 3, size - 3);
return;
}