From af782862c457e1a8ec6317d87bcf034ce70772b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Sun, 4 Sep 2022 09:45:26 +0200 Subject: [PATCH] wifi: Fix missing default in switch case --- src/wifi/model/reduced-neighbor-report.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wifi/model/reduced-neighbor-report.cc b/src/wifi/model/reduced-neighbor-report.cc index 7761dcad0..687dbbd94 100644 --- a/src/wifi/model/reduced-neighbor-report.cc +++ b/src/wifi/model/reduced-neighbor-report.cc @@ -154,6 +154,7 @@ ReducedNeighborReport::SetOperatingChannel (std::size_t nbrApInfoId, } break; case WIFI_PHY_BAND_UNSPECIFIED: + default: NS_ABORT_MSG ("The provided channel has an unspecified PHY band"); break; } @@ -177,6 +178,7 @@ ReducedNeighborReport::SetOperatingChannel (std::size_t nbrApInfoId, startingFreq = 5940; break; case WIFI_PHY_BAND_UNSPECIFIED: + default: NS_ABORT_MSG ("The provided channel has an unspecified PHY band"); break; } @@ -263,6 +265,7 @@ ReducedNeighborReport::GetOperatingChannel (std::size_t nbrApInfoId) const startingFreq = 5940; break; case WIFI_PHY_BAND_UNSPECIFIED: + default: NS_ABORT_MSG ("Unspecified band"); break; }