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

Commit 7092e5a3 authored by Zach Johnson's avatar Zach Johnson
Browse files

btm_cb.busy_level can never equal BTM_BL_PAGING_STARTED

busy_level is only ever 10 or the number of links, which cannot exceed 7

BTM_BL_PAGING_STARTED is equal to 0x14

I rest my case.

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I7a656b5c15d5418eb65351807febe3e020fdf331
parent f0a27d08
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -897,8 +897,7 @@ bool btm_pm_device_in_scan_state(void) {
  /* Scan state-paging, inquiry, and trying to connect */

  /* Check for paging */
  if (btm_cb.is_paging || (!fixed_queue_is_empty(btm_cb.page_queue)) ||
      BTM_BL_PAGING_STARTED == btm_cb.busy_level) {
  if (btm_cb.is_paging || !fixed_queue_is_empty(btm_cb.page_queue)) {
    BTM_TRACE_DEBUG("btm_pm_device_in_scan_state- paging");
    return true;
  }