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 <mariusz.skamra@tieto.com>
This commit is contained in:
parent
962462629e
commit
6e28748e3e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue