Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/net80211/net80211.c
          +++ new/usr/src/uts/common/io/net80211/net80211.c
↓ open down ↓ 303 lines elided ↑ open up ↑
 304  304  
 305  305  /*
 306  306   * Start Watchdog timer. After count down timer(s), ic_watchdog
 307  307   * will be called
 308  308   */
 309  309  void
 310  310  ieee80211_start_watchdog(ieee80211com_t *ic, uint32_t timer)
 311  311  {
 312  312          if (ic->ic_watchdog_timer == 0 && ic->ic_watchdog != NULL) {
 313  313                  ic->ic_watchdog_timer = timeout(ic->ic_watchdog, ic,
 314      -                    drv_usectohz(1000000 * timer));
      314 +                    drv_sectohz(timer));
 315  315          }
 316  316  }
 317  317  
 318  318  /*
 319  319   * Stop watchdog timer.
 320  320   */
 321  321  void
 322  322  ieee80211_stop_watchdog(ieee80211com_t *ic)
 323  323  {
 324  324          if (ic->ic_watchdog_timer != 0) {
↓ open down ↓ 545 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX