summaryrefslogtreecommitdiff
path: root/monitor/avdtp.c
Commit message (Collapse)AuthorAgeFilesLines
* monitor/avdtp: Fix decoding of reject typeLuiz Augusto von Dentz2021-05-041-4/+0
| | | | | | | | | | | Reject type was not being decoded, so this remove the early return and leave the callback to decode it: < ACL Data TX: Handle 42 flags 0x00 dlen 8 Channel: 64 len 4 [PSM 25 mode Basic (0x00)] {chan 1} AVDTP: Set Configuration (0x03) Response Reject (0x03) type 0x00 label 2 nosp 0 Service Category: Reserved (0x00) Error code: BAD_ACP_SEID (0x12)
* monitor: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- LGPL-2.1-or-later : 47 License: LGPL-2.1-or-later monitor/bt.h monitor/hcidump.h monitor/avdtp.h monitor/crc.c monitor/sdp.c monitor/hwdb.c monitor/intel.h monitor/avctp.c monitor/control.h monitor/display.c monitor/a2dp.c monitor/ll.c monitor/ll.h monitor/jlink.h monitor/broadcom.h monitor/lmp.c monitor/keys.c monitor/ellisys.c monitor/main.c monitor/ellisys.h monitor/hwdb.h monitor/display.h monitor/jlink.c monitor/rfcomm.h monitor/packet.c monitor/crc.h monitor/keys.h monitor/sdp.h monitor/rfcomm.c monitor/avdtp.c monitor/a2dp.h monitor/avctp.h monitor/vendor.h monitor/hcidump.c monitor/intel.c monitor/tty.h monitor/control.c monitor/lmp.h monitor/analyze.c monitor/bnep.c monitor/l2cap.c monitor/vendor.c monitor/packet.h monitor/broadcom.c monitor/analyze.h monitor/l2cap.h monitor/bnep.h
* build: Move declaration of _GNU_SOURCE back into individual source filesMarcel Holtmann2018-12-061-0/+1
|
* monitor/avdtp: Correct bit mask for TSEPGrzegorz Kolodziejczyk2017-06-101-1/+1
| | | | | According to AVDP specification 1.3 (8.6.2 Stream End Point Discovery Response), TSEP bit is on 3rd position of 3rd frame byte.
* monitor: Add option -A/--a2dp to dump A2DP stream dataLuiz Augusto von Dentz2017-04-261-1/+2
| | | | | | | | 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}
* monitor/a2dp: Decode SBC capabilitiesAndrzej Kaczmarek2015-12-011-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > ACL Data RX: Handle 256 flags 0x02 dlen 20 [hci0] 9.242155 Channel: 66 len 16 [PSM 25 mode 0] {chan 2} AVDTP: Get Capabilities (0x02) Response Accept (0x02) type 0x00 label 1 nosp 0 Service Category: Media Transport (0x01) Service Category: Media Codec (0x07) Media Type: Audio (0x00) Media Codec: SBC (0x00) Frequency: 0x30 44100 48000 Channel Mode: 0x0f Mono Dual Channel Stereo Joint Channel Block Length: 0xf0 4 8 12 16 Subbands: 0x0c 4 8 Allocation Method: 0x03 SNR Loudness Minimum Bitpool: 2 Maximum Bitpool: 53 Service Category: Content Protection (0x04) Content Protection Type: SCMS-T (0x0002) < ACL Data TX: Handle 256 flags 0x00 dlen 18 [hci0] 9.272120 Channel: 258 len 14 [PSM 25 mode 0] {chan 2} AVDTP: Set Configuration (0x03) Command (0x00) type 0x00 label 5 nosp 0 ACP SEID: 1 INT SEID: 3 Service Category: Media Transport (0x01) Service Category: Media Codec (0x07) Media Type: Audio (0x00) Media Codec: SBC (0x00) Frequency: 44100 (0x20) Channel Mode: Joint Channel (0x01) Block Length: 16 (0x10) Subbands: 8 (0x04) Allocation Method: Loudness (0x01) Minimum Bitpool: 2 Maximum Bitpool: 53
* monitor/avdtp: Decode basic Content Protection capabilitiesAndrzej Kaczmarek2015-12-011-1/+41
| | | | | | | | | | | | | > ACL Data RX: Handle 256 flags 0x02 dlen 20 Channel: 66 len 16 [PSM 25 mode 0] {chan 2} AVDTP: Get Capabilities (0x02) Response Accept (0x02) type 0x00 label 1 nosp 0 Service Category: Media Transport (0x01) Service Category: Media Codec (0x07) Media Type: Audio (0x00) Media Codec: SBC (0x00) 3f ff 02 35 ?..5 Service Category: Content Protection (0x04) Content Protection Type: SCMS-T (0x0002)
* monitor/avdtp: Decode basic Media Codec capabilitiesAndrzej Kaczmarek2015-12-011-4/+62
| | | | | | | | | | | | | > ACL Data RX: Handle 256 flags 0x02 dlen 20 Channel: 66 len 16 [PSM 25 mode 0] {chan 2} AVDTP: Get Capabilities (0x02) Response Accept (0x02) type 0x00 label 1 nosp 0 Service Category: Media Transport (0x01) Service Category: Media Codec (0x07) Media Type: Audio (0x00) Media Codec: SBC (0x00) 3f ff 02 35 ?..5 Service Category: Content Protection (0x04) 02 00 ..
* monitor/avdtp: Decode AVDTP_DELAYREPORTAndrzej Kaczmarek2015-12-011-0/+31
|
* monitor/avdtp: Decode AVDTP_GET_ALL_CAPABILITIESAndrzej Kaczmarek2015-12-011-0/+1
| | | | | | | | | | | | | | | < ACL Data TX: Handle 256 flags 0x00 dlen 7 Channel: 832 len 3 [PSM 25 mode 0] {chan 0} AVDTP: Get All Capabilities (0x0c) Command (0x00) type 0x00 label 1 nosp 0 ACP SEID: 1 > ACL Data RX: Handle 256 flags 0x02 dlen 20 Channel: 64 len 16 [PSM 25 mode 0] {chan 0} AVDTP: Get All Capabilities (0x0c) Response Accept (0x02) type 0x00 label 1 nosp 0 Service Category: Media Transport (0x01) Service Category: Media Codec (0x07) 00 00 3f ff 02 35 ..?..5 Service Category: Content Protection (0x04) 02 00 ..
* monitor/avdtp: Decode AVDTP_SECURITY_CONTROLAndrzej Kaczmarek2015-12-011-0/+29
|
* monitor/avdtp: Decode AVDTP_ABORTAndrzej Kaczmarek2015-12-011-0/+23
| | | | | | | | | | > ACL Data RX: Handle 256 flags 0x02 dlen 7 Channel: 66 len 3 [PSM 25 mode 0] {chan 2} AVDTP: Abort (0x0a) Command (0x00) type 0x00 label 3 nosp 0 ACP SEID: 3 < ACL Data TX: Handle 256 flags 0x00 dlen 6 Channel: 258 len 2 [PSM 25 mode 0] {chan 2} AVDTP: Abort (0x0a) Response Accept (0x02) type 0x00 label 3 nosp 0
* monitor/avdtp: Decode AVDTP_SUSPENDAndrzej Kaczmarek2015-12-011-0/+33
| | | | | | | | | | < ACL Data TX: Handle 256 flags 0x00 dlen 7 Channel: 258 len 3 [PSM 25 mode 0] {chan 2} AVDTP: Suspend (0x09) Command (0x00) type 0x00 label 8 nosp 0 ACP SEID: 1 > ACL Data RX: Handle 256 flags 0x02 dlen 6 Channel: 66 len 2 [PSM 25 mode 0] {chan 2} AVDTP: Suspend (0x09) Response Accept (0x02) type 0x00 label 8 nosp 0
* monitor/avdtp: Decode AVDTP_CLOSEAndrzej Kaczmarek2015-12-011-0/+25
| | | | | | | | | | < ACL Data TX: Handle 12 flags 0x02 dlen 7 Channel: 2753 len 3 [PSM 25 mode 0] {chan 1} AVDTP: Close (0x08) Command (0x00) type 0x00 label 8 nosp 0 ACP SEID: 5 > ACL Data RX: Handle 12 flags 0x02 dlen 6 Channel: 67 len 2 [PSM 25 mode 0] {chan 1} AVDTP: Close (0x08) Response Accept (0x02) type 0x00 label 8 nosp 0
* monitor/avdtp: Decode AVDTP_STARTAndrzej Kaczmarek2015-12-011-0/+33
| | | | | | | | | | < ACL Data TX: Handle 256 flags 0x00 dlen 7 Channel: 258 len 3 [PSM 25 mode 0] {chan 2} AVDTP: Start (0x07) Command (0x00) type 0x00 label 7 nosp 0 ACP SEID: 1 > ACL Data RX: Handle 256 flags 0x02 dlen 6 Channel: 66 len 2 [PSM 25 mode 0] {chan 2} AVDTP: Start (0x07) Response Accept (0x02) type 0x00 label 7 nosp 0
* monitor/avdtp: Decode AVDTP_OPENAndrzej Kaczmarek2015-12-011-0/+25
| | | | | | | | | | < ACL Data TX: Handle 256 flags 0x00 dlen 7 Channel: 258 len 3 [PSM 25 mode 0] {chan 2} AVDTP: Open (0x06) Command (0x00) type 0x00 label 6 nosp 0 ACP SEID: 1 > ACL Data RX: Handle 256 flags 0x02 dlen 6 Channel: 66 len 2 [PSM 25 mode 0] {chan 2} AVDTP: Open (0x06) Response Accept (0x02) type 0x00 label 6 nosp 0
* monitor/avdtp: Decode AVDTP_RECONFIGUREAndrzej Kaczmarek2015-12-011-0/+32
|
* monitor/avdtp: Decode AVDTP_GET_CONFIGURATIONAndrzej Kaczmarek2015-12-011-0/+25
|
* monitor/avdtp: Decode AVDTP_SET_CONFIGURATIONAndrzej Kaczmarek2015-12-011-0/+37
| | | | | | | | | | | | | | < ACL Data TX: Handle 256 flags 0x00 dlen 18 Channel: 258 len 14 [PSM 25 mode 0] {chan 2} AVDTP: Set Configuration (0x03) Command (0x00) type 0x00 label 5 nosp 0 ACP SEID: 1 INT SEID: 3 Service Category: Media Transport (0x01) Service Category: Media Codec (0x07) 00 00 21 15 02 35 ..!..5 > ACL Data RX: Handle 256 flags 0x02 dlen 6 Channel: 66 len 2 [PSM 25 mode 0] {chan 2} AVDTP: Set Configuration (0x03) Response Accept (0x02) type 0x00 label 5 nosp 0
* monitor/avdtp: Decode AVDTP_GET_CAPABILITIESAndrzej Kaczmarek2015-12-011-0/+85
| | | | | | | | | | | | | | | < ACL Data TX: Handle 256 flags 0x00 dlen 7 Channel: 258 len 3 [PSM 25 mode 0] {chan 2} AVDTP: Get Capabilities (0x02) Command (0x00) type 0x00 label 1 nosp 0 ACP SEID: 1 > ACL Data RX: Handle 256 flags 0x02 dlen 20 Channel: 66 len 16 [PSM 25 mode 0] {chan 2} AVDTP: Get Capabilities (0x02) Response Accept (0x02) type 0x00 label 1 nosp 0 Service Category: Media Transport (0x01) Service Category: Media Codec (0x07) 00 00 3f ff 02 35 ..?..5 Service Category: Content Protection (0x04) 02 00 ..
* monitor/avdtp: Decode AVDTP_DISCOVERAndrzej Kaczmarek2015-12-011-1/+113
| | | | | | | | | | | | | | | | | | | | | | | | | < ACL Data TX: Handle 256 flags 0x00 dlen 6 Channel: 258 len 2 [PSM 25 mode 0] {chan 2} AVDTP: Discover (0x01) Command (0x00) type 0x00 label 0 nosp 0 > ACL Data RX: Handle 256 flags 0x02 dlen 14 Channel: 66 len 10 [PSM 25 mode 0] {chan 2} AVDTP: Discover (0x01) Response Accept (0x02) type 0x00 label 0 nosp 0 ACP SEID: 1 Media Type: Audio (0x00) SEP Type: SRC (0x01) In use: No ACP SEID: 5 Media Type: Audio (0x00) SEP Type: SRC (0x01) In use: No ACP SEID: 3 Media Type: Audio (0x00) SEP Type: SRC (0x01) In use: No ACP SEID: 2 Media Type: Audio (0x00) SEP Type: SRC (0x01) In use: No
* monitor/avdtp: Add basic decoding of AVDTP signallingAndrzej Kaczmarek2015-12-011-0/+192
< ACL Data TX: Handle 256 flags 0x00 dlen 6 Channel: 258 len 2 [PSM 25 mode 0] {chan 2} AVDTP: Discover (0x01) Command (0x00) type 0x00 label 0 nosp 0 > ACL Data RX: Handle 256 flags 0x02 dlen 14 Channel: 66 len 10 [PSM 25 mode 0] {chan 2} AVDTP: Discover (0x01) Response Accept (0x02) type 0x00 label 0 nosp 0 04 08 14 08 0c 08 08 08 ........