mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-10 00:20:29 -04:00
wifi: Add method for generating and capturing an ath11k dump
This commit is contained in:
parent
7b7afffc46
commit
54351414fa
8 changed files with 210 additions and 5 deletions
|
@ -29,8 +29,8 @@ use crate::power::{
|
|||
};
|
||||
use crate::process::{run_script, script_output};
|
||||
use crate::wifi::{
|
||||
extract_wifi_trace, set_wifi_backend, set_wifi_debug_mode, set_wifi_power_management_state,
|
||||
WifiBackend, WifiDebugMode, WifiPowerManagement,
|
||||
extract_wifi_trace, generate_wifi_dump, set_wifi_backend, set_wifi_debug_mode,
|
||||
set_wifi_power_management_state, WifiBackend, WifiDebugMode, WifiPowerManagement,
|
||||
};
|
||||
use crate::{path, API_VERSION};
|
||||
|
||||
|
@ -379,6 +379,16 @@ impl SteamOSManager {
|
|||
.into())
|
||||
}
|
||||
|
||||
async fn generate_debug_dump(&self) -> fdo::Result<String> {
|
||||
Ok(generate_wifi_dump()
|
||||
.await
|
||||
.inspect_err(|message| error!("Error capturing dump output: {message}"))
|
||||
.map_err(to_zbus_fdo_error)?
|
||||
.into_os_string()
|
||||
.to_string_lossy()
|
||||
.into())
|
||||
}
|
||||
|
||||
#[zbus(property)]
|
||||
async fn inhibit_ds(&self) -> fdo::Result<bool> {
|
||||
let (tx, rx) = oneshot::channel();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue