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
|
@ -155,6 +155,10 @@ struct WifiDebug1 {
|
|||
proxy: Proxy<'static>,
|
||||
}
|
||||
|
||||
struct WifiDebugDump1 {
|
||||
proxy: Proxy<'static>,
|
||||
}
|
||||
|
||||
struct WifiPowerManagement1 {
|
||||
proxy: Proxy<'static>,
|
||||
}
|
||||
|
@ -492,6 +496,13 @@ impl WifiDebug1 {
|
|||
}
|
||||
}
|
||||
|
||||
#[interface(name = "com.steampowered.SteamOSManager1.WifiDebugDump1")]
|
||||
impl WifiDebugDump1 {
|
||||
async fn generate_debug_dump(&self) -> fdo::Result<String> {
|
||||
method!(self, "GenerateDebugDump")
|
||||
}
|
||||
}
|
||||
|
||||
#[interface(name = "com.steampowered.SteamOSManager1.WifiPowerManagement1")]
|
||||
impl WifiPowerManagement1 {
|
||||
#[zbus(property(emits_changed_signal = "false"))]
|
||||
|
@ -568,6 +579,9 @@ pub(crate) async fn create_interfaces(
|
|||
let wifi_debug = WifiDebug1 {
|
||||
proxy: proxy.clone(),
|
||||
};
|
||||
let wifi_debug_dump = WifiDebugDump1 {
|
||||
proxy: proxy.clone(),
|
||||
};
|
||||
let wifi_power_management = WifiPowerManagement1 {
|
||||
proxy: proxy.clone(),
|
||||
};
|
||||
|
@ -579,6 +593,9 @@ pub(crate) async fn create_interfaces(
|
|||
if is_deck().await? {
|
||||
object_server.at(MANAGER_PATH, als).await?;
|
||||
}
|
||||
if variant().await? == HardwareVariant::Galileo {
|
||||
object_server.at(MANAGER_PATH, wifi_debug_dump).await?;
|
||||
}
|
||||
|
||||
object_server.at(MANAGER_PATH, cpu_scaling).await?;
|
||||
|
||||
|
@ -939,4 +956,13 @@ mod test {
|
|||
.await
|
||||
.unwrap());
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn interface_matches_wifi_debug_dump() {
|
||||
let test = start(all_config()).await.expect("start");
|
||||
|
||||
assert!(test_interface_matches::<WifiDebugDump1>(&test.connection)
|
||||
.await
|
||||
.unwrap());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue