nimble/hci: Modifying ACL Buf size based on BLE 5.1 Standard

This commit is contained in:
mfarag13
2019-04-05 10:35:47 +02:00
committed by Andrzej Kaczmarek
parent fd27d2fdc5
commit 4a8946786e
+7 -3
View File
@@ -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 * Calculates the largest ACL payload that the controller can accept.
* everything in an ACL data packet except for the ACL header.
*/ */
static uint16_t static uint16_t
ble_hs_hci_max_acl_payload_sz(void) 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;
} }
/** /**