wifi: Remove unused variable m_nTxMpdus in MacLow

This commit is contained in:
Sébastien Deronne
2016-12-02 00:14:21 +01:00
parent c40f5e655a
commit 18df227b4f
2 changed files with 3 additions and 5 deletions

View File

@@ -363,8 +363,7 @@ MacLow::MacLow ()
m_promisc (false),
m_ampdu (false),
m_phyMacLowListener (0),
m_ctsToSelfSupported (false),
m_nTxMpdus (0)
m_ctsToSelfSupported (false)
{
NS_LOG_FUNCTION (this);
m_aggregateQueue = CreateObject<WifiMacQueue> ();
@@ -1531,7 +1530,6 @@ MacLow::ForwardDown (Ptr<const Packet> packet, const WifiMacHeader* hdr, WifiTxV
Ptr <const Packet> dequeuedPacket;
WifiMacHeader newHdr;
WifiMacTrailer fcs;
m_nTxMpdus = m_aggregateQueue->GetSize ();
uint32_t queueSize = m_aggregateQueue->GetSize ();
bool vhtSingleMpdu = false;
bool last = false;
@@ -1680,8 +1678,9 @@ MacLow::BlockAckTimeout (void)
MacLowTransmissionListener *listener = m_listener;
m_listener = 0;
m_ampdu = false;
uint32_t nTxMpdus = m_aggregateQueue->GetSize ();
FlushAggregateQueue ();
listener->MissedBlockAck (m_nTxMpdus);
listener->MissedBlockAck (nTxMpdus);
}
void

View File

@@ -1361,7 +1361,6 @@ private:
Ptr<WifiMacQueue> m_aggregateQueue; //!< Queue used for MPDU aggregation
WifiTxVector m_currentTxVector; //!< TXVECTOR used for the current packet transmission
std::vector<Item> m_txPackets; //!< Contain temporary items to be sent with the next A-MPDU transmission, once RTS/CTS exchange has succeeded. It is not used in other cases.
uint32_t m_nTxMpdus; //!<Holds the number of transmitted MPDUs in the last A-MPDU transmission
};
} //namespace ns3