From 79a006bfc49aea0ccd299aa57d5e89a0b5a8eb80 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Fri, 20 Jul 2018 18:54:48 +0300 Subject: [PATCH] Replace FATAL_ERROR with ASSERT --- src/wifi/model/minstrel-ht-wifi-manager.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/wifi/model/minstrel-ht-wifi-manager.cc b/src/wifi/model/minstrel-ht-wifi-manager.cc index c1eeb9dba..976aa958f 100644 --- a/src/wifi/model/minstrel-ht-wifi-manager.cc +++ b/src/wifi/model/minstrel-ht-wifi-manager.cc @@ -653,10 +653,7 @@ MinstrelHtWifiManager::DoReportAmpduTxStatus (WifiRemoteStation *st, uint8_t nSu return; } - if (!station->m_isHt) - { - NS_FATAL_ERROR ("A-MPDU Tx Status called but no HT or VHT supported."); - } + NS_ASSERT_MSG (station->m_isHt, "A-MPDU Tx Status called but no HT or VHT supported."); NS_LOG_DEBUG ("DoReportAmpduTxStatus. TxRate=" << station->m_txrate << " SuccMpdus= " << +nSuccessfulMpdus << " FailedMpdus= " << +nFailedMpdus);