/* HCI read buffer size command. Returns the ACL data packet length and num data packets. */
static int ble_ll_hci_le_read_bufsize(uint8_t *rspbuf, uint8_t *rsplen)
/* HCI read buffer size command. Returns the ACL data packet length and num data packets. */
static int ble_ll_hci_le_read_bufsize(uint8_t *rspbuf, uint8_t *rsplen)
{
    struct ble_hci_le_rd_buf_size_rp *rp = (void *) rspbuf;
    rp->data_len = htole16(g_ble_ll_data.ll_acl_pkt_size);
    rp->data_packets = g_ble_ll_data.ll_num_acl_pkts;
    *rsplen = sizeof(*rp);
    return BLE_ERR_SUCCESS;
}