Commit Graph

9613 Commits

Author SHA1 Message Date
Johan Hedberg
d5c860b4f4 test-discovery: Fix printing non-ASCII characters 2012-03-12 14:05:10 +02:00
Frédéric Dalleau
5e5cbd0637 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).
2012-03-08 17:58:18 -06:00
Frédéric Dalleau
4afb762ce4 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.
2012-03-08 17:58:18 -06:00
Anderson Lizardo
a418b9e82b Add emulator/btvirt to .gitignore 2012-03-06 12:55:43 -08:00
Marcel Holtmann
b57c70794d Release 4.99 2012-03-06 09:04:22 -08:00
Marcel Holtmann
64ab33fc4f Update library version 2012-03-06 09:02:51 -08:00
Marcel Holtmann
6e0bd7d436 lib: Update company identifiers 2012-03-06 08:59:58 -08:00
Johan Hedberg
e08162a611 lib: Add a2mp.h to lib_headers 2012-03-05 16:36:22 -08:00
Peter Krystad
3576d1ba67 lib: Add A2MP definitions 2012-03-05 16:28:12 -08:00
Szymon Janc
8f9a1837fc mgmtops: Use DBG not error for printing name in read_info_complete
This is debug not an error message.
2012-03-05 11:35:08 -08:00
Szymon Janc
9055047c21 mgmtops: Add debug print to update_settings
Print settings for easier tracking what has changed.
2012-03-05 11:34:54 -08:00
Szymon Janc
b22a71eccc mgmtops: When settings discoverable also set connectable if not set yet
Otherwise command would be rejected e.g. when setting discoverable at
bluetoothd startup.
2012-03-05 11:34:48 -08:00
Szymon Janc
d34b7422ff Remove not needed total variable in get_ltk_info
This variable is not really needed and was mostly dead assigned.
2012-03-05 11:34:36 -08:00
Jeff Hansen
b552b55cf6 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.
2012-03-04 21:07:48 -08:00
Patrick Ohly
4002cf271e 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.
2012-03-04 15:24:39 -08:00
Johan Hedberg
af39e81ae9 core: Fix calling stop_discovery through btd_adapter_stop 2012-03-02 19:12:38 -08:00
Luiz Augusto von Dentz
226a064305 core: remove set_limited_discoverable from adapter_ops driver
Core should not longer need to take care of details of discoverable bits
2012-03-02 16:11:01 -08:00
Luiz Augusto von Dentz
92f9d57803 core: Make adapter_ops->set_discoverable to take discoverable timeout
This enables the driver to implements its own handling of the timeout
2012-03-02 16:09:39 -08:00
Luiz Augusto von Dentz
49e3fa4157 btiotest: Add option to update security level while connecting 2012-03-02 15:59:49 -08:00
Johan Hedberg
adf57752a2 mgmtops: Use proper boolean value for mgmt_set_powered call 2012-03-02 15:34:34 -08:00
Szymon Janc
097f46d93d 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.
2012-03-02 14:38:06 -08:00
Johan Hedberg
7cfcd11a95 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).
2012-03-03 00:29:08 +02:00
Johan Hedberg
a5783264f7 mgmtops: Use error() instead of DBG() for command failures 2012-03-02 03:24:13 +02:00
Johan Hedberg
6ed27370c0 mgmt: Add missing error code definitions 2012-03-02 03:17:50 +02:00
Johan Hedberg
5ee47d3540 mgmt: Move string helpers to lib/mgmt.c 2012-03-02 03:17:50 +02:00
Marcel Holtmann
970e3100d0 monitor: Add support for storing btsnoop formatted logs 2012-03-01 16:57:29 -08:00
Johan Hedberg
4401737a30 mgmtops: Fix clearing of pending_uuids after g_slist_free_full() 2012-03-02 02:13:42 +02:00
Johan Hedberg
c2ecc3efc7 audio: Remove redundant state_changed() call in headset_server_probe() 2012-03-02 01:39:14 +02:00
Johan Hedberg
975d0420ff core: Remove bogus adapter->up check from probe_driver() 2012-03-02 01:39:14 +02:00
Jefferson Delfes
466360ddc6 gatttool: Add command completion for interactive mode 2012-02-29 20:07:21 -06:00
Anderson Lizardo
7b797f88f8 mgmtops: Add CANCEL_PAIR_DEVICE command complete handling
This avoids the "Unknown command complete for opcode 26" error.
2012-02-29 20:04:36 -06:00
Peter Krystad
f3bf387f1d lib: Add L2CAP Create/Move Channel definitions 2012-02-29 19:16:04 -06:00
Johan Hedberg
ba49febf1a mgmt: Add error code definitions 2012-02-29 19:16:04 -06:00
Johan Hedberg
36711fb6aa mgmt-api: Add error code descriptions 2012-02-29 19:16:04 -06:00
Marcel Holtmann
bac09a9dbb monitor: Add defines for connection packet type changes 2012-02-29 09:05:12 -08:00
Johan Hedberg
e4d00337ad lib: Add missing host feature defines
This patch add missing SSP and "Simultaneous LE & BR/EDR" feature bit
definitions to hci.h.
2012-02-28 02:10:52 +02:00
Marcel Holtmann
d5be1cc111 emulator: Add initial version of new emulator 2012-02-27 10:56:43 -08:00
Marcel Holtmann
9d3b93ede7 monitor: Add Bluetooth HCI declarations 2012-02-27 10:52:14 -08:00
Marcel Holtmann
cad9bb230a monitor: Use better signal integration 2012-02-27 10:35:31 -08:00
Marcel Holtmann
a3877b43ee hciemu: Fix wrong error code in host control 2012-02-27 09:19:14 -08:00
Marcel Holtmann
ee39765d31 monitor: Add support for hcidump fallback 2012-02-27 00:55:34 -08:00
Marcel Holtmann
987ffb7360 lib: Make unaligned access functions const 2012-02-26 22:42:41 -08:00
Marcel Holtmann
0c73a367a1 lib: Add definition for HCI_CHANNEL_MONITOR 2012-02-26 22:12:34 -08:00
Marcel Holtmann
cdcd5647e8 monitor: Fix some minor white space damages 2012-02-26 19:11:44 -08:00
Marcel Holtmann
d02da9ea43 monitor: Add Intel copyright to new monitor tool 2012-02-26 18:40:25 -08:00
Marcel Holtmann
f30c71d3e0 hciattach: Remove some unneeded includes 2012-02-26 18:40:25 -08:00
Marcel Holtmann
061a23ca74 hciattach: Add new HCI UART flags 2012-02-26 18:40:25 -08:00
Andrei Emeltchenko
eedaa19cfc l2test: Add BT Channel Policy option
Make l2test able to set channel policy socket option.
2012-02-26 19:09:03 +02:00
Andrei Emeltchenko
95f4d9d53b l2test: Clean up lookup table code
Make lookup table code available for others and create
common functions.
2012-02-26 19:07:28 +02:00
Andrei Emeltchenko
da47ffe5c7 lib: Copy L2CAP chan policy defines from kernel
Those defines will be used by user space.
2012-02-26 19:06:47 +02:00