OSDN Git Service

AVRCP: limit AVRCP packet size to the MTU of AV/C
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 20 Sep 2011 18:31:34 +0000 (15:31 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 27 Sep 2011 10:11:35 +0000 (13:11 +0300)
commit6d0ec74904324b667d7450c4e1d565623b3d986c
tree37d04c9c1f3613b06a971eb9112df94431cba425
parentf8a44769ff80e3ce8f8fe736a4358eb3da0134a6
AVRCP: limit AVRCP packet size to the MTU of AV/C

AVRCP is an extension of AV/C spec which has a limit of 512 bytes. The
only place where it can exceed this value is in the response to
GetElementAttributes command.

Now we simply don't add the attributes that would overflow the available
buffer space.
audio/avctp.c
audio/avctp.h
audio/avrcp.c