Commits

Commit Message Author Age Changes
e0d61580 monitor: Fix decoding for LE Test End responses Marcel Holtmann 12 years ago 1 file, +2, -2
c3e10c51 monitor: Add two more HCI error code constants Marcel Holtmann 12 years ago 1 file, +2, -0
e0f5646a monitor: Fix size in LE Test End fields Marcel Holtmann 12 years ago 1 file, +1, -1
9e9f054a monitor: Add missing number of completed packets event mask Marcel Holtmann 12 years ago 1 file, +2, -1
611af82a monitor: Add decoding of LE test commands Marcel Holtmann 12 years ago 1 file, +35, -3
5f901fdb monitor: Remove pointless empty lines Marcel Holtmann 12 years ago 1 file, +0, -2
fa7c3f5f monitor: Fix function names for some LE security commands Marcel Holtmann 12 years ago 1 file, +6, -6
2e137ec0 monitor: Fix structures for LE long term key request commands Marcel Holtmann 12 years ago 2 files, +4, -4
e2cb57ec monitor: Add definitions for LE test commands Marcel Holtmann 12 years ago 1 file, +18, -0
feb46c1d 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. Luiz Augusto von Dentz 12 years ago 1 file, +2, -2
0c6df3bb 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. Luiz Augusto von Dentz 12 years ago 1 file, +2, -2
17a59808 monitor: Fix fields for LE Set Advertising Parameters command Marcel Holtmann 12 years ago 1 file, +8, -8
eeeb0584 monitor: Add support for LE Set Advertising Parameters command Marcel Holtmann 12 years ago 1 file, +88, -1
16613cf3 monitor: Fix whitespace issue Marcel Holtmann 12 years ago 1 file, +1, -1
11aea498 monitor: Print proper LE address labels Marcel Holtmann 12 years ago 1 file, +20, -15
d01c2576 tools/scotest: Fix supporting hex voice setting values Johan Hedberg 12 years ago 1 file, +1, -1
0ede25ed tools/scotest: Don't try BT_VOICE unless a non-zero voice setting was given Johan Hedberg 12 years ago 1 file, +12, -8
7ddeb00c tools/btiotest: Fix applying voice setting for incoming connections Johan Hedberg 12 years ago 1 file, +11, -0
c4db4db6 Release 5.8 Marcel Holtmann 12 years ago 2 files, +13, -1
8b11a121 build: Update library version Marcel Holtmann 12 years ago 1 file, +1, -1
a24e0a15 lib: Update company identifiers Marcel Holtmann 12 years ago 1 file, +18, -0
4823139c tools: Fix path for bluetooth.org assigned numbers table Marcel Holtmann 12 years ago 1 file, +1, -1
bb8d0b6f core: Fix error message in profile ext_auth function Frederic Danis 12 years ago 1 file, +1, -1
d0099951 tools/btiotest: Print voice setting Johan Hedberg 12 years ago 1 file, +3, -3
ae673b27 tools/sco-tester: Add more connection test cases Frédéric Dalleau 12 years ago 1 file, +65, -1
5c3dd66b shared/hciemu: Add hciemu_get_features API (needed for SCO tests) Frédéric Dalleau 12 years ago 2 files, +9, -0
7d0783b7 emulator: Add btdev_get_features API (needed for SCO tests) Frédéric Dalleau 12 years ago 2 files, +6, -0
5ae69263 tools/sco-tester: Add new SCO test tool Frédéric Dalleau 12 years ago 2 files, +551, -1
28730452 emulator: Add SCO connection creation support Frédéric Dalleau 12 years ago 1 file, +52, -0
89c0d1a4 scotest: Add option for SCO voice setting Frédéric Dalleau 12 years ago 2 files, +39, -4
36e6ebec btiotest: Add option for SCO voice setting Frédéric Dalleau 12 years ago 1 file, +14, -5
cf721a53 btio: Add option for SCO voice setting Frédéric Dalleau 12 years ago 2 files, +21, -4
c5942913 lib: SCO voice setting support header Modify headers to enable support for changing SCO voice setting. Corresponding commit implements functionality on kernel side. Frédéric Dalleau 12 years ago 1 file, +8, -0
a79f22a4 monitor: Opencode strndupa in print_string Strndupa is GNU extension. print_string is simple and opencoding strndupa is not a big loss. This fix linkage error with bionic library which doesn't provide strndupa. target Executable: btmon (out/target/product/grouper/obj/EXECUTABLES/ btmon_intermediates/LINKED/btmon) prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/ arm-linux-androideabi/4.6.x-google/../../../../ arm-linux-androideabi/bin/ld: out/target/product/grouper/obj/ EXECUTABLES/btmon_intermediates/monitor/sdp.o: in function print_string:external/bluetooth/bluez/monitor/sdp.c:146: error: undefined reference to 'strndupa' collect2: ld returned 1 exit status make: *** [out/target/product/grouper/obj/EXECUTABLES/ btmon_intermediates/LINKED/btmon] Error Szymon Janc 12 years ago 1 file, +5, -1
fd9dddbf audio/player: Fix overflowing position The position should stop at UINT32_MAX after that the progress can no longer be calculated, this should also prevent the position to change when the remote stack doesn't support it which is also indicated with UINT32_MAX which apparently is the case of Spotify on Android 4.3: [CHG] Player /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/player0 Position: 0xffffffff [CHG] Player /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/player0 Status: playing [CHG] Player /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/player0 Position: 0x000000 Luiz Augusto von Dentz 12 years ago 1 file, +2, -1
fabd5655 attrib: Add support for 128-bit characteristic UUIDs in gatt_service_add Custom GATT services typically use 128-bits UUIDs; this patch allows for using gatt_service_add to define such services by adding a new option GATT_OPT_CHR_UUID, which allows for passing bt_uuid_t* values. Note, a previous patch renamed the old GATT_OPT_CHR_UUID into GATT_OPT_CHR_UUID16. Dirk-Jan C. Binnema 12 years ago 2 files, +18, -5
1208266d attrib: Rename GATT_OPT_CHR_UUID into GATT_OPT_CHR_UUID16 Rename the option for all in-tree users. This frees up GATT_OPT_CHR_UUID to be used for UUIDs of type bt_uuid_t* (in a next patch). Dirk-Jan C. Binnema 12 years ago 7 files, +18, -18
f3e175bd attrib: Update gatt_service_add size assert for dealing with 128-bit UUIDs To paraphrase Anderson Lizardo: "h" was overflowing for 128-bit services because the handle is incremented after each attribute is added so at the end we had: 0xffff + 1 == 0 (h is uint16_t). As it seems more complex to try to remove the overflow without affecting the logic too much, we update the assertion. Dirk-Jan C. Binnema 12 years ago 1 file, +1, -1
af6855c6 audio/AVCTP: Do not process browsing queue until connection completes Any request processed before the connection completes will likely fail in avctp_browsing_send so instead delay the processing. Luiz Augusto von Dentz 12 years ago 1 file, +18, -6
0eef17b3 audio/AVCTP: Fix connecting browsing channel multiple times While accepting the connection via DEFER_SETUP a second connection can be created by using avctp_connect_browsing which will not detect one is in course as the state has not yet changed, this can cause memory leaks or crashes as the following: profiles/audio/avctp.c:avctp_confirm_cb() AVCTP: incoming connect from XX:XX:XX:XX:XX:XX profiles/audio/avctp.c:avctp_set_state() AVCTP Browsing Connecting profiles/audio/avctp.c:avctp_connect_browsing_cb() AVCTP Browsing: connected to XX:XX:XX:XX:XX:XX profiles/audio/avctp.c:avctp_set_state() AVCTP Browsing Connected profiles/audio/avctp.c:avctp_connect_browsing_cb() AVCTP Browsing: connected to XX:XX:XX:XX:XX:XX profiles/audio/avctp.c:avctp_set_state() AVCTP Browsing Connected profiles/audio/avctp.c:session_browsing_cb() AVCTP Browsing: disconnected profiles/audio/avctp.c:avctp_set_state() AVCTP Connected Invalid read of size 8 at 0x41EB28: session_browsing_cb (avctp.c:842) by 0x32F5447E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x32F5448157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x32F5448559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x40A28F: main (main.c:583) Address 0x20 is not stack'd, malloc'd or (recently) free'd Luiz Augusto von Dentz 12 years ago 1 file, +3, -1
153a6078 audio/AVRCP: Connect browsing channel in case of GetCapabilities response If the remote stack respond to GetCapabilities before connecting to browsing channel connect it immediatelly as some events might depend on it to work properly. The spec actually recommends the browsing channel to be connected immediatelly after the control channel: AVRCP 1.5 - Page 23 "4.1.1 Connection establishment ... If a browsing channel is supported by both devices it shall be established after control channel establishment. It is recommended that the browsing channel is established immediately after the control channel is established and released immediately before the control channel is released to avoid unsatisfactory latency when a browsing command is sent." Luiz Augusto von Dentz 12 years ago 1 file, +7, -0
bd56b05d audio/AVRCP: Connect browsing channel when accepting the connection If remote stack for some reason don't connect the browsing channel connect it after a timeout (1 sec.) Luiz Augusto von Dentz 12 years ago 1 file, +48, -8
78ec5c13 audio/AVRCP: Fix not setting browsing feature in CT record The record already contain the additional protocol containing the browsing channel but the feature is not set as it is supposed to. Luiz Augusto von Dentz 12 years ago 1 file, +2, -1
01f7adca audio/AVRCP: Fix not connecting Browsing channel when supported Both controller and target services can initiate the connection but probably only one of the services will be in CONNECTING state which may happen to not have browsing feature set. Currently this happens when connecting BlueZ vs BlueZ where the CT record does not have browsing feature set so if the corresponding service start connecting it wont connect the browsing channel due to lack of feature. Luiz Augusto von Dentz 12 years ago 1 file, +4, -10
193a7119 audio/AVRCP: Fix memory leaks When the remote stack support both AVAILABLE_PLAYER_CHANGED and ADDRESSED_PLAYER_CHANGED the player twice are inited twice leaking the memory allocated in the first time: 16 bytes in 1 blocks are definitely lost in loss record 45 of 236 at 0x4A06409: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x32F544D89E: g_malloc (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x32F5464BF7: g_memdup (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x4247CC: avrcp_get_media_player_list_rsp (avrcp.c:2432) by 0x41ECAB: session_browsing_cb (avctp.c:826) by 0x32F5447E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x32F5448157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x32F5448559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x40A28F: main (main.c:583) 16 bytes in 1 blocks are definitely lost in loss record 46 of 236 at 0x4A082F7: realloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x32F544D946: g_realloc (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x32F5466D43: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x32F5467032: g_string_insert_len (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x32F5435287: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x421E62: avrcp_set_browsed_player_rsp (avrcp.c:2349) by 0x41ECAB: session_browsing_cb (avctp.c:826) by 0x32F5447E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x32F5448157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x32F5448559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3) by 0x40A28F: main (main.c:583) Luiz Augusto von Dentz 12 years ago 1 file, +2, -1
d27d5ead scanparam: Remove unneeded header include Claudio Takahasi 12 years ago 1 file, +0, -2
04c1af82 scanparam: Apply convention for "GSource id" like variable By convention, BlueZ code checks for "Gsource id" like variables using: if (source_id > 0) ... Also fix the variable type to match that returned by g_attrib_unregister(). Anderson Lizardo 12 years ago 1 file, +2, -2
8de51036 scanparam: Fix missing check for valid GAttrib when removing device If device is removed while there is no connection, scan->attrib will be NULL, because its reference is managed by attio connect/disconnect callbacks. This means that on disconnect any resources owned by GAttrib will be properly destroyed. Anderson Lizardo 12 years ago 1 file, +1, -1
63eb0e90 scanparam: Remove unnecessary assignment "scan" will be g_free()'d on this same function, so no need to assign 0 to refresh_cb_id. Anderson Lizardo 12 years ago 1 file, +1, -3
9a3b7a8d scanparam: Fix handle range check on descriptor discovery When discovering descriptors, if there is only a single descriptor, the start handle will be equal to the end handle. It is valid to issue the Find Information Request on this case. Before this fix, notification for Scan Refresh characteristic was never enabled. Anderson Lizardo 12 years ago 1 file, +1, -1
Previous Next