------=_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<<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->i_seq); //Already there in the code<br> seqno = rxseq>>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> 3087 3723264<br> 3088 16039936<br> 3089 22346752<br> 3090 26541056<br> 3091 30735360<br> 3092 2625536<br> 3094 24763392<br> 3095 1376256<br> 3097 5569536<br> 3098 9763840<br> 3099 13958144<br> 3100 2167808<br> 3101 18152448<br> 3102 22346752<br> 3103 26541056<br> 3104 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--
| hooanon05 | [PATCH 67/67] merge aufs |
| Greg Kroah-Hartman | [PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt |
| monstr | [PATCH 33/52] [microblaze] bug headers files |
| Oliver Pinter | Re: x86: 4kstacks default |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| David Miller | [GIT]: Networking |
| Natalie Protasevich | [BUG] New Kernel Bugs |
