File tree Expand file tree Collapse file tree 2 files changed +1
-33
lines changed Expand file tree Collapse file tree 2 files changed +1
-33
lines changed Original file line number Diff line number Diff line change @@ -38,23 +38,6 @@ config BT_ATT_RETRY_ON_SEC_ERR
38
38
If an ATT request fails due to insufficient security, the host will
39
39
try to elevate the security level and retry the ATT request.
40
40
41
- config BT_ATT_SENT_CB_AFTER_TX
42
- bool "Delay ATT sent callback until data transmission is done by controller [EXPERIMENTAL]"
43
- select EXPERIMENTAL
44
- help
45
- By default, the BLE stack calls sent callback for ATT data when the
46
- data is passed to BLE controller for transmission. Enabling this
47
- Kconfig option delays calling the sent callback until data
48
- transmission is finished by BLE controller (the callback is called
49
- upon receiving the Number of Completed Packets HCI Event).
50
-
51
- The feature is not available in Zephyr RTOS (it's specific to NCS
52
- Zephyr fork). It is a temporary solution allowing to control flow of
53
- GATT notifications with HID reports for HID use-case.
54
-
55
- Enabling this option may require increasing CONFIG_BT_CONN_TX_MAX in
56
- configuration, because ATT would use additional TX contexts.
57
-
58
41
config BT_EATT
59
42
bool "Enhanced ATT Bearers support [EXPERIMENTAL]"
60
43
depends on BT_L2CAP_ECRED
Original file line number Diff line number Diff line change @@ -328,13 +328,6 @@ static void att_disconnect(struct bt_att_chan *chan)
328
328
}
329
329
}
330
330
331
- static void chan_sent_cb (struct bt_conn * conn , void * user_data , int err )
332
- {
333
- struct net_buf * nb = user_data ;
334
-
335
- net_buf_unref (nb );
336
- }
337
-
338
331
/* In case of success the ownership of the buffer is transferred to the stack
339
332
* which takes care of releasing it when it completes transmitting to the
340
333
* controller.
@@ -428,15 +421,7 @@ static int chan_send(struct bt_att_chan *chan, struct net_buf *buf)
428
421
429
422
data -> att_chan = chan ;
430
423
431
- if (IS_ENABLED (CONFIG_BT_ATT_SENT_CB_AFTER_TX )) {
432
- err = bt_l2cap_send_pdu (& chan -> chan , buf , chan_sent_cb , net_buf_ref (buf ));
433
- if (err ) {
434
- net_buf_unref (buf );
435
- }
436
- } else {
437
- err = bt_l2cap_send_pdu (& chan -> chan , buf , NULL , NULL );
438
- }
439
-
424
+ err = bt_l2cap_send_pdu (& chan -> chan , buf , NULL , NULL );
440
425
if (err ) {
441
426
if (err == - ENOBUFS ) {
442
427
LOG_ERR ("Ran out of TX buffers or contexts." );
You can’t perform that action at this time.
0 commit comments