Bluetooth: ATT: Fix misleading warning

When an opcode doesn't have a handle that doesn't mean it is unknown
just that it will not be handle as it could have been disabled.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
Luiz Augusto von Dentz 2019-08-28 14:32:55 +03:00 committed by Carles Cufí
commit 5ac014aac6

View file

@ -1993,7 +1993,7 @@ static int bt_att_recv(struct bt_l2cap_chan *chan, struct net_buf *buf)
}
if (!handler) {
BT_WARN("Unknown ATT code 0x%02x", hdr->code);
BT_WARN("Unhandled ATT code 0x%02x", hdr->code);
if (att_op_get_type(hdr->code) != ATT_COMMAND) {
send_err_rsp(chan->conn, hdr->code, 0,
BT_ATT_ERR_NOT_SUPPORTED);