From: thomas Date: Thu, 23 Feb 2012 12:38:34 +0100 Subject: [ath9k-devel] generic timers in ath9k ? Message-ID: <4F46253A.3030403@net.t-labs.tu-berlin.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Hi all, In the last hours I tried to set up a simple example, where I can call a function triggered by the generic timers in ath9k. But I can not get it to work.. so maybe you can give me a hint. Here is what I have tried the following: sc->reg_timer = ath_gen_timer_alloc(sc->sc_ah, reg_timer, reg_timer, (void *) sc, AR_FIRST_NDP_TIMER + 1); ath9k_gen_timer_start(sc->sc_ah, sc->reg_timer, 0, 1000000); or ath9k_hw_gen_timer_start(sc->sc_ah, sc->reg_timer, 0, 1000000); It seems that the interrupt is not triggered and no bit is set in ah->intr_gen_timer_trigger. Did I miss here something ??? Thx for helping, Thomas ps: In principle I would like to trigger my own function faster than the cpu timer interrupt. And therefore I plan to use the hardware timers on the Atheros 802.11n hardware and register my functions to one of the generic timers. From the code, I saw that the only peace of code that make use of the generic timers is the bluetooth coexistence part. But even this seem not to be triggered.