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

Commit b0b9a4b9 authored by Himanshu Rawat's avatar Himanshu Rawat
Browse files

Remove flag prevent_hogp_reconnect_when_connected

Change-Id: I0c1f7c31919f08e6030f7081c4bb5f7325fa0303
Test: mmm packages/modules/Bluetooth
Flag: com.android.bluetooth.flags.prevent_hogp_reconnect_when_connected
Bug: 329720661
parent cfcd5d5a
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -9,16 +9,6 @@ flag {
    bug: "320762367"
}

flag {
    name: "prevent_hogp_reconnect_when_connected"
    namespace: "bluetooth"
    description: "Do not request GATT connection while the HOGP is already connected"
    bug: "329720661"
    metadata {
        purpose: PURPOSE_BUGFIX
    }
}

flag {
    name: "save_initial_hid_connection_policy"
    namespace: "bluetooth"
+0 −17
Original line number Diff line number Diff line
@@ -67,16 +67,6 @@ using bluetooth::Uuid;
using std::vector;
using namespace bluetooth;

/* TODO: b/329720661 Remove this namespace entirely when
 * prevent_hogp_reconnect_when_connected flag is shipped */
namespace {
#ifndef BTA_HH_LE_RECONN
constexpr bool kBTA_HH_LE_RECONN = true;
#else
constexpr bool kBTA_HH_LE_RECONN = false;
#endif
}  // namespace

#define BTA_HH_APP_ID_LE 0xff

#define BTA_HH_LE_PROTO_BOOT_MODE 0x00
@@ -640,13 +630,6 @@ static void bta_hh_le_open_cmpl(tBTA_HH_DEV_CB* p_cb) {
                                         p_cb->dscp_info.product_id)) {
      BTA_GATTC_ConfigureMTU(p_cb->conn_id, GATT_MAX_MTU_SIZE);
    }

    if (!com::android::bluetooth::flags::prevent_hogp_reconnect_when_connected()) {
      if (kBTA_HH_LE_RECONN && p_cb->status == BTA_HH_OK) {
        bta_hh_le_add_dev_bg_conn(p_cb);
      }
      return;
    }
  }
}