From Marco.Steger at v2c2.at  Thu Jul 16 01:03:54 2015
From: Marco.Steger at v2c2.at (Steger, Marco)
Date: Thu, 16 Jul 2015 08:03:54 +0000
Subject: Access payload data in ATH9k_HTC firmware
Message-ID: <FCA3D43B2F237E43903BB6931BE0F212677A628D@EX2010MX02.v2c2.at>

Hi all,

for some experiments it would be great to access the payload (the real data I want to send/receive) before sending a new message and after reading a new message. How can I access/change this data in the firmware? Which file will be interesting for that? 
I think in ar5416_hw.c I would have the best chance for that but currently I don't have a clue where to start.

Would be great if you can help me with that.

Best regards and thanks in advance,
Marco


Firmenname: Kompetenzzentrum - Das virtuelle Fahrzeug, Forschungsgesellschaft mbH
Rechtsform: Gesellschaft mit beschr?nkter Haftung
Firmensitz: A-8010 Graz, Inffeldgasse 21/A
Firmenbuchnummer: 224755y
Firmenbuchgericht: Landesgericht f?rZRS Graz



From Marco.Steger at v2c2.at  Fri Jul 24 01:32:25 2015
From: Marco.Steger at v2c2.at (Steger, Marco)
Date: Fri, 24 Jul 2015 08:32:25 +0000
Subject: AW: Access payload data in ATH9k_HTC firmware
In-Reply-To: <55A79BCF.6080505@rempel-privat.de>
References: <FCA3D43B2F237E43903BB6931BE0F212677A628D@EX2010MX02.v2c2.at>
 <55A79BCF.6080505@rempel-privat.de>
Message-ID: <FCA3D43B2F237E43903BB6931BE0F212677A7148@EX2010MX02.v2c2.at>

Hi Oleksij,

sorry for the very late answer. I had some problems with my Outlook properties. (Your mail was in the Spam directory... :) )
Thanks for your answer!!

>Do you have doc for ar9271?
I found it on the wikidevi as you suggested today. Till today I used the ath_tx_desc and ath_rx_desc structs to get the data pointer. I will check later if this is the correct way to do it.
I tried to use the timestamps on the TL-WN722N device to get a accurate value for the rtt time between two nodes (using IEEE802.11s mesh network). But the results look quite strange: 

I use to nodes and on each node I store the timestamp of when I send the rtt-request (on master node) and receive the request on the slave node. Then I direct send back a response and store the timestamp of the sending again on the slave and finally the timestamp when the response reach the master.
Using:  
ads->AR_SendTimestamp and rx_stats->rs_tstamp

So I can compute the time need on the slave from receiving the request to sending the response as well as the time between sending the request and receiving the response (on the master)
The 'real' RTT should now be: RTT = RRT(request to response on master) - Time at Slave(receiving request to sending response). 
But in my measurements I saw that the time interval on the slave is bigger the entire time from sending the request to receiving the response on the master. And this is not possible... (Or?) 

Do you have any idea what could probably be the problem here?

Would be really great if you can help me with that!!

Best regards,
Marco
 	

>-----Urspr?ngliche Nachricht-----
>Von: Oleksij Rempel [mailto:linux at rempel-privat.de]
>Gesendet: Donnerstag, 16. Juli 2015 13:56
>An: Steger, Marco
>Betreff: Re: Access payload data in ATH9k_HTC firmware
>
>Am 16.07.2015 um 10:03 schrieb Steger, Marco:
>> Hi all,
>>
>> for some experiments it would be great to access the payload (the real data I
>want to send/receive) before sending a new message and after reading a new
>message. How can I access/change this data in the firmware? Which file will be
>interesting for that?
>> I think in ar5416_hw.c I would have the best chance for that but currently I
>don't have a clue where to start.
>>
>> Would be great if you can help me with that.
>>
>> Best regards and thanks in advance,
>> Marco
>
>Do you have doc for ar9271? Try to find it on wikidevi. If no luck, i can send you.
>
>
>>
>> Firmenname: Kompetenzzentrum - Das virtuelle Fahrzeug,
>> Forschungsgesellschaft mbH
>> Rechtsform: Gesellschaft mit beschr?nkter Haftung
>> Firmensitz: A-8010 Graz, Inffeldgasse 21/A
>> Firmenbuchnummer: 224755y
>> Firmenbuchgericht: Landesgericht f?rZRS Graz
>>
>>
>> _______________________________________________
>> ath9k_htc_fw mailing list
>> ath9k_htc_fw at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/ath9k_htc_fw
>>
>
>
>--
>Regards,
>Oleksij


