|
|
| 212 |
ampduStatusFlags |= RadiotapHeader::A_MPDU_STATUS_LAST_KNOWN; |
212 |
ampduStatusFlags |= RadiotapHeader::A_MPDU_STATUS_LAST_KNOWN; |
| 213 |
/* For PCAP file, MPDU Delimiter and Padding should be removed by the MAC Driver */ |
213 |
/* For PCAP file, MPDU Delimiter and Padding should be removed by the MAC Driver */ |
| 214 |
AmpduSubframeHeader hdr; |
214 |
AmpduSubframeHeader hdr; |
| 215 |
uint32_t extractedLength; |
|
|
| 216 |
p->RemoveHeader (hdr); |
215 |
p->RemoveHeader (hdr); |
| 217 |
extractedLength = hdr.GetLength (); |
|
|
| 218 |
p = p->CreateFragment (0, static_cast<uint32_t> (extractedLength)); |
| 219 |
if (aMpdu.type == LAST_MPDU_IN_AGGREGATE || (hdr.GetEof () == true && hdr.GetLength () > 0)) |
216 |
if (aMpdu.type == LAST_MPDU_IN_AGGREGATE || (hdr.GetEof () == true && hdr.GetLength () > 0)) |
| 220 |
{ |
217 |
{ |
| 221 |
ampduStatusFlags |= RadiotapHeader::A_MPDU_STATUS_LAST; |
218 |
ampduStatusFlags |= RadiotapHeader::A_MPDU_STATUS_LAST; |
|
|
| 409 |
ampduStatusFlags |= RadiotapHeader::A_MPDU_STATUS_LAST_KNOWN; |
406 |
ampduStatusFlags |= RadiotapHeader::A_MPDU_STATUS_LAST_KNOWN; |
| 410 |
/* For PCAP file, MPDU Delimiter and Padding should be removed by the MAC Driver */ |
407 |
/* For PCAP file, MPDU Delimiter and Padding should be removed by the MAC Driver */ |
| 411 |
AmpduSubframeHeader hdr; |
408 |
AmpduSubframeHeader hdr; |
| 412 |
uint32_t extractedLength; |
|
|
| 413 |
p->RemoveHeader (hdr); |
409 |
p->RemoveHeader (hdr); |
| 414 |
extractedLength = hdr.GetLength (); |
|
|
| 415 |
p = p->CreateFragment (0, static_cast<uint32_t> (extractedLength)); |
| 416 |
if (aMpdu.type == LAST_MPDU_IN_AGGREGATE || (hdr.GetEof () == true && hdr.GetLength () > 0)) |
410 |
if (aMpdu.type == LAST_MPDU_IN_AGGREGATE || (hdr.GetEof () == true && hdr.GetLength () > 0)) |
| 417 |
{ |
411 |
{ |
| 418 |
ampduStatusFlags |= RadiotapHeader::A_MPDU_STATUS_LAST; |
412 |
ampduStatusFlags |= RadiotapHeader::A_MPDU_STATUS_LAST; |