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

Commit faf8aea5 authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

Merge \"btm: Restrict EXTENDED_INQUIRY_RESULT to 1 result\" into nyc-dev

am: 669fbeb1

Change-Id: I9234f8a567883fdbccb20326328f9cdb444de479
parents bd2ded6d 669fbeb1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1874,6 +1874,12 @@ void btm_process_inq_results (UINT8 *p, UINT8 inq_res_mode)

    STREAM_TO_UINT8 (num_resp, p);

    if (inq_res_mode == BTM_INQ_RESULT_EXTENDED && (num_resp > 1)) {
        BTM_TRACE_ERROR ("btm_process_inq_results() extended results (%d) > 1",
                         num_resp);
        return;
    }

    for (xx = 0; xx < num_resp; xx++)
    {
        update = FALSE;