/* Called when a data packet is received from the controller. This function consumes the supplied mbuf, regardless of the outcome. */
static int ble_hs_rx_data(struct os_mbuf *om, void *arg)
/* Called when a data packet is received from the controller. This function consumes the supplied mbuf, regardless of the outcome. */
static int ble_hs_rx_data(struct os_mbuf *om, void *arg)
{
    int rc;
    ble_hs_flow_track_data_mbuf(om);
    rc = ble_mqueue_put(&ble_hs_rx_q, ble_hs_evq, om);
    if (rc != 0) {
        os_mbuf_free_chain(om);
        return BLE_HS_EOS;
    }
    return 0;
}