From 6e28748e3e78b4ddcc4ae66e262ecf5581a5b445 Mon Sep 17 00:00:00 2001 From: Mariusz Skamra Date: Wed, 2 Dec 2015 15:04:01 +0100 Subject: [PATCH] Bluetooth: GATT: Minor fix in warning message This patch fixes warning that ATT MTU exceeded. An opcode size should be taken into account. Change-Id: Ia69c9514a59767542cca0ef36fc77d896d20db28 Signed-off-by: Mariusz Skamra --- net/bluetooth/att.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bluetooth/att.c b/net/bluetooth/att.c index b653c1b95dd..600a0058fcf 100644 --- a/net/bluetooth/att.c +++ b/net/bluetooth/att.c @@ -1596,7 +1596,7 @@ struct net_buf *bt_att_create_pdu(struct bt_conn *conn, uint8_t op, size_t len) if (len + sizeof(op) > att->chan.tx.mtu) { BT_WARN("ATT MTU exceeded, max %u, wanted %u", - att->chan.tx.mtu, len); + att->chan.tx.mtu, len + sizeof(op)); return NULL; }