/* Called to make a LL control channel map request PDU. */
static void ble_ll_ctrl_chanmap_req_make(struct ble_ll_conn_sm *connsm, uint8_t *pyld)
/* Called to make a LL control channel map request PDU. */
static void ble_ll_ctrl_chanmap_req_make(struct ble_ll_conn_sm *connsm, uint8_t *pyld)
{
    memcpy(pyld, g_ble_ll_conn_params.master_chan_map, BLE_LL_CONN_CHMAP_LEN);
    memcpy(connsm->req_chanmap, pyld, BLE_LL_CONN_CHMAP_LEN);
    connsm->chanmap_instant = connsm->event_cntr + connsm->slave_latency + 6 + 1;
    put_le16(pyld + BLE_LL_CONN_CHMAP_LEN, connsm->chanmap_instant);
    connsm->csmflags.cfbit.chanmap_update_scheduled = 1;
}