Bluetooth: Warn unkown ATT PDUs

The code should always warn about unkown PDUs since it could be causing
unexpected behavior or that something is missing.

Change-Id: Idc608ca221c5ff6e440f90fa24c2cd6a3e6437fc
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
Luiz Augusto von Dentz 2015-05-13 15:45:59 +03:00 committed by Anas Nashif
commit f436fc835e

View file

@ -560,7 +560,7 @@ void bt_att_recv(struct bt_conn *conn, struct bt_buf *buf)
att_signed_write_cmd(conn, buf);
break;
default:
BT_DBG("Unhandled ATT code %u\n", hdr->code);
BT_WARN("Unhandled ATT code %u\n", hdr->code);
send_err_rsp(conn, hdr->code, 0, BT_ATT_ERR_NOT_SUPPORTED);
break;
}