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

Commit 7cf12b18 authored by Chris Manton's avatar Chris Manton
Browse files

stack::inq Log set interlaced page/inq scan failure

Bug: 346999164
Test: m .
Flag: EXEMPT, Logging Change

Change-Id: I8ab82918f455e23990139d4decb24e4b4a33b58c
parent 7533933b
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -362,6 +362,15 @@ void BTM_EnableInterlacedInquiryScan() {
  if (!bluetooth::shim::GetController()->SupportsInterlacedInquiryScan() ||
      inq_scan_type != BTM_SCAN_TYPE_INTERLACED ||
      btm_cb.btm_inq_vars.inq_scan_type == BTM_SCAN_TYPE_INTERLACED) {
    log::warn(
        "Unable to set interlaced inquiry scan controller_supported:%c "
        "property_supported:%c already_in_mode:%c",
        (bluetooth::shim::GetController()->SupportsInterlacedInquiryScan())
            ? 'T'
            : 'F',
        (inq_scan_type != BTM_SCAN_TYPE_INTERLACED) ? 'T' : 'F',
        (btm_cb.btm_inq_vars.inq_scan_type == BTM_SCAN_TYPE_INTERLACED) ? 'T'
                                                                        : 'F');
    return;
  }

@@ -378,6 +387,15 @@ void BTM_EnableInterlacedPageScan() {
  if (!bluetooth::shim::GetController()->SupportsInterlacedInquiryScan() ||
      page_scan_type != BTM_SCAN_TYPE_INTERLACED ||
      btm_cb.btm_inq_vars.page_scan_type == BTM_SCAN_TYPE_INTERLACED) {
    log::warn(
        "Unable to set interlaced page scan controller_supported:%c "
        "property_supported:%c already_in_mode:%c",
        (bluetooth::shim::GetController()->SupportsInterlacedInquiryScan())
            ? 'T'
            : 'F',
        (page_scan_type != BTM_SCAN_TYPE_INTERLACED) ? 'T' : 'F',
        (btm_cb.btm_inq_vars.page_scan_type == BTM_SCAN_TYPE_INTERLACED) ? 'T'
                                                                         : 'F');
    return;
  }