From 221680ff32f3af0ed2c8914ebf0156432266fac0 Mon Sep 17 00:00:00 2001 From: Kavish Devar Date: Wed, 22 Oct 2025 19:18:58 +0530 Subject: [PATCH] linux-rust: remove ATT temporarily --- linux-rust/src/airpods.rs | 10 +++++----- linux-rust/src/bluetooth/aacp.rs | 4 ++-- linux-rust/src/bluetooth/mod.rs | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/linux-rust/src/airpods.rs b/linux-rust/src/airpods.rs index b52bfab..d405993 100644 --- a/linux-rust/src/airpods.rs +++ b/linux-rust/src/airpods.rs @@ -1,6 +1,6 @@ use crate::bluetooth::aacp::{AACPManager, ProximityKeyType, AACPEvent}; use crate::bluetooth::aacp::ControlCommandIdentifiers; -use crate::bluetooth::att::ATTManager; +// use crate::bluetooth::att::ATTManager; use crate::media_controller::MediaController; use bluer::Address; use log::{debug, info, error}; @@ -13,7 +13,7 @@ use crate::ui::tray::MyTray; pub struct AirPodsDevice { pub mac_address: Address, pub aacp_manager: AACPManager, - pub att_manager: ATTManager, + // pub att_manager: ATTManager, pub media_controller: Arc>, } @@ -23,8 +23,8 @@ impl AirPodsDevice { let mut aacp_manager = AACPManager::new(); aacp_manager.connect(mac_address).await; - let mut att_manager = ATTManager::new(); - att_manager.connect(mac_address).await.expect("Failed to connect ATT"); + // let mut att_manager = ATTManager::new(); + // att_manager.connect(mac_address).await.expect("Failed to connect ATT"); tray_handle.update(|tray: &mut MyTray| tray.connected = true).await; @@ -214,7 +214,7 @@ impl AirPodsDevice { AirPodsDevice { mac_address, aacp_manager, - att_manager, + // att_manager, media_controller, } } diff --git a/linux-rust/src/bluetooth/aacp.rs b/linux-rust/src/bluetooth/aacp.rs index 6b45b4a..fac331a 100644 --- a/linux-rust/src/bluetooth/aacp.rs +++ b/linux-rust/src/bluetooth/aacp.rs @@ -676,11 +676,11 @@ impl AACPManager { buffer.extend_from_slice(&[0x01, 0xE5, 0x4A]); buffer.extend_from_slice(b"playingApp"); buffer.push(0x42); - buffer.extend_from_slice(b"NA");; + buffer.extend_from_slice(b"NA"); buffer.push(0x52); buffer.extend_from_slice(b"hostStreamingState"); buffer.push(0x42); - buffer.extend_from_slice(b"NO");; + buffer.extend_from_slice(b"NO"); buffer.push(0x49); buffer.extend_from_slice(b"btAddress"); buffer.push(0x51); diff --git a/linux-rust/src/bluetooth/mod.rs b/linux-rust/src/bluetooth/mod.rs index 24976ce..bf501c3 100644 --- a/linux-rust/src/bluetooth/mod.rs +++ b/linux-rust/src/bluetooth/mod.rs @@ -1,3 +1,3 @@ pub(crate) mod discovery; pub mod aacp; -pub mod att; \ No newline at end of file +// pub mod att; \ No newline at end of file