Print this page
XXXX introduce drv_sectohz

*** 2472,2482 **** in->in_txrate = nrate; rsc->sc_tx_ok = rsc->sc_tx_err = rsc->sc_tx_retr = 0; mutex_exit(&rsc->sc_genlock); if (ic->ic_state == IEEE80211_S_RUN) rsc->sc_ratectl_id = timeout(rtw_rate_ctl, ic, ! drv_usectohz(1000000)); } static int32_t rtw_new_state(ieee80211com_t *ic, enum ieee80211_state nstate, int arg) { --- 2472,2482 ---- in->in_txrate = nrate; rsc->sc_tx_ok = rsc->sc_tx_err = rsc->sc_tx_retr = 0; mutex_exit(&rsc->sc_genlock); if (ic->ic_state == IEEE80211_S_RUN) rsc->sc_ratectl_id = timeout(rtw_rate_ctl, ic, ! drv_sectohz(1)); } static int32_t rtw_new_state(ieee80211com_t *ic, enum ieee80211_state nstate, int arg) {
*** 2531,2541 **** case IEEE80211_M_STA: RTW_DPRINTF(RTW_DEBUG_ATTACH, "rtw_new_state: sta\n"); rtw_join_bss(rsc, ic->ic_bss->in_bssid, 0); rsc->sc_ratectl_id = timeout(rtw_rate_ctl, ic, ! drv_usectohz(1000000)); break; case IEEE80211_M_MONITOR: break; } rtw_set_nettype(rsc, ic->ic_opmode); --- 2531,2541 ---- case IEEE80211_M_STA: RTW_DPRINTF(RTW_DEBUG_ATTACH, "rtw_new_state: sta\n"); rtw_join_bss(rsc, ic->ic_bss->in_bssid, 0); rsc->sc_ratectl_id = timeout(rtw_rate_ctl, ic, ! drv_sectohz(1)); break; case IEEE80211_M_MONITOR: break; } rtw_set_nettype(rsc, ic->ic_opmode);