diff options
Diffstat (limited to 'stack/avrc')
-rw-r--r--[-rwxr-xr-x] | stack/avrc/avrc_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stack/avrc/avrc_api.c b/stack/avrc/avrc_api.c index 359d910ec..5162ec860 100755..100644 --- a/stack/avrc/avrc_api.c +++ b/stack/avrc/avrc_api.c @@ -808,7 +808,7 @@ static void avrc_msg_cback(UINT8 handle, UINT8 label, UINT8 cr, opcode = p_data[0]; AVRC_TRACE_DEBUG("opcode:%x, length:%x",opcode, p_pkt->len); /*Do sanity Check here*/ - if (cr == AVCT_CMD) + if ((avrc_cb.ccb[handle].control & AVRC_CT_TARGET) && (cr == AVCT_CMD)) { opcode = AVRC_OP_BROWSE; msg.browse.browse_len = p_pkt->len; @@ -819,7 +819,7 @@ static void avrc_msg_cback(UINT8 handle, UINT8 label, UINT8 cr, } else { - AVRC_TRACE_ERROR("### expect AVCT_CMD"); + AVRC_TRACE_ERROR("Drop invalid Avrcp Browse message"); } /*Free the packet as the same already got copied in BTA*/ GKI_freebuf(p_pkt); |