wifi: Cleanup enums

This commit is contained in:
Sébastien Deronne
2018-02-17 00:10:33 +01:00
parent 7208161858
commit cd389fdf04
7 changed files with 15 additions and 15 deletions

View File

@@ -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

View File

@@ -206,7 +206,7 @@ AthstatsWifiTraceSink::TxFinalDataFailedTrace (std::string context, Mac48Address
}
void
AthstatsWifiTraceSink::PhyRxOkTrace (std::string context, Ptr<const Packet> packet, double snr, WifiMode mode, enum WifiPreamble preamble)
AthstatsWifiTraceSink::PhyRxOkTrace (std::string context, Ptr<const Packet> 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<const Packet> 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);

View File

@@ -163,7 +163,7 @@ public:
* @param mode
* @param preamble
*/
void PhyRxOkTrace (std::string context, Ptr<const Packet> packet, double snr, WifiMode mode, enum WifiPreamble preamble);
void PhyRxOkTrace (std::string context, Ptr<const Packet> 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

View File

@@ -94,7 +94,7 @@ AsciiPhyReceiveSinkWithContext (
Ptr<const Packet> 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<const Packet> 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;
}

View File

@@ -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

View File

@@ -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)
{

View File

@@ -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