/* Allocates an mbuf to contain an outgoing ACL data fragment.  */
static struct os_mbuf* ble_hs_hci_frag_alloc(uint16_t frag_size, void *arg)
/* Allocates an mbuf to contain an outgoing ACL data fragment.  */
static struct os_mbuf* ble_hs_hci_frag_alloc(uint16_t frag_size, void *arg)
{
    struct os_mbuf *om;
    om = os_mbuf_get_pkthdr(&ble_hs_hci_frag_mbuf_pool, 0);
    if (om != NULL) {
        om->om_data += BLE_HCI_DATA_HDR_SZ;
        return om;
    }
    om = ble_hs_mbuf_acl_pkt();
    if (om != NULL) {
        return om;
    }
    return NULL;
}