EventID 0x00 is reserved:
< ACL data: handle 12 flags 0x00 dlen 25
L2CAP(d): cid 0x0541 len 21 [psm 23]
AVCTP Control: Response : pt 0x00 transaction 2 pid 0x110e
AV/C: Stable: address 0x48 opcode 0x00
Subunit: Panel
Opcode: Vendor Dependent
Company ID: 0x001958
AVRCP: GetCapabilities: pt Single len 0x0008
CapabilityID: 0x03 (EventsID)
CapabilityCount: 0x06
EventsID: 0x00 (Reserved)
EventsID: 0x01 (EVENT_PLAYBACK_STATUS_CHANGED)
EventsID: 0x02 (EVENT_TRACK_CHANGED)
EventsID: 0x03 (EVENT_TRACK_REACHED_END)
EventsID: 0x04 (EVENT_TRACK_REACHED_START)
EventsID: 0x08 (EVENT_PLAYER_APPLICATION_SETTING_CHANGED)
return AVC_CTYPE_STABLE;
case CAP_EVENTS_SUPPORTED:
- for (i = 0; i <= AVRCP_EVENT_LAST; i++) {
+ for (i = 1; i <= AVRCP_EVENT_LAST; i++) {
if (session->supported_events & (1 << i)) {
pdu->params[1]++;
pdu->params[pdu->params[1] + 1] = i;