Commit Graph

15204 Commits

Author SHA1 Message Date
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
Marcel Holtmann
5f901fdb0f monitor: Remove pointless empty lines 2013-08-12 20:39:01 -07:00
Marcel Holtmann
fa7c3f5f6e monitor: Fix function names for some LE security commands 2013-08-12 20:34:18 -07:00
Marcel Holtmann
2e137ec032 monitor: Fix structures for LE long term key request commands 2013-08-12 20:30:19 -07:00
Marcel Holtmann
e2cb57ecf7 monitor: Add definitions for LE test commands 2013-08-12 20:26:47 -07:00
Luiz Augusto von Dentz
feb46c1d38 client/transfer: Add proper message to errors
This improve the error message when a transfer fails by using
g_obex_strerror to decode the response code to a human readable string.
2013-08-12 13:48:09 +03:00
Luiz Augusto von Dentz
0c6df3bb9b gobex: Add proper message to transfer errors
This improve the error message when a transfer fails by using
g_obex_strerror to decode the response code to a human readable string.
2013-08-12 11:13:51 +03:00
Marcel Holtmann
17a59808a1 monitor: Fix fields for LE Set Advertising Parameters command 2013-08-11 21:29:08 -07:00
Marcel Holtmann
eeeb058432 monitor: Add support for LE Set Advertising Parameters command 2013-08-11 21:28:03 -07:00
Marcel Holtmann
16613cf37d monitor: Fix whitespace issue 2013-08-11 21:09:52 -07:00
Marcel Holtmann
11aea49884 monitor: Print proper LE address labels 2013-08-11 21:07:53 -07:00
Johan Hedberg
d01c257665 tools/scotest: Fix supporting hex voice setting values 2013-08-08 14:05:57 +03:00
Johan Hedberg
0ede25eddc tools/scotest: Don't try BT_VOICE unless a non-zero voice setting was given 2013-08-08 14:01:48 +03:00