Initially set sc_lastcal to now. The previous code set it to INITIAL_JIFFIES which is the initial value at _boot_ time not module load time.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3574 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
mentor 2008-04-25 13:40:31 +00:00
parent ef6d84125b
commit c29842a728

View File

@ -791,8 +791,8 @@ ath_attach(u_int16_t devid, struct net_device *dev, HAL_BUS_TAG tag)
sc->sc_grpplq.axq_qnum = -1;
sc->sc_xrtxq = ath_txq_setup(sc, HAL_TX_QUEUE_DATA, HAL_XR_DATA);
#endif
sc->sc_lastcal = INITIAL_JIFFIES; /* see jiffies.h */
sc->sc_calinterval_sec = ATH_SHORT_CALINTERVAL_SECS;
sc->sc_lastcal = jiffies;
/*
* Special case certain configurations. Note the
@ -5313,9 +5313,9 @@ ath_beacon_send(struct ath_softc *sc, int *needmark, uint64_t hw_tsf)
printk("%s: %s: now=%lu lastcal=%lu expires=%lu remaining=%u ms\n",
SC_DEV_NAME(sc),
__FUNCTION__,
jiffies - INITIAL_JIFFIES,
(sc->sc_lastcal) - INITIAL_JIFFIES,
(sc->sc_lastcal + (sc->sc_calinterval_sec * HZ)) - INITIAL_JIFFIES,
jiffies
(sc->sc_lastcal)
(sc->sc_lastcal + (sc->sc_calinterval_sec * HZ))
jiffies_to_msecs(sc->sc_lastcal + (sc->sc_calinterval_sec * HZ) - jiffies));
}
#endif