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:
parent
ac02b30923
commit
5ac014aac6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue