wifi: Add msg to asserts related to incorrect MCS and NSS combination

This commit is contained in:
Sébastien Deronne
2016-05-05 11:43:06 +02:00
parent a0424d7506
commit 9817e9d70f

View File

@@ -165,13 +165,11 @@ WifiMode::GetDataRate (uint32_t channelWidth, bool isShortGuardInterval, uint8_t
{
if (item->modClass == WIFI_MOD_CLASS_VHT && item->mcsValue == 9 && nss != 3)
{
//VHT MCS 9 forbidden at 20 MHz (only allowed when NSS = 3)
NS_ASSERT (channelWidth != 20);
NS_ASSERT_MSG (channelWidth != 20, "VHT MCS 9 forbidden at 20 MHz (only allowed when NSS = 3)");
}
if (item->modClass == WIFI_MOD_CLASS_VHT && item->mcsValue == 6 && nss == 3)
{
//VHT MCS 6 forbidden at 80 MHz when NSS = 3
NS_ASSERT (channelWidth != 80);
NS_ASSERT_MSG (channelWidth != 80, "VHT MCS 6 forbidden at 80 MHz when NSS = 3");
}
double symbolRate;
if (!isShortGuardInterval)