wifi: Add info about recipient in MPDU aggregator asserts

This commit is contained in:
Sébastien Deronne
2024-04-07 14:45:04 +02:00
parent 493bad6164
commit 403e382919

View File

@@ -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());
}