We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1386bfc commit 71bdf6cCopy full SHA for 71bdf6c
subsys/bluetooth/host/l2cap.c
@@ -49,6 +49,7 @@
49
50
#define L2CAP_CONN_TIMEOUT K_SECONDS(40)
51
#define L2CAP_DISC_TIMEOUT K_SECONDS(2)
52
+#define L2CAP_RTX_TIMEOUT K_SECONDS(2)
53
54
/* Dedicated pool for disconnect buffers so they are guaranteed to be send
55
* 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,
391
392
}
393
394
/* Don't wait more than the minimum RTX timeout of 2 seconds */
- buf = bt_l2cap_create_pdu_timeout(pool, 0, K_SECONDS(2));
395
+ buf = bt_l2cap_create_pdu_timeout(pool, 0, L2CAP_RTX_TIMEOUT);
396
if (!buf) {
397
/* If it was not possible to allocate a buffer within the
398
* timeout return NULL.
0 commit comments