int wlc_eventq_detach(wlc_eventq_t *eq) { /* Clean up pending events */ wlc_eventq_down(eq); if (eq->timer) { if (eq->tpending) { wl_del_timer(eq->wl, eq->timer); eq->tpending = false; } wl_free_timer(eq->wl, eq->timer); eq->timer = NULL; } ASSERT(wlc_eventq_avail(eq) == false); kfree(eq); return 0; }
void wlapi_free_timer(wlc_phy_shim_info_t *physhim, struct wlapi_timer *t) { wl_free_timer(physhim->wl, (struct wl_timer *)t); }