timestamp info

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <madwifi-devel@...>
Date: Thursday, September 13, 2007 - 3:29 pm

------=_Part_16705_28536469.1189711782316
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello all,

I want to get received timestamp information corresponding to each frame. So
i made some changes in the net80211/ieee80211_input.c. The changes included
creating a file in /proc and having timestamp for a recvd frame
corresponding to its frame seq number. The corresponding statements are..

tstamp = rstamp<<10;
/* I was told shifting has to be done in order to get the timestamp in
microseconds. rstamp is passed to the ieee80211_input as an argument */
rxseq = le16toh(*(__le16 *)wh->i_seq); //Already there in the code
seqno = rxseq>>4;
/* Since the sequence number is only 12 bits */

I printed the rxseq and seqno in the /proc for each pkt..

This is the kind of output i am getting..
(seqno, timestamp)
 3087   3723264
 3088  16039936
 3089  22346752
 3090  26541056
 3091  30735360
 3092   2625536
 3094  24763392
 3095   1376256
 3097   5569536
 3098   9763840
 3099  13958144
 3100   2167808
 3101  18152448
 3102  22346752
 3103  26541056
 3104  30735360

My question is: Since i am getting the seqno in the right order, the
timestamp values shud also follow some kind of ordering. Can someone plz
point out what is wrong here (or what am i doing wrong).. ?

Also, if i have one transmitter who is broadcasting and two receivers in the
same bssid, since their clocks are in synchrony, will i get the same values
(seqno, rtstamp) at both the receivers?

Plz reply ASAP.
Thanks,
Gaurav.

------=_Part_16705_28536469.1189711782316
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello all,<br>
<br>
I want to get received timestamp information corresponding to each frame. So i made
some changes in the net80211/ieee80211_input.c. The changes included
creating a file in /proc and having timestamp for a recvd frame
corresponding to its frame seq number. The corresponding statements
are..<br>
<br>
tstamp = rstamp&lt;&lt;10; <br>
/* I was told shifting has to be done in order to get the timestamp in
microseconds. rstamp is passed to the ieee80211_input as an argument */<br>
rxseq = le16toh(*(__le16 *)wh-&gt;i_seq); //Already there in the code<br>
seqno = rxseq&gt;&gt;4; <br>
/* Since the sequence number is only 12 bits */<br>
<br>
I printed the rxseq and seqno in the /proc for each pkt..<br>
<br>
This is the kind of output i am getting..<br>
(seqno, timestamp)<br>
&nbsp;3087&nbsp;&nbsp; 3723264<br>
&nbsp;3088&nbsp; 16039936<br>
&nbsp;3089&nbsp; 22346752<br>
&nbsp;3090&nbsp; 26541056<br>
&nbsp;3091&nbsp; 30735360<br>
&nbsp;3092&nbsp;&nbsp; 2625536<br>
&nbsp;3094&nbsp; 24763392<br>
&nbsp;3095&nbsp;&nbsp; 1376256<br>
&nbsp;3097&nbsp;&nbsp; 5569536<br>
&nbsp;3098&nbsp;&nbsp; 9763840<br>
&nbsp;3099&nbsp; 13958144<br>
&nbsp;3100&nbsp;&nbsp; 2167808<br>
&nbsp;3101&nbsp; 18152448<br>
&nbsp;3102&nbsp; 22346752<br>
&nbsp;3103&nbsp; 26541056<br>
&nbsp;3104&nbsp; 30735360<br>
<br>
My question is: Since i am getting the seqno in the right order, the
timestamp values shud also follow some kind of ordering. Can someone
plz point out what is wrong here (or what am i doing wrong).. ?<br>
<br>
Also, if i have one transmitter who is broadcasting and two receivers
in the same bssid, since their clocks are in synchrony, will i get the
same values (seqno, rtstamp) at both the receivers?<br>
<br>
Plz reply ASAP.<br>
Thanks,<br>
Gaurav.<br>

------=_Part_16705_28536469.1189711782316--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
timestamp info, Gaurav Chhawchharia, (Thu Sep 13, 3:29 pm)