From 403e382919d62be4a3ea314b0f8bc2641fe17368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Sun, 7 Apr 2024 14:45:04 +0200 Subject: [PATCH] wifi: Add info about recipient in MPDU aggregator asserts --- src/wifi/model/mpdu-aggregator.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/wifi/model/mpdu-aggregator.cc b/src/wifi/model/mpdu-aggregator.cc index 3ee04c51b..9169d35ff 100644 --- a/src/wifi/model/mpdu-aggregator.cc +++ b/src/wifi/model/mpdu-aggregator.cc @@ -147,13 +147,14 @@ MpduAggregator::GetMaxAmpduSize(Mac48Address recipient, // format used to transmit the A-MPDU if (modulation >= WIFI_MOD_CLASS_EHT) { - NS_ABORT_MSG_IF(!ehtCapabilities, "EHT Capabilities element not received"); + NS_ABORT_MSG_IF(!ehtCapabilities, + "EHT Capabilities element not received for " << recipient); maxAmpduSize = std::min(maxAmpduSize, ehtCapabilities->GetMaxAmpduLength()); } else if (modulation >= WIFI_MOD_CLASS_HE) { - NS_ABORT_MSG_IF(!heCapabilities, "HE Capabilities element not received"); + NS_ABORT_MSG_IF(!heCapabilities, "HE Capabilities element not received for " << recipient); maxAmpduSize = std::min(maxAmpduSize, heCapabilities->GetMaxAmpduLength()); if (he6GhzCapabilities) @@ -163,13 +164,14 @@ MpduAggregator::GetMaxAmpduSize(Mac48Address recipient, } else if (modulation == WIFI_MOD_CLASS_VHT) { - NS_ABORT_MSG_IF(!vhtCapabilities, "VHT Capabilities element not received"); + NS_ABORT_MSG_IF(!vhtCapabilities, + "VHT Capabilities element not received for " << recipient); maxAmpduSize = std::min(maxAmpduSize, vhtCapabilities->GetMaxAmpduLength()); } else if (modulation == WIFI_MOD_CLASS_HT) { - NS_ABORT_MSG_IF(!htCapabilities, "HT Capabilities element not received"); + NS_ABORT_MSG_IF(!htCapabilities, "HT Capabilities element not received for " << recipient); maxAmpduSize = std::min(maxAmpduSize, htCapabilities->GetMaxAmpduLength()); }