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

Commit eb52ea2c authored by Zach Johnson's avatar Zach Johnson
Browse files

Don't report illegal value for something uncontrollable

used to be in a param, but now it's not, just ignore

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I7331be05a7da3735216f32f016d1717cc0daf919
parent cc69b577
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -631,10 +631,7 @@ tBTM_STATUS BTM_StartInquiry(tBTM_INQ_RESULTS_CB* p_results_cb,
                  p_inq->inq_active);

  tBTM_STATUS status = BTM_CMD_STARTED;
  if (!controller_get_interface()->supports_ble()) {
    LOG(ERROR) << __func__ << ": trying to do LE scan on a non-LE adapter";
    status = BTM_ILLEGAL_VALUE;
  } else {
  if (controller_get_interface()->supports_ble()) {
    /* BLE for now does not support filter condition for inquiry */
    status = btm_ble_start_inquiry(
        (uint8_t)(p_inq->inqparms.mode & BTM_BLE_INQUIRY_MASK),