diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2013-12-18 17:42:36 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2013-12-23 10:59:44 +0200 |
commit | f4f6c6026ed31064c46fa8f2765216d8feb1f55c (patch) | |
tree | ac593569c46882e5f75b966d66bd6639981b8b31 /android/avdtp.c | |
parent | da08bafe18b613033e778a2e39d9a784ebedb9e0 (diff) | |
download | bluez-f4f6c6026ed31064c46fa8f2765216d8feb1f55c.tar.gz |
android/AVDTP: Fix not sending delay reporting capability
If the SEP supports delay reporting and remote device request is GET_ALL
add delay report capability.
Diffstat (limited to 'android/avdtp.c')
-rw-r--r-- | android/avdtp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/android/avdtp.c b/android/avdtp.c index 2a5ea9bb6..4bfc86fc7 100644 --- a/android/avdtp.c +++ b/android/avdtp.c @@ -1209,6 +1209,12 @@ static gboolean avdtp_getcap_cmd(struct avdtp *session, uint8_t transaction, g_free(cap); } + if (get_all && sep->delay_reporting) { + ptr[0] = AVDTP_DELAY_REPORTING; + ptr[1] = 0x00; + rsp_size += 2; + } + g_slist_free(caps); return avdtp_send(session, transaction, AVDTP_MSG_TYPE_ACCEPT, cmd, |