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

Commit e5adf68e authored by Sal Savage's avatar Sal Savage
Browse files

Make supported event count based on max events and not max company id

Tag: #stability
Bug: 226641319
Bug: 205837191
Test: atest BluetoothInstrumentationTests
Change-Id: Ia0a9e58659d8708562aa3f952b413185a9907fc8
parent 5e5ee42a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -594,7 +594,7 @@ static tAVRC_STS avrc_ctrl_pars_vendor_rsp(tAVRC_MSG_VENDOR* p_msg,
        }
      } else if (p_result->get_caps.capability_id ==
                 AVRC_CAP_EVENTS_SUPPORTED) {
        if (p_result->get_caps.count > AVRC_CAP_MAX_NUM_COMP_ID) {
        if (p_result->get_caps.count > AVRC_CAP_MAX_NUM_EVT_ID) {
          android_errorWriteLog(0x534e4554, "205837191");
          return AVRC_STS_INTERNAL_ERR;
        }