Luiz Augusto von Dentz
adf5d953c9
hcidump: Add basic AVRCP parsing
...
This add support for AV/C Panel passthrough headers
2012-12-17 23:53:04 +01:00
Luiz Augusto von Dentz
34af2e79ad
hcidump: Add basic AVCTP parsing
2012-12-17 23:53:03 +01:00
Luiz Augusto von Dentz
851b3fd5c7
hcidump: Add support for OBEX Action command
...
Add support for parsing OBEX Action command and related headers.
2012-12-17 23:53:03 +01:00
Johan Hedberg
da3149f318
hcidump: Add missing error code descriptions from Core spec. 4.0
2012-12-17 23:53:03 +01:00
Johan Hedberg
396d15b337
hcidump: Fix gcc 4.6 compiler warnings
2012-12-17 23:53:03 +01:00
Luiz Augusto von Dentz
3da0fb3a08
hcidump: Add basic parsing for SMP
2012-12-17 23:53:03 +01:00
Johan Hedberg
3a36ce57d3
hcidump: Fix infinite loop in read by group response parsing
2012-12-17 23:53:03 +01:00
Johan Hedberg
ea8fb0bc76
hcidump: Add ATT parsing for the ATT fixed CID
2012-12-17 23:53:03 +01:00
Iain Hibbert
b8c3c64af3
hcidump: use correct size to copy 'direction' value
...
frm.in is stored as an uint8_t, so we cannot copy an int there
directly. use an intermediate variable so that it also works
on big-endian systems.
2012-12-17 23:53:03 +01:00
Andre Dieb Martins
1bf376e950
hcidump: Add parsing for ATT Execute Write command
...
BT's Core V4.0 document is buggy regarding Execute Write Response, so we'll
leave it out until a proper description is given.
2012-12-17 23:53:03 +01:00
Andre Dieb Martins
245bb41fd5
hcidump: Add parsing for ATT Prepare Write
2012-12-17 23:53:03 +01:00
Andre Dieb Martins
87420ada41
hcidump: Fix handle formatting for ATT Handle Notify
2012-12-17 23:53:03 +01:00
Andre Dieb Martins
c0720bef51
hcidump: Add parsing for ATT Signed Write
2012-12-17 23:53:03 +01:00
Andre Dieb Martins
8c6a10f527
hcidump: Add parsing for ATT Write Command
2012-12-17 23:53:03 +01:00
Andre Dieb Martins
32f993ef21
hcidump: Add parsing for ATT Write Request
...
Note we do not need extra parsing for ATT Write Response as it only has
one field (opcode).
2012-12-17 23:53:03 +01:00
Johan Hedberg
ec6a4aed06
hcidump: Minor coding style fixes to ATT parser code
2012-12-17 23:53:03 +01:00
Andre Dieb Martins
f0c49c0165
hcidump: Add parsing for Read Multiple
2012-12-17 23:53:03 +01:00
Andre Dieb Martins
45786d1ecb
hcidump: Add parsing for ATT Read By Group
...
Additionally, fix Read By Type printf formatting for handles.
2012-12-17 23:53:02 +01:00
Andre Dieb Martins
fb5bb0cf07
hcidump: Add parsing for ATT Read Blob
2012-12-17 23:53:02 +01:00
Andre Dieb Martins
ea43a85bd4
hcidump: Add parsing for ATT Find By Type
2012-12-17 23:53:02 +01:00
Anderson Lizardo
0c78d8cb1f
hcidump: Fix compilation against latest BlueZ
...
BlueZ now has ntoh64()/hton64() functions in bluetooth.h, therefore the
hcidump local copy is not necessary.
2012-12-17 23:53:02 +01:00
Andre Dieb Martins
22974ec9ef
hcidump: Fix HCI LE advertising report dump
...
LE advertising report event has only one data block for each report.
Thus, we can't reuse ext_inquiry_response_dump(), which loops over
successive data blocks until reaches a zero-length one.
This commit introduces ext_inquiry_data_dump(), which dumps a frame
containing data formatted according to [Vol 3] Part C, Section 8. This
function is reused by ext_inquiry_response_dump().
Also adds RSSI parsing to each advertising report.
2012-12-17 23:53:02 +01:00
Daniel Orstadius
10fb9d6a17
hcidump: Add check for ACL_START_NO_FLUSH
...
In addition to ACL_START, hcidump should check for the flag
ACL_START_NO_FLUSH to indicate the start of a frame.
Using '==' instead of '&' for the comparison since
ACL_START_NO_FLUSH is defined to zero.
The flag was introduced in BlueZ commit
2430512c98
2012-12-17 23:53:02 +01:00
Andre Dieb Martins
d19c035749
hcidump: Add ATT read by type req/resp dump
2012-12-17 23:53:02 +01:00
Andre Dieb Martins
38954ff4c7
hcidump: Add ATT dump for read req/resp
2012-12-17 23:53:02 +01:00
Andre Dieb Martins
b7388e9fbf
hcidump: Add ATT find info req/resp dump
...
Adds dumping for ATT's Find Info Request and Response. Also adds a simple
name resolving for GATT common uuids (listed on Assigned Numbers).
2012-12-17 23:53:02 +01:00
Andre Dieb Martins
b92b12c134
hcidump: Add ATT error pdu dump
2012-12-17 23:53:02 +01:00
Andre Dieb Martins
6b066c9b8d
hcidump: Add ATT MTU req/resp and notify value
2012-12-17 23:53:02 +01:00
Andre Dieb Martins
6098c44af0
hcidump: Partial dump of ATT PDUs
...
Starts implementing dumping for ATT/GATT pdus.
2012-12-17 23:53:02 +01:00
André Dieb Martins
40499cd8e6
hcidump: Add missing const to utility functions
2012-12-17 23:53:02 +01:00
André Dieb Martins
021ad1309b
hcidump: Implement dump for event LE Read Remote Used Features Complete
2012-12-17 23:53:02 +01:00
André Dieb Martins
31167d94ee
hcidump: Implement dumping for evnet LE Connection Update Complete.
2012-12-17 23:53:02 +01:00
André Dieb Martins
b67814b8da
hcidump: Fix time intervals dumping of LE commands.
...
Add missing btohs() convertions and spec. constants for converting time
intervals for LE Set Scan Parameters and LE Set Advertising Parameters.
2012-12-17 23:53:02 +01:00
Marcel Holtmann
c6b73e9b44
hcidump: Update copyright information
2012-12-17 23:53:01 +01:00
Anderson Lizardo
c8dc6d040f
hcidump: Fix uninitialized struct sockaddr_hci memory passed to bind()
...
The bind() call in open_socket() was passing a struct sockaddr_hci to
bind() with two uninitialized bytes. This caused "Invalid argument" errors
on kernels which do strict checks of struct sockaddr_hci fields.
2012-12-17 23:53:01 +01:00
André Dieb Martins
cb0bb3a9e8
hcidump: Implement partial support for LE events and commands
2012-12-17 23:53:01 +01:00
Marcel Holtmann
77b2a11a08
hcidump: Fix breakage with LE advertising reports decoding
2012-12-17 23:53:01 +01:00
Marcel Holtmann
ecdcbb42b0
hcidump: Add support for decoding LE advertising reports
2012-12-17 23:53:01 +01:00
Ville Tervo
1a62ff9afd
hcidump: Fix missing comma in cmd_le_str
2012-12-17 23:53:01 +01:00
Ville Tervo
fc497f800c
hcidump: Add master/slave parsing for le_conn_complete event
2012-12-17 23:53:01 +01:00
Inga Stotland
c1240fdfa4
hcidump: Parsing of AMP specific HCI events
2012-12-17 23:53:01 +01:00
Inga Stotland
0c5c007c58
hcidump: Parse Command Complete events corresponding to AMP related HCI commands
2012-12-17 23:53:01 +01:00
Inga Stotland
acd533232a
hcidump: Add parsing of AMP related HCI commands
2012-12-17 23:53:01 +01:00
Ville Tervo
50ae421b47
hcidump: Add LE connection creation dumping
2012-12-17 23:53:01 +01:00
Marcel Holtmann
5d365c05fd
hcidump: Fix unneeded single character option parsing
2012-12-17 23:53:01 +01:00
Marcel Holtmann
14e915fafd
hcidump: Add command for displaying hcidump version
2012-12-17 23:53:01 +01:00
Marcel Holtmann
4f63d01dfd
hcidump: Forgot to remove the --verbose option parsing
2012-12-17 23:53:01 +01:00
Marcel Holtmann
865cf4f1ed
hcidump: Remove --verbose also from usage description
2012-12-17 23:53:01 +01:00
Marcel Holtmann
c89eff9be0
hcidump: Just default to verbose parsing and remove the option
2012-12-17 23:53:01 +01:00
Marcel Holtmann
4fd47e9f91
hcidump: Remove --noappend and --btsnoop options from manual page
2012-12-17 23:53:00 +01:00