LEFT | RIGHT |
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2005,2006 INRIA | 3 * Copyright (c) 2005,2006 INRIA |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 RadiotapHeader::CHANNEL_FLAG_SPECTRUM_2GHZ | RadiotapHeader::CHANNEL
_FLAG_CCK); | 801 RadiotapHeader::CHANNEL_FLAG_SPECTRUM_2GHZ | RadiotapHeader::CHANNEL
_FLAG_CCK); |
802 } | 802 } |
803 else | 803 else |
804 { | 804 { |
805 radiotaphdr.SetChannelFrequencyAndFlags (GetChannelFrequencyMhz (), | 805 radiotaphdr.SetChannelFrequencyAndFlags (GetChannelFrequencyMhz (), |
806 RadiotapHeader::CHANNEL_FLAG_SPECTRUM_5GHZ | RadiotapHeader::CHANNEL
_FLAG_OFDM); | 806 RadiotapHeader::CHANNEL_FLAG_SPECTRUM_5GHZ | RadiotapHeader::CHANNEL
_FLAG_OFDM); |
807 }··· | 807 }··· |
808 radiotaphdr.SetAntennaSignalPower (signalDbm); | 808 radiotaphdr.SetAntennaSignalPower (signalDbm); |
809 radiotaphdr.SetAntennaNoisePower (noiseDbm); | 809 radiotaphdr.SetAntennaNoisePower (noiseDbm); |
810 NotifyMonitorSniffRx (p, (uint16_t)GetChannelFrequencyMhz (), GetChannelNu
mber (), dataRate500KbpsUnits, isShortPreamble, signalDbm, noiseDbm); | 810 NotifyMonitorSniffRx (p, (uint16_t)GetChannelFrequencyMhz (), GetChannelNu
mber (), dataRate500KbpsUnits, isShortPreamble, signalDbm, noiseDbm); |
811 m_state->SwitchFromRxEndOk (packet, event->GetPayloadMode (), radiotaphdr)
; | 811 m_state->SwitchFromRxEndOk (packet, snrPer.snr, event->GetPayloadMode (),
event->GetPreambleType (), radiotaphdr); |
812 } | 812 } |
813 else | 813 else |
814 { | 814 { |
815 /* failure. */ | 815 /* failure. */ |
816 NotifyRxDrop (packet); | 816 NotifyRxDrop (packet); |
817 m_state->SwitchFromRxEndError (packet, snrPer.snr); | 817 m_state->SwitchFromRxEndError (packet, snrPer.snr); |
818 } | 818 } |
819 } | 819 } |
820 } // namespace ns3 | 820 } // namespace ns3 |
LEFT | RIGHT |