How can i distinguish TXOK and TXDESC
Quoted 10 lines
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 theAR_ISRregister in theath_intr
function to get in status of interrupt. But I found that most of
the interrupts which signed asHAL_INT_TXbyath_hal_getisrare mixture ofAR_ISR_TXOK_INTandAR_ISR_TXDESC_INT. How can I distinguish these twointerrupts(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
HAL_INT_TX? ath_hal_getisr() ? Which codebase are you using?
Adrian
A message that is not in the archive (sent off-list or not yet received): 001401cd4d06$0893aa10$6f00a8c0@what
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.
Quoted 19 lines · lastnoname
----- Original Message -----
From: "Adrian Chadd" <[email protected]>
To: "lastnoname" <[email protected]>
Cc: <[email protected]>
Sent: Monday, June 18, 2012 2:58 AM
Subject: Re: [ath9k-devel] How can i distinguish TXOK and TXDESCQuoted 4 lines
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 euqlsath_isr()in ath9k, and theHAL_INT_TXinterrupt mask equalsATH9K_INT_TXin ath9k.
so ?my question can be asked as follows:
Theget_isrfunction combines theAR_ISR_TXOK,AR_ISR_TXERR ,AR_ISR_TXEOLandAR_ISR_TXDESCinterrupts as aATH9K_INT_TXmask. so I cannot get the actual interrupts from theget_isr?function.
I tried to destinguish the interruptsAR_ISR_TXOK,AR_ISR_TXERR ,AR_ISR_TXEOLandAR_ISR_TXDESC. I've tried to read theAR_ISR_S0andAR_ISR_S1registers, and ?found that theAR_ISR_TXOKinterrupt always appears togerther with theAR_ISR_TXDESCinterrupt, though the AR_IMR,AR_IMR_S0 andAR_IMR_S1interrupt related bits are set. I have no idea how to distinguish the time when the frame is beingtransmitted(AR_ISR_TXDESC interrupt theoretically)?and when the frame is acked (AR_ISR_TXOKinterrupt theoretically). ?I just want to measure the time delay between such two events. So, How can i distinguish TXOK and TXDESC interupts?