/* Function for creating an AD structure with common configuration for EP and LE OOB records. 
This function creates an AD structure and initializes its fields with default content. Only fields that are common for both EP and LE OOB records are filled. */
static void common_adv_data_create(ble_advdata_tk_value_t *const p_tk_value, ble_advdata_t *const p_adv_data)
/* Function for creating an AD structure with common configuration for EP and LE OOB records. 
This function creates an AD structure and initializes its fields with default content. Only fields that are common for both EP and LE OOB records are filled. */
static void common_adv_data_create(ble_advdata_tk_value_t *const p_tk_value, ble_advdata_t *const p_adv_data)
{
    memset((uint8_t *) p_adv_data, 0, sizeof(ble_advdata_t));
    p_adv_data->include_appearance = true;
    p_adv_data->name_type          = BLE_ADVDATA_FULL_NAME;
    p_adv_data->p_tk_value         = NULL;
    if(p_tk_value != NULL)
    {
        p_adv_data->p_tk_value = p_tk_value;
    }
}