mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-05 06:00:30 -04:00
wifi: Simplify enums with strum, rename WifiDebugMode::On to Tracing
This commit is contained in:
parent
4efb3572ec
commit
f939767867
2 changed files with 37 additions and 77 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue