From def8d180cb49cbb99c6d80c36b9c87d75089e736 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Wed, 22 Jan 2025 17:48:05 -0800 Subject: [PATCH] wifi: Set/clear ath11k debug_mask before/after tracing --- src/wifi.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wifi.rs b/src/wifi.rs index 7fcc2ff..148bacc 100644 --- a/src/wifi.rs +++ b/src/wifi.rs @@ -124,12 +124,14 @@ async fn restart_iwd(connection: Connection) -> Result<()> { } async fn stop_tracing() -> Result<()> { - run_script(TRACE_CMD_PATH, &["stop"]).await + run_script(TRACE_CMD_PATH, &["stop"]).await?; + Ok(fs::write(path("/sys/module/ath11k/parameters/debug_mask"), b"0\n").await?) } async fn start_tracing(buffer_size: u32) -> Result<()> { // Start tracing let size_str = buffer_size.to_string(); + fs::write(path("/sys/module/ath11k/parameters/debug_mask"), b"0xffffefff\n").await?; run_script( TRACE_CMD_PATH, &["start", "-e", "ath11k_wmi_diag", "-b", &size_str],