diff options
author | Gowtham Anandha Babu <gowtham.ab@samsung.com> | 2014-11-12 14:31:36 +0530 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-11-12 17:07:05 +0200 |
commit | 600531aa4d98d472461b6df61b929fa2ea44c916 (patch) | |
tree | 5dcf56baeda65568b79e91ba113254c2ca6b53af /tools/sdptool.c | |
parent | 068a9a4769e585a74e97ccb7168a7cbe00c7ad98 (diff) | |
download | bluez-600531aa4d98d472461b6df61b929fa2ea44c916.tar.gz |
tools/sdptool: Add support for PBAP service record
PBAP Record output captured from sdptool:
Attribute Identifier : 0x0 - ServiceRecordHandle
Integer : 0x1000a
Attribute Identifier : 0x1 - ServiceClassIDList
Data Sequence
UUID16 : 0x112f - Phonebook Access (PBAP) - PSE
Attribute Identifier : 0x4 - ProtocolDescriptorList
Data Sequence
Data Sequence
UUID16 : 0x0100 - L2CAP
Data Sequence
UUID16 : 0x0003 - RFCOMM
Channel/Port (Integer) : 0xf
Data Sequence
UUID16 : 0x0008 - OBEX
Attribute Identifier : 0x5 - BrowseGroupList
Data Sequence
UUID16 : 0x1002 - PublicBrowseGroup
Attribute Identifier : 0x9 - BluetoothProfileDescriptorList
Data Sequence
Data Sequence
UUID16 : 0x1130 - Phonebook Access (PBAP)
Version (Integer) : 0x101
Attribute Identifier : 0x100
Data : 50 68 6f 6e 65 20 42 6f 6f 6b 20 41 63 63 65 73 73 00
Attribute Identifier : 0x314 - SupportedRepositories
Integer : 0x1
Attribute Identifier : 0x317 - PbapSupportedFeatures
Integer : 0x3
Diffstat (limited to 'tools/sdptool.c')
-rw-r--r-- | tools/sdptool.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/sdptool.c b/tools/sdptool.c index 88a52bb07..9fd1b7fc5 100644 --- a/tools/sdptool.c +++ b/tools/sdptool.c @@ -232,6 +232,12 @@ static struct attrib_def goep_attrib_names[] = { { 0x200, "GoepL2capPsm", NULL, 0 }, }; +/* Name of the various PBAP attributes. See BT assigned numbers */ +static struct attrib_def pbap_attrib_names[] = { + { 0x0314, "SupportedRepositories", NULL, 0 }, + { 0x0317, "PbapSupportedFeatures", NULL, 0 }, +}; + /* Name of the various MAS attributes. See BT assigned numbers */ static struct attrib_def mas_attrib_names[] = { { 0x0315, "MASInstanceID", NULL, 0 }, @@ -327,7 +333,8 @@ static struct uuid_def uuid16_names[] = { { 0x112c, "Audio/Video", NULL, 0 }, { 0x112d, "SIM Access (SAP)", NULL, 0 }, { 0x112e, "Phonebook Access (PBAP) - PCE", NULL, 0 }, - { 0x112f, "Phonebook Access (PBAP) - PSE", NULL, 0 }, + { 0x112f, "Phonebook Access (PBAP) - PSE", + pbap_attrib_names, N_ELEMENTS(pbap_attrib_names) }, { 0x1130, "Phonebook Access (PBAP)", NULL, 0 }, { 0x1131, "Headset (HSP)", NULL, 0 }, { 0x1132, "Message Access (MAP) - MAS", |