WifiRemoteStation needs virtual destructor for subclassing

This commit is contained in:
Tom Henderson
2014-11-20 09:39:23 -08:00
parent 497cb5cd28
commit c961293eed
2 changed files with 10 additions and 0 deletions

View File

@@ -1490,4 +1490,10 @@ WifiRemoteStationInfo::GetFrameErrorRate () const
{
return m_failAvg;
}
WifiRemoteStation::~WifiRemoteStation ()
{
NS_LOG_FUNCTION (this);
}
} // namespace ns3

View File

@@ -1011,9 +1011,13 @@ struct WifiRemoteStationState
* of association status if we are in an infrastructure
* network and to perform the selection of tx parameters
* on a per-packet basis.
*
* This class is typically subclassed and extended by
* rate control implementations
*/
struct WifiRemoteStation
{
virtual ~WifiRemoteStation ();
WifiRemoteStationState *m_state; //!< Remote station state
uint32_t m_ssrc; //!< STA short retry count
uint32_t m_slrc; //!< STA long retry count