Remove redundant check (fix contributed by Ayat Al-Wraikat)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user