mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-16 03:06:47 -04:00
manager: Expose new CaptureDebugTraceOutput method
This commit is contained in:
parent
a2af4d1bc5
commit
7b7afffc46
8 changed files with 126 additions and 11 deletions
|
@ -133,6 +133,9 @@ enum Commands {
|
|||
/// Get Wi-Fi debug mode
|
||||
GetWifiDebugMode,
|
||||
|
||||
/// Capture the current Wi-Fi debug trace
|
||||
CaptureWifiDebugTraceOutput,
|
||||
|
||||
/// Set the Wi-Fi power management state
|
||||
SetWifiPowerManagementState {
|
||||
/// Valid modes are `enabled`, `disabled`
|
||||
|
@ -380,6 +383,11 @@ async fn main() -> Result<()> {
|
|||
Err(_) => println!("Got unknown value {mode} from backend"),
|
||||
}
|
||||
}
|
||||
Commands::CaptureWifiDebugTraceOutput => {
|
||||
let proxy = WifiDebugDump1Proxy::new(&conn).await?;
|
||||
let path = proxy.generate_debug_dump().await?;
|
||||
println!("{path}");
|
||||
}
|
||||
Commands::SetWifiPowerManagementState { state } => {
|
||||
let proxy = WifiPowerManagement1Proxy::new(&conn).await?;
|
||||
proxy.set_wifi_power_management_state(*state as u32).await?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue