/* Simulates an event on the target iface. 
Do not attempt to simulate multiple events simultaneously  */
static void simulate_event(struct net_if *target, int event)
/* Simulates an event on the target iface. 
Do not attempt to simulate multiple events simultaneously  */
static void simulate_event(struct net_if *target, int event)
{
	k_mutex_lock(&simulated_event_mutex, K_FOREVER);
	simulated_event = event;
	simulated_event_iface = target;
	k_work_reschedule(&simulate_event_work, SIMULATED_EVENT_DELAY_TIME);
	k_mutex_unlock(&simulated_event_mutex);
}