/* Start WiFi in the netif thread context and wait for function return.  */
void os_hook_send_start(wifi_task_cb handler, struct params_dispatch *p, void *pv)
/* Start WiFi in the netif thread context and wait for function return.  */
void os_hook_send_start(wifi_task_cb handler, struct params_dispatch *p, void *pv)
{
	hif_msg_t msg;
	p->signal_semaphore = 1;
	msg.id = MSG_START;
	msg.handler = handler;
	msg.priv = pv;
	xQueueSend(hif_queue, (void *)&msg, portMAX_DELAY);
	xSemaphoreTake(hif_notify_sem, portMAX_DELAY);
}