diff --git a/src/wifi/examples/wifi-manager-example.cc b/src/wifi/examples/wifi-manager-example.cc index 6fdc96fb3..81903100f 100644 --- a/src/wifi/examples/wifi-manager-example.cc +++ b/src/wifi/examples/wifi-manager-example.cc @@ -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); }