* [ath9k-devel] How can i distinguish TXOK and TXDESC
@ 2012-06-17 13:53 lastnoname
2012-06-17 18:58 ` Adrian Chadd
0 siblings, 1 reply; 3+ messages in thread
From: lastnoname @ 2012-06-17 13:53 UTC (permalink / raw)
To: ath9k-devel
> Hello every body!
> I've been working with madwifi for days, I want to measure the
> time elapse from the time a frame is sent off and the time the sent
> packet is acked. I tried to read the AR_ISR register in the ath_intr
> function to get in status of interrupt. But I found that most of
> the interrupts which signed as HAL_INT_TX by ath_hal_getisr are
> mixture of AR_ISR_TXOK_INT and AR_ISR_TXDESC_INT. How can I
> distinguish these two interrupts(AR_ISR_TXOK_INT and
> AR_ISR_TXDESC_INT)?
> Thanks all!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20120617/0d2fbdfe/attachment.htm
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ath9k-devel] How can i distinguish TXOK and TXDESC
2012-06-17 13:53 [ath9k-devel] How can i distinguish TXOK and TXDESC lastnoname
@ 2012-06-17 18:58 ` Adrian Chadd
[not found] ` <001401cd4d06$0893aa10$6f00a8c0@what>
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Chadd @ 2012-06-17 18:58 UTC (permalink / raw)
To: ath9k-devel
HAL_INT_TX? ath_hal_getisr() ? Which codebase are you using?
Adrian
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ath9k-devel] How can i distinguish TXOK and TXDESC
[not found] ` <001401cd4d06$0893aa10$6f00a8c0@what>
@ 2012-06-18 4:10 ` Adrian Chadd
0 siblings, 0 replies; 3+ messages in thread
From: Adrian Chadd @ 2012-06-18 4:10 UTC (permalink / raw)
To: ath9k-devel
Hi,
Right. So you'll have to just add a new HAL_TX_INT field to
distinguish TXOK and TXDESC.
Or, you can just hack the HAL get interrupts function to return a
bitmap of which _hardware_ interrupts were set ,rather than just the
HAL interrupt flags.
On 17 June 2012 20:54, lastnoname <lastnoname@163.com> wrote:
>
> ----- Original Message -----
> From: "Adrian Chadd" <adrian@freebsd.org>
> To: "lastnoname" <lastnoname@163.com>
> Cc: <ath9k-devel@lists.ath9k.org>
> Sent: Monday, June 18, 2012 2:58 AM
> Subject: Re: [ath9k-devel] How can i distinguish TXOK and TXDESC
>
>
>> HAL_INT_TX? ath_hal_getisr() ? Which codebase are you using?
>>
>>
>> Adrian
>
> I'm using madwifi-0.9.4 openhal , but it doesn't matter. The ath_hal_getisr() function in madwifi euqls ath_isr() in ath9k, and the HAL_INT_TX interrupt mask equals ATH9K_INT_TX in ath9k.
> so ?my question can be asked as follows:
> The get_isr function combines the AR_ISR_TXOK ,AR_ISR_TXERR , AR_ISR_TXEOL and AR_ISR_TXDESC interrupts as a ATH9K_INT_TX mask. so I cannot get the actual interrupts from the get_isr ?function.
> I tried to destinguish the interrupts AR_ISR_TXOK ,AR_ISR_TXERR , AR_ISR_TXEOL and AR_ISR_TXDESC. I've tried to read the AR_ISR_S0 and AR_ISR_S1 registers, and ?found that the AR_ISR_TXOK interrupt always appears togerther with the AR_ISR_TXDESC interrupt, though the AR_IMR,AR_IMR_S0 and AR_IMR_S1 interrupt related bits are set. I have no idea how to distinguish the time when the frame is being transmitted(AR_ISR_TXDESC interrupt theoretically) ?and when the frame is acked (AR_ISR_TXOK interrupt theoretically). ?I just want to measure the time delay between such two events.
> So, How can i distinguish TXOK and TXDESC interupts?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-18 4:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-17 13:53 [ath9k-devel] How can i distinguish TXOK and TXDESC lastnoname
2012-06-17 18:58 ` Adrian Chadd
[not found] ` <001401cd4d06$0893aa10$6f00a8c0@what>
2012-06-18 4:10 ` Adrian Chadd
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.