From 9702e6b290b2aeae883e5112b7428ea01d2d7ab0 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 26 Apr 2017 17:16:04 +0300 Subject: [PATCH] shared/att: Fix responding to unknown command opcode In case of receiving an unknown command no response shall be generated. --- src/shared/att.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shared/att.c b/src/shared/att.c index 3071b51b8..494b10de5 100644 --- a/src/shared/att.c +++ b/src/shared/att.c @@ -148,6 +148,9 @@ static enum att_op_type get_op_type(uint8_t opcode) return att_opcode_type_table[i].type; } + if (opcode & ATT_OP_CMD_MASK) + return ATT_OP_CMD_MASK; + return ATT_OP_TYPE_UNKNOWN; } -- 2.47.3