How can I get RATE of each 802.11 packet in plug-in module?
How can I get RATE of each 802.11 packet in plug-in module?
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~
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
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...
-
- Posts: 78
- Joined: Thu May 22, 2008 9:36 am
RE: RE: How can I get RATE of each 802.11 packet in plug-in
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
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
Who is online
Users browsing this forum: No registered users and 2 guests