wifi: Simplify enums with strum, rename WifiDebugMode::On to Tracing

This commit is contained in:
Vicki Pfau 2024-07-31 21:25:16 -07:00
parent 4efb3572ec
commit f939767867
2 changed files with 37 additions and 77 deletions

View file

@ -261,9 +261,9 @@ impl SteamOSManager {
}
async fn set_wifi_backend(&mut self, backend: u32) -> fdo::Result<()> {
if self.wifi_debug_mode == WifiDebugMode::On {
if self.wifi_debug_mode == WifiDebugMode::Tracing {
return Err(fdo::Error::Failed(String::from(
"operation not supported when wifi_debug_mode=on",
"operation not supported when wifi_debug_mode=tracing",
)));
}
let backend = match WifiBackend::try_from(backend) {