Page 1 of 1

How can I get RATE of each 802.11 packet in plug-in module?

Posted: Thu Feb 19, 2009 1:43 am
by frog
I want to write a plug-in module to mointor rate changing of traffic from a specific DUT. How can I get the rate field of each packet?

I found a related "DataRate" data structure in "Wireless80211PrivateHeader" which is defined in "MediaSpecificHeaderAll". I can't find any related reference about this media specific header. Does the pointer of "fMediaSpecInfoBlock" in PluginPacket point to this "MediaSpecificHeaderAll"?

For example:
in funcion OnProcessPacket()

"
const PluginPacket* inPacket;


inPacket = ioParams->fPacket;

if (inPacket->fMediaSpecInfoBlock) {
const MediaSpecificHeaderAll* prMediaSpecificHeader;

prMediaSpecificHeader = (const MediaSpecificHeaderAll*)inPacket->fMediaSpecInfoBlock;
...
}

....
"

Is there any related plug-in module that I can reference?

Thanks~

RE: How can I get RATE of each 802.11 packet in plug-in modu

Posted: Tue Feb 24, 2009 5:51 am
by frog
In short, how can I reference the DataRate field of each 802.11 packet in plug-in module? Is there anyone who can tell me?...please...

RE: RE: How can I get RATE of each 802.11 packet in plug-in

Posted: Tue May 18, 2010 8:38 am
by Spacepacket
Hi frog,

You are right on with your example. Taking it from there, just use prMediaSpecificHeader to access the datarate field like this:

UInt8 nDataRate = prMediaSpecificHeader->wireless.DataRate;

-Spacepacket