Skip to content

Commit b4760da

Browse files
committed
wifi: Populate radiotap header in order fields are serialized
1 parent f4ddb26 commit b4760da

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ been tested on Linux. As of this release, the latest known version to work with
6161
- (wifi) Fix hardcoded threshold value in EHT PHY to determine per-20MHz CCA indication.
6262
- (wifi) #1295 - Avoid floating point precision issues in wifi-error-rate-models-test.cc
6363
- (internet) !2624 - Fix TCP LEDBAT congestion window growth calculation
64+
- (wifi) #1284 - Fix radiotap for received packets
6465

6566
## Release 3.46.1
6667

src/wifi/helper/wifi-helper.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -354,12 +354,6 @@ WifiPhyHelper::GetRadiotapHeader(Ptr<Packet> packet,
354354

355355
header.SetWifiHeader(IsEht(preamble) ? 2 : 1);
356356

357-
if (signalNoise)
358-
{
359-
header.SetAntennaSignalPower(signalNoise->signal);
360-
header.SetAntennaNoisePower(signalNoise->noise);
361-
}
362-
363357
header.SetTsft(Simulator::Now().GetMicroSeconds());
364358

365359
uint8_t frameFlags = RadiotapHeader::FRAME_FLAG_NONE;
@@ -412,6 +406,12 @@ WifiPhyHelper::GetRadiotapHeader(Ptr<Packet> packet,
412406
}
413407
header.SetChannelFields(channelFields);
414408

409+
if (signalNoise)
410+
{
411+
header.SetAntennaSignalPower(signalNoise->signal);
412+
header.SetAntennaNoisePower(signalNoise->noise);
413+
}
414+
415415
if (modClass == WIFI_MOD_CLASS_HT)
416416
{
417417
RadiotapHeader::McsFields mcsFields{.mcs = mcs};

0 commit comments

Comments
 (0)