diff --git a/src/wifi/examples/wifi-manager-example.cc b/src/wifi/examples/wifi-manager-example.cc index c184750f1..1aa3bc327 100644 --- a/src/wifi/examples/wifi-manager-example.cc +++ b/src/wifi/examples/wifi-manager-example.cc @@ -103,7 +103,7 @@ struct StandardInfo * \param xMax x maximum * \param yMax y maximum */ - StandardInfo (std::string name, enum WifiPhyStandard standard, uint16_t width, double snrLow, double snrHigh, double xMin, double xMax, double yMax) + StandardInfo (std::string name, WifiPhyStandard standard, uint16_t width, double snrLow, double snrHigh, double xMin, double xMax, double yMax) : m_name (name), m_standard (standard), m_width (width), @@ -115,7 +115,7 @@ struct StandardInfo { } std::string m_name; ///< name - enum WifiPhyStandard m_standard; ///< standard + WifiPhyStandard m_standard; ///< standard uint16_t m_width; ///< channel width double m_snrLow; ///< lowest SNR double m_snrHigh; ///< highest SNR diff --git a/src/wifi/helper/athstats-helper.cc b/src/wifi/helper/athstats-helper.cc index 0216de0d6..5ce03c6ea 100644 --- a/src/wifi/helper/athstats-helper.cc +++ b/src/wifi/helper/athstats-helper.cc @@ -206,7 +206,7 @@ AthstatsWifiTraceSink::TxFinalDataFailedTrace (std::string context, Mac48Address } void -AthstatsWifiTraceSink::PhyRxOkTrace (std::string context, Ptr packet, double snr, WifiMode mode, enum WifiPreamble preamble) +AthstatsWifiTraceSink::PhyRxOkTrace (std::string context, Ptr packet, double snr, WifiMode mode, WifiPreamble preamble) { NS_LOG_FUNCTION (this << context << packet << " mode=" << mode << " snr=" << snr << "preamble=" << preamble); ++m_phyRxOkCount; @@ -227,7 +227,7 @@ AthstatsWifiTraceSink::PhyTxTrace (std::string context, Ptr packet } void -AthstatsWifiTraceSink::PhyStateTrace (std::string context, Time start, Time duration, enum WifiPhy::State state) +AthstatsWifiTraceSink::PhyStateTrace (std::string context, Time start, Time duration, WifiPhy::State state) { NS_LOG_FUNCTION (this << context << start << duration << state); diff --git a/src/wifi/helper/athstats-helper.h b/src/wifi/helper/athstats-helper.h index 608cdd92f..b5a949f1f 100644 --- a/src/wifi/helper/athstats-helper.h +++ b/src/wifi/helper/athstats-helper.h @@ -163,7 +163,7 @@ public: * @param mode * @param preamble */ - void PhyRxOkTrace (std::string context, Ptr packet, double snr, WifiMode mode, enum WifiPreamble preamble); + void PhyRxOkTrace (std::string context, Ptr packet, double snr, WifiMode mode, WifiPreamble preamble); /** * Function to be called when a frame reception by the PHY @@ -197,7 +197,7 @@ public: * @param duration * @param state */ - void PhyStateTrace (std::string context, Time start, Time duration, enum WifiPhy::State state); + void PhyStateTrace (std::string context, Time start, Time duration, WifiPhy::State state); /** * Open a file for output diff --git a/src/wifi/helper/wifi-helper.cc b/src/wifi/helper/wifi-helper.cc index 46680f559..2038a0fb7 100644 --- a/src/wifi/helper/wifi-helper.cc +++ b/src/wifi/helper/wifi-helper.cc @@ -94,7 +94,7 @@ AsciiPhyReceiveSinkWithContext ( Ptr p, double snr, WifiMode mode, - enum WifiPreamble preamble) + WifiPreamble preamble) { NS_LOG_FUNCTION (stream << context << p << snr << mode << preamble); *stream->GetStream () << "r " << Simulator::Now ().GetSeconds () << " " << context << " " << *p << std::endl; @@ -114,7 +114,7 @@ AsciiPhyReceiveSinkWithoutContext ( Ptr p, double snr, WifiMode mode, - enum WifiPreamble preamble) + WifiPreamble preamble) { NS_LOG_FUNCTION (stream << p << snr << mode << preamble); *stream->GetStream () << "r " << Simulator::Now ().GetSeconds () << " " << *p << std::endl; @@ -550,7 +550,7 @@ WifiPhyHelper::PcapSniffRxEvent ( } void -WifiPhyHelper::SetPcapDataLinkType (enum SupportedPcapDataLinkTypes dlt) +WifiPhyHelper::SetPcapDataLinkType (SupportedPcapDataLinkTypes dlt) { switch (dlt) { @@ -718,7 +718,7 @@ WifiHelper::SetRemoteStationManager (std::string type, } void -WifiHelper::SetStandard (enum WifiPhyStandard standard) +WifiHelper::SetStandard (WifiPhyStandard standard) { m_standard = standard; } diff --git a/src/wifi/helper/wifi-helper.h b/src/wifi/helper/wifi-helper.h index be82269bc..0647bf12a 100644 --- a/src/wifi/helper/wifi-helper.h +++ b/src/wifi/helper/wifi-helper.h @@ -120,7 +120,7 @@ public: * * @param dlt The data link type of the pcap file (and packets) to be used */ - void SetPcapDataLinkType (enum SupportedPcapDataLinkTypes dlt); + void SetPcapDataLinkType (SupportedPcapDataLinkTypes dlt); /** * Get the data link type of PCAP traces to be used. @@ -316,7 +316,7 @@ public: * \sa WifiMac::ConfigureStandard * \sa Config::Set */ - virtual void SetStandard (enum WifiPhyStandard standard); + virtual void SetStandard (WifiPhyStandard standard); /** * Helper to enable all WifiNetDevice log components with one statement @@ -342,7 +342,7 @@ public: protected: ObjectFactory m_stationManager; ///< station manager - enum WifiPhyStandard m_standard; ///< wifi standard + WifiPhyStandard m_standard; ///< wifi standard }; } //namespace ns3 diff --git a/src/wifi/model/wifi-mac-queue.cc b/src/wifi/model/wifi-mac-queue.cc index fa8016202..3e925eb69 100644 --- a/src/wifi/model/wifi-mac-queue.cc +++ b/src/wifi/model/wifi-mac-queue.cc @@ -56,7 +56,7 @@ WifiMacQueueItem::GetHeader (void) const } Mac48Address -WifiMacQueueItem::GetAddress (enum WifiMacHeader::AddressType type) const +WifiMacQueueItem::GetAddress (WifiMacHeader::AddressType type) const { if (type == WifiMacHeader::ADDR1) { diff --git a/src/wifi/model/wifi-mac-queue.h b/src/wifi/model/wifi-mac-queue.h index b2761b401..394eb80f5 100644 --- a/src/wifi/model/wifi-mac-queue.h +++ b/src/wifi/model/wifi-mac-queue.h @@ -65,7 +65,7 @@ public: * \param type the type of the address to return * \return the address */ - Mac48Address GetAddress (enum WifiMacHeader::AddressType type) const; + Mac48Address GetAddress (WifiMacHeader::AddressType type) const; /** * \brief Get the timestamp included in this item