Skip to content

Commit 749c09e

Browse files
jori-nordiccvinayak
authored andcommitted
[nrf fromtree] Revert "Bluetooth: att: don't re-use the ATT buffer for confirmations"
This reverts commit 4cd0748a407b118145916393a954231ee11abb1e. Signed-off-by: Jonathan Rico <[email protected]> (cherry picked from commit 41f96a6dcb971cffaa2ca1a8322573804fa1537e)
1 parent c82a387 commit 749c09e

File tree

1 file changed

+3
-5
lines changed
  • subsys/bluetooth/host

1 file changed

+3
-5
lines changed

subsys/bluetooth/host/att.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -670,12 +670,10 @@ static struct net_buf *bt_att_chan_create_pdu(struct bt_att_chan *chan, uint8_t
670670

671671
switch (att_op_get_type(op)) {
672672
case ATT_RESPONSE:
673-
/* Use a timeout only when responding */
674-
timeout = BT_ATT_TIMEOUT;
675-
re_use = true;
676-
break;
677673
case ATT_CONFIRMATION:
674+
/* Use a timeout only when responding/confirming */
678675
timeout = BT_ATT_TIMEOUT;
676+
re_use = true;
679677
break;
680678
default:
681679
timeout = K_FOREVER;
@@ -703,7 +701,7 @@ static struct net_buf *bt_att_chan_create_pdu(struct bt_att_chan *chan, uint8_t
703701
* This is better than an assert as an assert would
704702
* allow a peer to DoS us.
705703
*/
706-
LOG_ERR("already processing a REQ/RSP on chan %p", chan);
704+
LOG_ERR("already processing a transaction on chan %p", chan);
707705

708706
return NULL;
709707
}

0 commit comments

Comments
 (0)