diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-04-25 14:56:34 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-04-26 11:33:16 +0300 |
commit | 008093fc1c05fab0a6194f5405de879569997641 (patch) | |
tree | 2b1206fd2f88021deebfc56c799c160f9c6bb147 /monitor/avdtp.c | |
parent | 6db3470c2ea161b4b808ad1fc80dfd7e014fd359 (diff) | |
download | bluez-008093fc1c05fab0a6194f5405de879569997641.tar.gz |
monitor: Add option -A/--a2dp to dump A2DP stream data
This is similar to SCO which disable audio dumping by default so only
signalling data is shown:
< ACL Data TX: Handle 256 flags 0x02 dlen 850 #6041 11:32:29.299212
Channel: 451 len 846 [PSM 25 mode 0] {chan 2}
Diffstat (limited to 'monitor/avdtp.c')
-rw-r--r-- | monitor/avdtp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor/avdtp.c b/monitor/avdtp.c index 3524faa04..006daf33f 100644 --- a/monitor/avdtp.c +++ b/monitor/avdtp.c @@ -776,7 +776,8 @@ void avdtp_packet(const struct l2cap_frame *frame) ret = avdtp_signalling_packet(&avdtp_frame); break; default: - packet_hexdump(frame->data, frame->size); + if (packet_has_filter(PACKET_FILTER_SHOW_A2DP_STREAM)) + packet_hexdump(frame->data, frame->size); return; } |