mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-13 12:40:01 +00:00
nimble/hci: Modifying ACL Buf size based on BLE 5.1 Standard
This commit is contained in:
committed by
Andrzej Kaczmarek
parent
fd27d2fdc5
commit
4a8946786e
@@ -407,13 +407,17 @@ ble_hs_hci_rx_evt(uint8_t *hci_ev, void *arg)
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculates the largest ACL payload that the controller can accept. This is
|
||||
* everything in an ACL data packet except for the ACL header.
|
||||
* Calculates the largest ACL payload that the controller can accept.
|
||||
*/
|
||||
static uint16_t
|
||||
ble_hs_hci_max_acl_payload_sz(void)
|
||||
{
|
||||
return ble_hs_hci_buf_sz - BLE_HCI_DATA_HDR_SZ;
|
||||
/* As per BLE 5.1 Standard, Vol. 2, Part E, section 7.8.2:
|
||||
* The LE_Read_Buffer_Size command is used to read the maximum size of the
|
||||
* data portion of HCI LE ACL Data Packets sent from the Host to the
|
||||
* Controller.
|
||||
*/
|
||||
return ble_hs_hci_buf_sz;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user