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

Commit 9250f02d authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "HID: Prevent incoming and outgoing SDP collision"

parents 8ad1463a 3f30eaa1
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -399,6 +399,14 @@ void bta_hh_start_sdp(tBTA_HH_DEV_CB *p_cb, tBTA_HH_DATA *p_data)
        } else {
            status = BTA_HH_OK;
        }
    } else if (bta_hh_cb.p_disc_db) {
        /* It is possible that there is incoming/outgoing collision case. DUT initiated
         * HID connection at same time remote has connected L2CAP for HID control,
         * so SDP would be in progress, when this flow reaches here. Just do nothing
         * when the code reaches here, and ongoing SDP completion or failure will handle this case.
         */
        APPL_TRACE_DEBUG("%s: ignoring as SDP already in progress", __func__);
        return;
    }

    if (status != BTA_HH_OK)