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

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

Merge "HidHost: Enforce connection policy on incoming connection" into main

parents 55ec8b53 50d3de63
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -507,7 +507,11 @@ static void hh_open_handler(tBTA_HH_CONN& conn) {
      return;
    }
  }

  if (!IS_FLAG_ENABLED(allow_switching_hid_and_hogp)) {
    BTHH_STATE_UPDATE(conn.link_spec, BTHH_CONN_STATE_CONNECTING);
  }

  btif_hh_cb.pending_link_spec = {};

  if (conn.status != BTA_HH_OK) {