Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8172cc5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Floss: Don't disconnect unbonded HID when disconnected or disconnecting" into main

parents 7f12a801 8cc34b9f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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)
+1 −1
Original line number Diff line number Diff line
@@ -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,