Loading system/gd/rust/linux/stack/src/bluetooth.rs +4 −1 Original line number Diff line number Diff line Loading @@ -3047,7 +3047,10 @@ impl BtifHHCallbacks for Bluetooth { state as u32, ); if BtBondState::Bonded != self.get_bond_state_by_addr(&address) { if BtBondState::Bonded != self.get_bond_state_by_addr(&address) && (state != BthhConnectionState::Disconnecting && state != BthhConnectionState::Disconnected) { warn!( "[{}]: Rejecting a unbonded device's attempt to connect to HID/HOG profiles", DisplayAddress(&address) Loading system/gd/rust/topshim/src/profiles/hid_host.rs +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ use topshim_macros::{cb_variant, profile_enabled_or}; use log::warn; #[derive(Debug, FromPrimitive, PartialEq, PartialOrd)] #[derive(Debug, FromPrimitive, PartialEq, PartialOrd, Copy, Clone)] #[repr(u32)] pub enum BthhConnectionState { Connected = 0, Loading Loading
system/gd/rust/linux/stack/src/bluetooth.rs +4 −1 Original line number Diff line number Diff line Loading @@ -3047,7 +3047,10 @@ impl BtifHHCallbacks for Bluetooth { state as u32, ); if BtBondState::Bonded != self.get_bond_state_by_addr(&address) { if BtBondState::Bonded != self.get_bond_state_by_addr(&address) && (state != BthhConnectionState::Disconnecting && state != BthhConnectionState::Disconnected) { warn!( "[{}]: Rejecting a unbonded device's attempt to connect to HID/HOG profiles", DisplayAddress(&address) Loading
system/gd/rust/topshim/src/profiles/hid_host.rs +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ use topshim_macros::{cb_variant, profile_enabled_or}; use log::warn; #[derive(Debug, FromPrimitive, PartialEq, PartialOrd)] #[derive(Debug, FromPrimitive, PartialEq, PartialOrd, Copy, Clone)] #[repr(u32)] pub enum BthhConnectionState { Connected = 0, Loading