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

Commit 4d36d759 authored by Zach Johnson's avatar Zach Johnson
Browse files

if you pass 0, these are the values used

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I2af0f2c20275f4f521805fc43c2afb61c0a11545
parent 77e19426
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -609,14 +609,12 @@ tBTM_STATUS BTM_EnableTestMode(void) {
                              HCI_FILTER_COND_NEW_DEVICE, &cond, sizeof(cond));

  /* put device to connectable mode */
  if (BTM_SetConnectability(BTM_CONNECTABLE, BTM_DEFAULT_CONN_WINDOW,
                            BTM_DEFAULT_CONN_INTERVAL) != BTM_SUCCESS) {
  if (BTM_SetConnectability(BTM_CONNECTABLE, 0, 0) != BTM_SUCCESS) {
    return BTM_NO_RESOURCES;
  }

  /* put device to discoverable mode */
  if (BTM_SetDiscoverability(BTM_GENERAL_DISCOVERABLE, BTM_DEFAULT_DISC_WINDOW,
                             BTM_DEFAULT_DISC_INTERVAL) != BTM_SUCCESS) {
  if (BTM_SetDiscoverability(BTM_GENERAL_DISCOVERABLE, 0, 0) != BTM_SUCCESS) {
    return BTM_NO_RESOURCES;
  }