From 5b48b64a83bfe2a87a125ba7f1b696660fa5a8a9 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Sat, 23 Dec 2023 14:45:08 -0800 Subject: [PATCH] Remove redundant check (fix contributed by Ayat Al-Wraikat) --- src/wifi/examples/wifi-manager-example.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }