remove add_timer() call after mod_timer(). it causes a kernel bug and is not
authorbr1 <br1@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Tue, 20 May 2008 17:16:24 +0000 (17:16 +0000)
committerbr1 <br1@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Tue, 20 May 2008 17:16:24 +0000 (17:16 +0000)
necessary since mod_timer does all the work already. this fixes station mode.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3653 0192ed92-7a03-0410-a25b-9323aeb14dbd

ath/if_ath.c

index 2b25b4220862b6a126537fad4aa4d9a731413c4c..c9ed71c0a358a78fcbf3858dcc19e9be8e4b1720 100644 (file)
@@ -2709,7 +2709,6 @@ static void ath_set_beacon_cal(struct ath_softc *sc, int val)
                del_timer_sync(&sc->sc_cal_ch);
        } else {
                mod_timer(&sc->sc_cal_ch, jiffies + (sc->sc_calinterval_sec * HZ));
-               add_timer(&sc->sc_cal_ch);
        }
        sc->sc_beacon_cal = (val && beacon_cal);
 }