|
|
| 168 |
mcsRate = rate - 128; |
168 |
mcsRate = rate - 128; |
| 169 |
|
169 |
|
| 170 |
mcsKnown |= RadiotapHeader::MCS_KNOWN_BANDWIDTH; |
170 |
mcsKnown |= RadiotapHeader::MCS_KNOWN_BANDWIDTH; |
| 171 |
if (txVector.GetChannelWidth () == 40000000) |
171 |
if (txVector.GetChannelWidth () == 40) |
| 172 |
{ |
172 |
{ |
| 173 |
mcsFlags |= RadiotapHeader::MCS_FLAGS_BANDWIDTH_40; |
173 |
mcsFlags |= RadiotapHeader::MCS_FLAGS_BANDWIDTH_40; |
| 174 |
} |
174 |
} |
|
|
| 249 |
|
249 |
|
| 250 |
vhtKnown |= RadiotapHeader::VHT_KNOWN_BANDWIDTH; |
250 |
vhtKnown |= RadiotapHeader::VHT_KNOWN_BANDWIDTH; |
| 251 |
//not all bandwidth values are currently supported |
251 |
//not all bandwidth values are currently supported |
| 252 |
if (txVector.GetChannelWidth () == 40000000) |
252 |
if (txVector.GetChannelWidth () == 40) |
| 253 |
{ |
253 |
{ |
| 254 |
vhtBandwidth = 1; |
254 |
vhtBandwidth = 1; |
| 255 |
} |
255 |
} |
| 256 |
else if (txVector.GetChannelWidth () == 80000000) |
256 |
else if (txVector.GetChannelWidth () == 80) |
| 257 |
{ |
257 |
{ |
| 258 |
vhtBandwidth = 4; |
258 |
vhtBandwidth = 4; |
| 259 |
} |
259 |
} |
| 260 |
else if (txVector.GetChannelWidth () == 160000000) |
260 |
else if (txVector.GetChannelWidth () == 160) |
| 261 |
{ |
261 |
{ |
| 262 |
vhtBandwidth = 11; |
262 |
vhtBandwidth = 11; |
| 263 |
} |
263 |
} |
|
|
| 364 |
mcsRate = rate - 128; |
364 |
mcsRate = rate - 128; |
| 365 |
|
365 |
|
| 366 |
mcsKnown |= RadiotapHeader::MCS_KNOWN_BANDWIDTH; |
366 |
mcsKnown |= RadiotapHeader::MCS_KNOWN_BANDWIDTH; |
| 367 |
if (txVector.GetChannelWidth () == 40000000) |
367 |
if (txVector.GetChannelWidth () == 40) |
| 368 |
{ |
368 |
{ |
| 369 |
mcsFlags |= RadiotapHeader::MCS_FLAGS_BANDWIDTH_40; |
369 |
mcsFlags |= RadiotapHeader::MCS_FLAGS_BANDWIDTH_40; |
| 370 |
} |
370 |
} |
|
|
| 446 |
|
446 |
|
| 447 |
vhtKnown |= RadiotapHeader::VHT_KNOWN_BANDWIDTH; |
447 |
vhtKnown |= RadiotapHeader::VHT_KNOWN_BANDWIDTH; |
| 448 |
//not all bandwidth values are currently supported |
448 |
//not all bandwidth values are currently supported |
| 449 |
if (txVector.GetChannelWidth () == 40000000) |
449 |
if (txVector.GetChannelWidth () == 40) |
| 450 |
{ |
450 |
{ |
| 451 |
vhtBandwidth = 1; |
451 |
vhtBandwidth = 1; |
| 452 |
} |
452 |
} |
| 453 |
else if (txVector.GetChannelWidth () == 80000000) |
453 |
else if (txVector.GetChannelWidth () == 80) |
| 454 |
{ |
454 |
{ |
| 455 |
vhtBandwidth = 4; |
455 |
vhtBandwidth = 4; |
| 456 |
} |
456 |
} |
| 457 |
else if (txVector.GetChannelWidth () == 160000000) |
457 |
else if (txVector.GetChannelWidth () == 160) |
| 458 |
{ |
458 |
{ |
| 459 |
vhtBandwidth = 11; |
459 |
vhtBandwidth = 11; |
| 460 |
} |
460 |
} |