From c961293eed51743b79315435cb97c5bf39756ab4 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Thu, 20 Nov 2014 09:39:23 -0800 Subject: [PATCH] WifiRemoteStation needs virtual destructor for subclassing --- src/wifi/model/wifi-remote-station-manager.cc | 6 ++++++ src/wifi/model/wifi-remote-station-manager.h | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/src/wifi/model/wifi-remote-station-manager.cc b/src/wifi/model/wifi-remote-station-manager.cc index 2d1269f48..f57696323 100644 --- a/src/wifi/model/wifi-remote-station-manager.cc +++ b/src/wifi/model/wifi-remote-station-manager.cc @@ -1490,4 +1490,10 @@ WifiRemoteStationInfo::GetFrameErrorRate () const { return m_failAvg; } + +WifiRemoteStation::~WifiRemoteStation () +{ + NS_LOG_FUNCTION (this); +} + } // namespace ns3 diff --git a/src/wifi/model/wifi-remote-station-manager.h b/src/wifi/model/wifi-remote-station-manager.h index 2ae7f1502..6d20d40cd 100644 --- a/src/wifi/model/wifi-remote-station-manager.h +++ b/src/wifi/model/wifi-remote-station-manager.h @@ -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