Skip to content

Commit 9a111df

Browse files
Vudentzjhedberg
authored andcommitted
Bluetooth: L2CAP: Add define for signalling timeout
This adds a define for the so called RTX timeout. Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 1a7f85c commit 9a111df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

subsys/bluetooth/host/l2cap.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949

5050
#define L2CAP_CONN_TIMEOUT K_SECONDS(40)
5151
#define L2CAP_DISC_TIMEOUT K_SECONDS(2)
52+
#define L2CAP_RTX_TIMEOUT K_SECONDS(2)
5253

5354
/* Dedicated pool for disconnect buffers so they are guaranteed to be send
5455
* even in case of data congestion due to flooding.
@@ -391,7 +392,7 @@ static struct net_buf *l2cap_create_le_sig_pdu(struct net_buf *buf,
391392
}
392393

393394
/* Don't wait more than the minimum RTX timeout of 2 seconds */
394-
buf = bt_l2cap_create_pdu_timeout(pool, 0, K_SECONDS(2));
395+
buf = bt_l2cap_create_pdu_timeout(pool, 0, L2CAP_RTX_TIMEOUT);
395396
if (!buf) {
396397
/* If it was not possible to allocate a buffer within the
397398
* timeout return NULL.

0 commit comments

Comments
 (0)