Commits

Commit Message Author Age Changes
a86eae7f Revert "core: Add provision for terminating an ATT connection" This reverts commit f89a77478af78d41c80ab7605662382b9e4e1c36. This is not needed and actually introduces a bug. When the "Disconnect" API of device is called device->attrib is unref-ed via a watch set on G_IO_HUP. The channel is shutdown when the last reference is removed. The code introduced here shuts down the channel and prevents the watch from getting called. This means we leak a reference to device->attrib. This can cause a number of bad things. For example, if the device is temporary, it will never be freed, and we won't be able to pair to it again. Arik Nemtsov 13 years ago 1 file, +0, -8
fb018899 device: don't auto-connect on disc-cb attio callback registration If a device is already connected, don't auto-connect if we register a disconnect-only attio callback. This will obviously fail. Arik Nemtsov 13 years ago 1 file, +9, -4
ba9888c3 sdp: Check type of sdp data before dereferencing Frédéric Dalleau 13 years ago 2 files, +2, -1
817b2577 audio: fix io channel shutdown on error In the unlikely case of service record allocation error, the io channel should be properly shut down. Mikel Astiz 13 years ago 1 file, +8, -5
8e6f1054 audio: fix missing io channel shutdown Channel must be explicitly shut down because otherwise the reference counter never reaches zero, due to the server installed by bt_io_listen. Mikel Astiz 13 years ago 1 file, +2, -0
f732bbf9 audio: fix missing unref in case of error audio_adapter_get() increases the reference counter of the adapter, so it's necessary to decrement it in case of error. Mikel Astiz 13 years ago 1 file, +18, -3
cff8c39f avrcp: Add error code for rejected vendor command Fix response for any vendor commands when there are no players registered. According to the specification responses should be REJECTED with error code. "For error response PDU the response parameter is always the error code independent of the response format defined for ACCEPTED PDU response for the corresponding PDU command." (source: section 4.7.9 of AVRCP 1.3 specification) Michal Labedzki 13 years ago 3 files, +20, -1
e8e323e1 avrcp: Fix response ctype of AbortContinuingResponse Request ctype of "AbortContinuingResponse" is CONTROL, so response should be ACCEPTED instead of STABLE. This affect PTS Test Case for TP/RCR/BV-04-C. Michal Labedzki 13 years ago 1 file, +1, -1
d5c860b4 test-discovery: Fix printing non-ASCII characters Johan Hedberg 13 years ago 1 file, +2, -0
5e5cbd06 media: register disconnect watch at transport add disconnect watch is not removed when the media owner is freed if an error occurs while resuming in acquire (id == 0). Frédéric Dalleau 13 years ago 1 file, +3, -3
4afb762c gateway: Fix crash if SCO connection fails In some situations, a connect callback is created, but this callback is not added to media_owner. Thus when the owner is destroyed and at rfcomm disconnect, the callback is executed with an invalid pointer. Frédéric Dalleau 13 years ago 1 file, +1, -4
a418b9e8 Add emulator/btvirt to .gitignore Anderson Lizardo 13 years ago 1 file, +1, -0
b57c7079 Release 4.99 Marcel Holtmann 13 years ago 2 files, +13, -1
64ab33fc Update library version Marcel Holtmann 13 years ago 1 file, +1, -1
6e0bd7d4 lib: Update company identifiers Marcel Holtmann 13 years ago 1 file, +24, -0
e08162a6 lib: Add a2mp.h to lib_headers Johan Hedberg 13 years ago 1 file, +1, -1
3576d1ba lib: Add A2MP definitions Peter Krystad 13 years ago 1 file, +115, -0
8f9a1837 mgmtops: Use DBG not error for printing name in read_info_complete This is debug not an error message. Szymon Janc 13 years ago 1 file, +1, -1
9055047c mgmtops: Add debug print to update_settings Print settings for easier tracking what has changed. Szymon Janc 13 years ago 1 file, +2, -0
b22a71ec mgmtops: When settings discoverable also set connectable if not set yet Otherwise command would be rejected e.g. when setting discoverable at bluetoothd startup. Szymon Janc 13 years ago 1 file, +6, -3
d34b7422 Remove not needed total variable in get_ltk_info This variable is not really needed and was mostly dead assigned. Szymon Janc 13 years ago 1 file, +2, -5
b552b55c input: Set up uinput device again, if it was previously closed. If you connect a PS3 controller to bluetoothd as an input device, then take the batteries out of a PS3 controller, then put them back in and push a few buttons, it will eventually cause an error which causes the uinput socket to be closed. It will then re-connect to bluetoothd, but the uinput socket fd will be -1, so it needs to be set up again after the re-connect. Jeff Hansen 13 years ago 1 file, +4, -2
4002cf27 lib: Fix compile issue when using in C++ The compiler error is: /usr/include/bluetooth/bluetooth.h::131:9: error: invalid conversion from 'void*' to 'bt_get_le64(void*)::<anonymous struct>*' ... The reason is that C++, in contrast to C, does not allow conversion of void * to anything, and this code gets compiled as C++ when the app is written in C++. The macro with the assignment itself is older, but only recent Bluez starts to use it in inline functions, thus triggering the problem. This patch keeps the "struct __attribute__((packed))" magic and merely changes the typecast so that it works in C and C++. Like the existing macro this patch relies on support for typeof. Patrick Ohly 13 years ago 1 file, +2, -2
af39e81a core: Fix calling stop_discovery through btd_adapter_stop Johan Hedberg 13 years ago 1 file, +4, -2
226a0643 core: remove set_limited_discoverable from adapter_ops driver Core should not longer need to take care of details of discoverable bits Luiz Augusto von Dentz 13 years ago 4 files, +0, -17
92f9d578 core: Make adapter_ops->set_discoverable to take discoverable timeout This enables the driver to implements its own handling of the timeout Luiz Augusto von Dentz 13 years ago 4 files, +101, -109
49e3fa41 btiotest: Add option to update security level while connecting Luiz Augusto von Dentz 13 years ago 1 file, +39, -3
adf57752 mgmtops: Use proper boolean value for mgmt_set_powered call Johan Hedberg 13 years ago 1 file, +1, -1
097f46d9 SAP: Make PADDING4 macro a bit more robust Bitwise operations are done before arithmetic operations and this might cause undesired results if macro is called with parameter of form x+y. Szymon Janc 13 years ago 1 file, +1, -1
7cfcd11a core: Remove name and class setting from btd_adapter_start() Especially for mgmtops it's important that these values are pushed down in the stack *before* powering on, so btd_adapter_start() is the wrong place. Instead, adapter functions are added to hciops/mgmtops can fetch these values at the right point during adapter init and push them down in the stack (to the kernel). Johan Hedberg 13 years ago 4 files, +198, -165
a5783264 mgmtops: Use error() instead of DBG() for command failures Johan Hedberg 13 years ago 1 file, +3, -1
5ee47d35 mgmt: Move string helpers to lib/mgmt.c Johan Hedberg 13 years ago 2 files, +113, -113
6ed27370 mgmt: Add missing error code definitions Johan Hedberg 13 years ago 1 file, +4, -0
970e3100 monitor: Add support for storing btsnoop formatted logs Marcel Holtmann 13 years ago 5 files, +207, -0
4401737a mgmtops: Fix clearing of pending_uuids after g_slist_free_full() Johan Hedberg 13 years ago 1 file, +2, -0
975d0420 core: Remove bogus adapter->up check from probe_driver() Johan Hedberg 13 years ago 1 file, +0, -3
c2ecc3ef audio: Remove redundant state_changed() call in headset_server_probe() Johan Hedberg 13 years ago 1 file, +0, -1
466360dd gatttool: Add command completion for interactive mode Jefferson Delfes 13 years ago 1 file, +28, -0
7b797f88 mgmtops: Add CANCEL_PAIR_DEVICE command complete handling This avoids the "Unknown command complete for opcode 26" error. Anderson Lizardo 13 years ago 1 file, +3, -0
ba49febf mgmt: Add error code definitions Johan Hedberg 13 years ago 1 file, +17, -0
36711fb6 mgmt-api: Add error code descriptions Johan Hedberg 13 years ago 1 file, +24, -0
f3bf387f lib: Add L2CAP Create/Move Channel definitions Peter Krystad 13 years ago 1 file, +45, -0
bac09a9d monitor: Add defines for connection packet type changes Marcel Holtmann 13 years ago 1 file, +13, -0
e4d00337 lib: Add missing host feature defines This patch add missing SSP and "Simultaneous LE & BR/EDR" feature bit definitions to hci.h. Johan Hedberg 13 years ago 1 file, +3, -1
d5be1cc1 emulator: Add initial version of new emulator Marcel Holtmann 13 years ago 8 files, +1680, -1
9d3b93ed monitor: Add Bluetooth HCI declarations Marcel Holtmann 13 years ago 3 files, +541, -2
cad9bb23 monitor: Use better signal integration Marcel Holtmann 13 years ago 3 files, +80, -22
a3877b43 hciemu: Fix wrong error code in host control Marcel Holtmann 13 years ago 1 file, +1, -1
ee39765d monitor: Add support for hcidump fallback Marcel Holtmann 13 years ago 10 files, +2232, -1246
987ffb73 lib: Make unaligned access functions const Marcel Holtmann 13 years ago 1 file, +24, -24
Previous Next