/* NOTE: the phy has been disabled as well as the wfr timer before this is called.  */
void ble_ll_conn_event_halt(void)
/* NOTE: the phy has been disabled as well as the wfr timer before this is called.  */
void ble_ll_conn_event_halt(void)
{
    ble_ll_state_set(BLE_LL_STATE_STANDBY);
    if (g_ble_ll_conn_cur_sm) {
        g_ble_ll_conn_cur_sm->csmflags.cfbit.pkt_rxd = 0;
        ble_ll_event_send(&g_ble_ll_conn_cur_sm->conn_ev_end);
        g_ble_ll_conn_cur_sm = NULL;
    }
}