mutex_init(&g_linux_wlan->hif_cs);
mutex_init(&g_linux_wlan->rxq_cs);
- mutex_init(&g_linux_wlan->txq_cs);
spin_lock_init(&g_linux_wlan->txq_spinlock);
sema_init(&g_linux_wlan->txq_add_to_head_cs, 1);
if (&g_linux_wlan->rxq_cs != NULL)
mutex_destroy(&g_linux_wlan->rxq_cs);
- if (&g_linux_wlan->txq_cs != NULL)
- mutex_destroy(&g_linux_wlan->txq_cs);
-
return 0;
}
void linux_to_wlan(wilc_wlan_inp_t *nwi, linux_wlan_t *nic)
PRINT_D(INIT_DBG, "Linux to Wlan services ...\n");
nwi->os_context.os_private = (void *)nic;
- nwi->os_context.txq_critical_section = (void *)&g_linux_wlan->txq_cs;
nwi->os_func.os_wait = linux_wlan_lock_timeout;
#ifdef WILC_SDIO
/**
* TX queue
**/
- void *txq_lock;
unsigned long txq_spinlock_flags;
**/
memcpy((void *)&g_wlan.os_func, (void *)&inp->os_func, sizeof(wilc_wlan_os_func_t));
memcpy((void *)&g_wlan.io_func, (void *)&inp->io_func, sizeof(wilc_wlan_io_func_t));
- g_wlan.txq_lock = inp->os_context.txq_critical_section;
/***
* host interface init
**/