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

Commit 2cbaad6d authored by Matthew Xie's avatar Matthew Xie Committed by Android Git Automerger
Browse files

am fd7aed47: Merge "Treat devices advertising random addr. as LE only" into klp-dev

* commit 'fd7aed47':
  Treat devices advertising random addr. as LE only
parents 75f64ecf fd7aed47
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1565,9 +1565,14 @@ BOOLEAN btm_ble_update_inq_result(tINQ_DB_ENT *p_i, UINT8 addr_type, UINT8 evt_t
    /* if BR/EDR not supported is not set, assume is a DUMO device */
    if ((p_cur->flag & BTM_BLE_BREDR_NOT_SPT) == 0 &&
         evt_type != BTM_BLE_CONNECT_DIR_EVT)
    {
        if (p_cur->ble_addr_type != BLE_ADDR_RANDOM)
        {
            BTM_TRACE_DEBUG0("BR/EDR NOT support bit not set, treat as DUMO");
            p_cur->device_type |= BT_DEVICE_TYPE_DUMO;
        } else {
            BTM_TRACE_DEBUG0("Random address, treating device as LE only");
        }
    }
    else
    {