Parse bandwidth for channel switch event

Bug: 70900431
Test: compile, unit tests
Test: manually test that expected log appears when starting softap

Change-Id: I38d5a665f62106752674f11367661b2e2efbed9f
diff --git a/logging_utils.cpp b/logging_utils.cpp
index 852c608..f717a50 100644
--- a/logging_utils.cpp
+++ b/logging_utils.cpp
@@ -39,5 +39,25 @@
   return ss.str();
 }
 
+string LoggingUtils::GetBandwidthString(ChannelBandwidth bandwidth) {
+  switch (bandwidth) {
+    case BW_20_NOHT:
+      return "20MHz no HT";
+    case BW_20:
+      return "20MHz with HT";
+    case BW_40:
+      return "40MHz";
+    case BW_80:
+      return "80MHz";
+    case BW_80P80:
+      return "80+80MHz";
+    case BW_160:
+      return "160MHz";
+    default:
+      return "Invalid";
+  }
+  return "Invalid";
+}
+
 }  // namespace wificond
 }  // namespace android