Commit Graph

15266 Commits

Author SHA1 Message Date
Marcel Holtmann
80c88f49a3 monitor: Add complete decoding of LL control PDUs 2013-08-25 19:45:46 -07:00
Marcel Holtmann
dc0d2a8d1f monitor: Add LL control PDU constants and structures 2013-08-25 19:45:08 -07:00
Marcel Holtmann
9570f9e17f monitor: Export printing functions for LL features and channel map 2013-08-25 19:41:28 -07:00
Marcel Holtmann
6b6d78d273 monitor: Export printing functions for version and company strings 2013-08-25 18:59:35 -07:00
Marcel Holtmann
fc871b7e15 monitor: Use Bluetooth monitor type for HCI traces 2013-08-25 16:12:17 -07:00
Marcel Holtmann
0a200567f5 tools: Update magic definition for BTSnoop file format 2013-08-25 12:20:57 -07:00
Marcel Holtmann
66ee9fe10c tools: Fix typo in error message 2013-08-25 11:20:20 -07:00
Marcel Holtmann
3063f6794a build: Include btsnoop and PCAP file handling functions 2013-08-25 11:19:05 -07:00
Marcel Holtmann
fdc9c48c6a shared: Add functions for PCAP file handling 2013-08-25 11:18:22 -07:00
Marcel Holtmann
127e3aefba shared: Add functions for btsnoop file handling 2013-08-25 11:17:04 -07:00
Marcel Holtmann
a57482c38a monitor: Overwrite existing link layer access addresses 2013-08-25 11:11:46 -07:00
Marcel Holtmann
70b587a855 monitor: Add support for LMP decoding 2013-08-23 20:43:01 -07:00
Marcel Holtmann
c631cd21da monitor: Add support for decoding link layer packets 2013-08-23 20:35:15 -07:00
Marcel Holtmann
5e3da6645b monitor: Fix printing of physical packet from simulation 2013-08-23 20:33:57 -07:00
Marcel Holtmann
e27e058c6e monitor: Add label parameter to address printing function 2013-08-23 20:33:01 -07:00
Marcel Holtmann
0611470cdd monitor: Move btsnoop file creating into control handling 2013-08-23 10:58:52 -07:00
Marcel Holtmann
d815cc4adf tools: Use btsnoop constants in conversion utility 2013-08-23 09:52:49 -07:00
Marcel Holtmann
3a5c84b3d0 monitor: Export function for printing LE addresses 2013-08-23 01:05:49 -07:00
Marcel Holtmann
d268a1f072 monitor: Export function for print advertising data 2013-08-23 00:54:51 -07:00
Marcel Holtmann
6d89e266f1 unit: Add test case for link layer CRC functions 2013-08-21 23:14:18 -07:00
Marcel Holtmann
6915f9bf88 monitor: Add functions for link layer CRC calculations 2013-08-21 23:04:59 -07:00
Luiz Augusto von Dentz
6e8cf9a167 test/test-nap: Fix interface name 2013-08-21 15:10:38 +03:00
Luiz Augusto von Dentz
14c2ef7ee9 network: Fix crash after removing adapter
The service watch is not removed so once the client disconnects the
callback is called using the data already freed:
Invalid read of size 8
   at 0x428CFE: server_remove_sessions.isra.0 (server.c:605)
   by 0x428D80: server_disconnect (server.c:626)
   by 0x475426: service_filter (watch.c:486)
   by 0x47569A: message_filter (watch.c:554)
   by 0x32F840F9E5: dbus_connection_dispatch (in /usr/lib64/libdbus-1.so.3.7.4)
   by 0x474347: message_dispatch (mainloop.c:76)
   by 0x3383648962: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3383647E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3383648157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3383648559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x40A2CF: main (main.c:583)
 Address 0x4eb5f00 is 32 bytes inside a block of size 56 free'd
   at 0x4A074C4: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
   by 0x338364D9AE: g_free (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x429663: server_unregister (server.c:848)
   by 0x33836648F7: g_slist_foreach (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x454180: adapter_remove (adapter.c:2886)
   by 0x45C940: index_removed (adapter.c:5651)
   by 0x467FDF: received_data (mgmt.c:252)
   by 0x3383647E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3383648157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3383648559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x40A2CF: main (main.c:583)
2013-08-21 15:10:32 +03:00
Marcel Holtmann
f8444cbe7a monitor: Add stub for link layer decoding 2013-08-20 19:56:21 -07:00
Marcel Holtmann
a9134a625d monitor: Add support for reading physical simulation traces 2013-08-20 19:44:35 -07:00
Marcel Holtmann
8da7fa1c2c monitor: Add btsnoop functions physical datalink type 2013-08-20 19:43:25 -07:00
Marcel Holtmann
491aae5540 monitor: Add decoding stub for simulator packets 2013-08-20 19:42:40 -07:00
Marcel Holtmann
542f1520df monitor: Remove datalink check when creating btsnoop files 2013-08-20 17:25:21 -07:00
Marcel Holtmann
5381735e3b monitor: Add include for stdint.h header 2013-08-20 16:53:18 -07:00
Marcel Holtmann
8ca1d9b907 monitor: Use btsnoop constants for different packet types 2013-08-20 16:41:45 -07:00
Marcel Holtmann
e9d67091bd monitor: Add stub for handling vendor events 2013-08-20 16:38:48 -07:00
Marcel Holtmann
74bb289de1 monitor: Remove unused functions for btsnoop flag conversion 2013-08-20 16:32:37 -07:00
Marcel Holtmann
0e5dfcb640 monitor: Specify and use btsnoop opcode constants 2013-08-20 16:31:54 -07:00
Marcel Holtmann
ac35a3fd6d monitor: Provide function for generic btsnoop write operation 2013-08-20 16:17:08 -07:00
Marcel Holtmann
edce6a49fc monitor: Use explicit functionnames for btsnoop packet operations 2013-08-20 16:10:17 -07:00
Marcel Holtmann
d3393028e6 monitor: Allow specifying type of btsnoop file to create 2013-08-20 15:58:53 -07:00
Marcel Holtmann
132fbb280e monitor: Set default index filter in control handler 2013-08-20 15:52:20 -07:00
Marcel Holtmann
c3fb66e7b4 monitor: Use constants for btsnoop datalink types 2013-08-20 15:45:49 -07:00
Luiz Augusto von Dentz
ea2e42acca build: Fix not checking readline.h for bluetooth-player
If --disable-client is passed to configure script is possible to build
BlueZ without readline which would cause the following error:

tools/bluetooth-player.c:36:31: fatal error: readline/readline.h: No such file or directory
 #include <readline/readline.h>
                               ^
2013-08-20 13:15:49 +03:00
Marcel Holtmann
303b8b7757 monitor: Return btsnoop type when opening files 2013-08-19 23:11:16 -07:00
Marcel Holtmann
bbe209ce19 monitor: Use separate btsnoop write routine 2013-08-19 22:33:07 -07:00
Marcel Holtmann
269522ae0e monitor: Add error constant for memory capacity exceeded 2013-08-19 11:05:06 -07:00
Marcel Holtmann
3ba92b7a31 build: Add sco-tester to .gitignore list 2013-08-18 10:43:55 -07:00
Marcel Holtmann
1919205c2c monitor: Fix spelling for LE supported states 2013-08-17 12:19:36 -07:00
Marcel Holtmann
e704187ca0 monitor: Fix structure for LE Set Scan Response Data command 2013-08-15 02:45:26 -07:00
Marcel Holtmann
e0d6158064 monitor: Fix decoding for LE Test End responses 2013-08-15 00:07:57 -07:00
Marcel Holtmann
c3e10c51b9 monitor: Add two more HCI error code constants 2013-08-15 00:06:15 -07:00
Marcel Holtmann
e0f5646a9c monitor: Fix size in LE Test End fields 2013-08-15 00:05:19 -07:00
Marcel Holtmann
9e9f054a2e monitor: Add missing number of completed packets event mask 2013-08-13 09:28:51 -07:00
Marcel Holtmann
611af82a18 monitor: Add decoding of LE test commands 2013-08-12 20:50:44 -07:00