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

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

p_inq->state is always BTM_INQ_SET_FILT_STATE when calling

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I7b26fc89c7e46d229a991bd008b75ee7c08382b1
parent 92646553
Loading
Loading
Loading
Loading
+3 −21
Original line number Diff line number Diff line
@@ -1205,28 +1205,10 @@ static void btm_set_inq_event_filter() {
    return;
  }

  /* If the set filter was initiated externally (via BTM_SetInqEventFilter),
     call the
     callback function to notify the initiator that it has completed */
  if (p_inq->state == BTM_INQ_INACTIVE_STATE) {
    p_inq->inqfilt_active = false;
  } else /* An inquiry is active (the set filter command was internally
            generated),
            process the next state of the process (Set a new filter or start
            the inquiry). */
  {
    /* Check to see if a new filter needs to be set up */
    if (p_inq->state == BTM_INQ_CLR_FILT_STATE) {
      btm_set_inq_event_filter();
      p_inq->state = BTM_INQ_SET_FILT_STATE;
    } else /* Initiate the Inquiry or Periodic Inquiry */
    {
  p_inq->state = BTM_INQ_ACTIVE_STATE;
  p_inq->inqfilt_active = false;
  btm_initiate_inquiry(p_inq);
}
  }
}

/*******************************************************************************
 *