Commit Graph

19989 Commits

Author SHA1 Message Date
Jakub Tyszkowski
744af896a8 android/bluetooth: Fix retriggering the discovery
Previously le device found callback was set every time we triggered the scan
from gatt. But it does no longer work like that. This callback is now set
when gatt profile is registered and should not be used for checking if we
should be retriggering the scan. Expected discovery flag should be
used directly instead.
2014-08-04 14:32:29 +03:00
Lukasz Rymanowski
c8a9069f95 android/bluetooth: Clear auto connect list on startup
In android we add devices to auto connect list when application trigger
connect. We need to make sure that when bluetooth is turn on there is
no devices in auto connect list in the kernel.
2014-08-04 14:28:52 +03:00
Lukasz Rymanowski
ce60a906bd android/gatt: Use kernel auto connect feature if possible 2014-08-04 14:28:51 +03:00
Lukasz Rymanowski
058e62bee2 android/gatt: Refactor trigger connection function.
Refactor code so it is clear what action we take in different connection
states.
2014-08-04 14:28:50 +03:00
Lukasz Rymanowski
c7528eb393 android/bluetooth: Add API to remove device from auto connect list 2014-08-04 14:28:49 +03:00
Lukasz Rymanowski
bd3f985532 android/bluetooth: Add API to add device to auto connect list 2014-08-04 14:28:48 +03:00
Lukasz Rymanowski
a0edc4f8b7 android/bluetooth: Add flag for kernel connection control
This patch set option kernel connection control to TRUE if mgmt interface
is 1.7 or higier. Kernel connect control means that things like
background scan, auto connect or white list are supported by kernel and
can be used by daemon.
2014-08-04 14:28:46 +03:00
Andrei Emeltchenko
f937ca0167 obexd: Fix memory leak
Fixes memory leak for message_listing_cb()
2014-08-04 09:10:57 +03:00
Andrei Emeltchenko
68fc5cb2bd obexd: Fix memory leak
Fixes memory leak for folder_listing_cb().
2014-08-04 09:10:55 +03:00
Andrei Emeltchenko
f25df405f2 tools: Fix memory leak
lmpver and hciver are allocated through malloc and need to be freed.
2014-08-04 09:10:38 +03:00
Marcel Holtmann
41f6648d88 AUTHORS: Mention Mike's contributions 2014-08-01 21:41:35 +02:00
Mike Ryan
359da84717 monitor: Properly decode GATT Find Information Response 2014-08-01 21:40:51 +02:00
Sebastian Chlad
cb9064f3ab android/pts: PTS testing results for SM 2014-08-01 15:15:36 +02:00
Andrei Emeltchenko
56d9d175e3 attrib: Fix memory leak 2014-08-01 13:39:50 +03:00
Andrei Emeltchenko
22894ef078 android/ipc: Remove unneeded check
rsp_len cannot be NULL since it is checked above and dereferenced.
Remove static analyzers warnings.
2014-08-01 13:30:34 +03:00
Andrei Emeltchenko
833b4dd623 tools/scotest: Fix double close socket
When executing in a child we close(sk) in the beginning. error label
handles parent process error conditions.
2014-08-01 13:30:31 +03:00
Andrei Emeltchenko
830c8801ef tools/l2test: Remove unneeded return
Remove dead code after exit()
2014-08-01 13:30:28 +03:00
Andrei Emeltchenko
a0c8d9fcf3 tools/scotest: Remove unneeded return
Remove dead code after exit()
2014-08-01 13:30:25 +03:00
Andrei Emeltchenko
74c4fd0250 tools/rctest: Remove dead code
Since do_listen() never returns remove hanging code
2014-08-01 13:30:06 +03:00
Andrei Emeltchenko
7426a03094 tools/rctest: Remove unneeded return
Code is unreachable since we use exit() before
2014-08-01 13:29:34 +03:00
Andrei Emeltchenko
30556512d3 android/core: Use g_clear_error instead of free and assignment
g_clear_error() frees err and set it to NULL. This fixes dead code
warnings from analyzers.
2014-08-01 13:29:26 +03:00
Andrei Emeltchenko
8a8f26c3ae core: Remove unneeded assignment
Variable rfcomm is never used after assignment
2014-08-01 13:28:44 +03:00
Johan Hedberg
d886b0817d emulator: Add support for Read Clock Offset 2014-08-01 12:24:19 +03:00
Luiz Augusto von Dentz
f63a73ccda core: Fix code style 2014-08-01 10:57:54 +03:00
Marcel Holtmann
c4577090a6 android: Include avctp.c in build source for btmon 2014-07-31 19:26:05 +02:00
Szymon Janc
a08763daf4 android/pts: Update MPS test results with PTS 5.2 2014-07-31 17:23:59 +02:00
Luiz Augusto von Dentz
99f16dc762 audio/avrcp: Fix not continuing from the correct index
The first valid index is 0 not 1.
2014-07-31 15:35:04 +03:00
Luiz Augusto von Dentz
67ec26fa39 audio/avrcp: Fix not accounting all items when listing
The total number of items should account that the start and end index are
included so end - start index is incorrect.
2014-07-31 15:35:04 +03:00
Luiz Augusto von Dentz
3b8d6b19e6 monitor: Add mode and channel to struct l2cap_frame
This make it simpler to pass it around.
2014-07-31 15:35:04 +03:00
Vikrampal Yadav
5f43216313 monitor: Add AVCTP support to btmon
Support for decoding AVCTP packets added in Bluetooth monitor.
2014-07-31 15:35:04 +03:00
Luiz Augusto von Dentz
0961618e41 shared/queue: Fix not allowing to remove NULL entries
queue_remove should not check the data pointer since both queue_push_head
and queue_push_tail don't check it is possible to have NULL pointers in
the queue therefore queue_remove shall be able to remove them.
2014-07-31 10:56:32 +03:00
Luiz Augusto von Dentz
d520f7aac6 android/hog: Add support for UHID_FEATURE event 2014-07-31 10:54:57 +03:00
Luiz Augusto von Dentz
6bc6b66892 android/hog: Cache report value
Report value will be used for implementing support for UHID_FEATURE
event.
2014-07-31 10:54:57 +03:00
Arman Uguray
0aef311ec7 shared/gatt: Use iterator based discovery result structure.
This patch changes the GATT specific linked list structure in gatt-helpers to
bt_gatt_result and bt_gatt_iter. bt_gatt_result internally stores a linked list
of ATT response PDUs, which get decoded on-demand by the iterator functions.
Each iterator function operates on a specific ATT response PDU.
2014-07-31 00:19:32 +02:00
Szymon Janc
68ba4bc93a android/pts: Update GATT TC_GAW_CL_BV_02 with errata number 2014-07-30 15:36:55 +02:00
Szymon Janc
094cc29f45 android/README: Add tethering fix to recommened Android patch list
This fix random failures when remote is connecting to NAP.
2014-07-30 14:24:43 +02:00
Johan Hedberg
05a3cfee8a doc: Update mgmt-tester test count 2014-07-30 14:14:56 +03:00
Johan Hedberg
5e5709f7e7 tools/mgmt-tester: Add MITM Pair Device tests with IO cap checks 2014-07-30 14:14:14 +03:00
Johan Hedberg
7a5037ccf0 mgmt-tester: Renumber Pair Device tests 2014-07-30 14:06:16 +03:00
Johan Hedberg
ef9e550dd9 tools/mgmt-tester: Add just-works Pair Device tests with IO cap checks 2014-07-30 14:04:30 +03:00
Johan Hedberg
8ac9dbd2f8 doc: Update mgmt-tester test count 2014-07-30 13:46:01 +03:00
Johan Hedberg
dc229d90ee mgmt-tester: Add LE Remove Device test case 2014-07-30 13:46:01 +03:00
Johan Hedberg
4ccabeb9a9 mgmt-tester: Add powered on Remove Device test case 2014-07-30 13:46:01 +03:00
Johan Hedberg
85a85e0061 mgmt-tester: Add basic Remove Device success test 2014-07-30 13:46:00 +03:00
Johan Hedberg
7385bbe1e1 mgmt-tester: Add basic Remove Device invalid params tests 2014-07-30 13:46:00 +03:00
Johan Hedberg
8308ad0b0e mgmt-tester: Add connectable off test case with added device 2014-07-30 13:46:00 +03:00
Marcin Kraglak
05236fa2af android/bluetooth: Fix loading LTKs 2014-07-30 12:32:55 +02:00
Marcin Kraglak
c1902726cb android/gatt: Always connect with BT_SEC_LOW security
Set BT_SEC_LOW for all LE connections. Only specific profiles need
higher security, now it is possible to elevate security with public
GATT API.
2014-07-30 12:32:55 +02:00
Marcin Kraglak
e2705e6da4 anroid/hidhost: Set security to MEDIUM after connect
According to spec connection with HoG device should always be
encrypted.
2014-07-30 12:32:44 +02:00
Marcin Kraglak
28e71a1283 android/gatt: Expose API to elevate security level
It will allow to change security from external profile,
for example in hog implementation.
2014-07-30 12:32:16 +02:00