Print this page
XXXX introduce drv_sectohz
*** 309,319 ****
void
ieee80211_start_watchdog(ieee80211com_t *ic, uint32_t timer)
{
if (ic->ic_watchdog_timer == 0 && ic->ic_watchdog != NULL) {
ic->ic_watchdog_timer = timeout(ic->ic_watchdog, ic,
! drv_usectohz(1000000 * timer));
}
}
/*
* Stop watchdog timer.
--- 309,319 ----
void
ieee80211_start_watchdog(ieee80211com_t *ic, uint32_t timer)
{
if (ic->ic_watchdog_timer == 0 && ic->ic_watchdog != NULL) {
ic->ic_watchdog_timer = timeout(ic->ic_watchdog, ic,
! drv_sectohz(timer));
}
}
/*
* Stop watchdog timer.