Remove redundant check (fix contributed by Ayat Al-Wraikat)

This commit is contained in:
Tom Henderson
2023-12-23 14:45:08 -08:00
parent 30d5ed90d3
commit 5b48b64a83

View File

@@ -289,14 +289,14 @@ main(int argc, char* argv[])
{
serverChannelWidth = GetDefaultChannelWidth(WIFI_STANDARD_80211b, WIFI_PHY_BAND_2_4GHZ);
}
NS_ABORT_MSG_IF(serverChannelWidth != 22 && serverChannelWidth != 22,
NS_ABORT_MSG_IF(serverChannelWidth != 22,
"Invalid channel width for standard " << standard);
NS_ABORT_MSG_IF(serverNss != 1, "Invalid nss for standard " << standard);
if (clientChannelWidth == 0)
{
clientChannelWidth = GetDefaultChannelWidth(WIFI_STANDARD_80211b, WIFI_PHY_BAND_2_4GHZ);
}
NS_ABORT_MSG_IF(clientChannelWidth != 22 && clientChannelWidth != 22,
NS_ABORT_MSG_IF(clientChannelWidth != 22,
"Invalid channel width for standard " << standard);
NS_ABORT_MSG_IF(clientNss != 1, "Invalid nss for standard " << standard);
}