| 45bfe0e3 |
android/health: Fix incorrect check
"!create_mdl(channel) < 0" is always false since it returns bool |
Andrei Emeltchenko |
11 years ago |
1 file, +1, -1 |
| 9a7323f1 |
android/gatt: Add remove bond handling
With this patch GATT is aware about unpaired devices so the local cache
can be cleared |
Lukasz Rymanowski |
11 years ago |
1 file, +25, -0 |
| b08fb775 |
android/hidhost: Add remove bond handling
With this patch HID/HOG is aware when remote device has been unpaired. |
Lukasz Rymanowski |
11 years ago |
1 file, +25, -0 |
| 8ecbe670 |
android/bluetooth: Add unpaired device callback
GATT, HID, HOG, might be interested in the fact that some device has
been unpaired in order to clear cache or similar. This patch adds means
to register and unregister callback for unpaired event. |
Lukasz Rymanowski |
11 years ago |
2 files, +52, -3 |
| 59ba2485 |
android/handsfree: Refactor handle_dial()
Call callback only once. |
Andrei Emeltchenko |
11 years ago |
1 file, +4, -3 |
| 2c47af01 |
android/client: Fix incorrect memory access
In case argc==3 we might access argv[3]. Make code more readable. |
Andrei Emeltchenko |
11 years ago |
1 file, +4, -2 |
| e6eee7c2 |
android/avdtp: Cleanup watch id when removing session watch
When session_cb returns FALSE respective watch id is removed so it
must be cleanup. This fix following Glib warning when unrefing
avdtp after transport was disconnected by remote:
(process:28510): GLib-CRITICAL **: Source ID 2 was not found when
attempting to remove it |
Szymon Janc |
11 years ago |
1 file, +6, -1 |
| 1b42893a |
monitor: Fix warnings when using l2cap_frame_get* |
Luiz Augusto von Dentz |
11 years ago |
2 files, +26, -34 |
| 31d69f8e |
gobex: Abort if there is no request to cancel
If there is no request to cancel send an abort since otherwise the remote
may hang waiting. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +7, -2 |
| 3ff1f6b5 |
gobex: Add g_obex_abort |
Luiz Augusto von Dentz |
11 years ago |
3 files, +15, -5 |
| 765fc363 |
obexd/client: Fix crash while disconnecting
In case the transport is disconnected while disconnect command is pending
the session is freed on disconnect_complete but disconnect callback is
still valid causing the following crash:
Invalid read of size 4
at 0x42682A: obc_session_ref (session.c:132)
by 0x42797B: obc_session_shutdown (session.c:580)
by 0x4139DA: incoming_data (gobex.c:1406)
by 0x59712A5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x5971627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x5971A39: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x40D78C: main (main.c:320)
Address 0x728d814 is 4 bytes inside a block of size 120 free'd
at 0x4C28577: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x5976F7E: g_free (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x4134B9: handle_response (gobex.c:1129)
by 0x4139BD: incoming_data (gobex.c:1403)
by 0x59712A5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x5971627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x5971A39: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x40D78C: main (main.c:320) |
Luiz Augusto von Dentz |
11 years ago |
1 file, +3, -1 |
| 82c524e4 |
gobex: Fix crash when debug is enabled
GError can be NULL thus causing invalid read when trying to a message
member such as bellow:
Invalid read of size 8
at 0x41190F: g_obex_send_internal (gobex.c:531)
by 0x4130A6: g_obex_send_req (gobex.c:756)
by 0x4268A5: obc_session_unref (session.c:289)
by 0x41396A: incoming_data (gobex.c:1397)
by 0x59712A5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x5971627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x5971A39: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3800.2)
by 0x40D78C: main (main.c:320)
Address 0x0 is not stack'd, malloc'd or (recently) free'd |
Luiz Augusto von Dentz |
11 years ago |
3 files, +17, -1 |
| 867ca173 |
gobex: Fix warning if g_obex_resume is called when disconnected |
Luiz Augusto von Dentz |
11 years ago |
1 file, +1, -1 |
| a3fd6fe6 |
obexd/client: Fix not being able to cancel a suspended transfer
If a transfer is suspended it should be resumed before cancelling
otherwise it will timeout. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +9, -0 |
| ea2636c5 |
obexd/client: Allow suspending transfer while they are queued
Transfer may be created by different processes so it make sense to allow
them to be suspended even if they are not active. |
Luiz Augusto von Dentz |
11 years ago |
1 file, +38, -9 |
| b37bc443 |
TODO: shared/gatt-client has been defined and discovery implemented |
Arman Uguray |
11 years ago |
1 file, +0, -16 |
| a39592d4 |
shared/gatt-client: Implement descriptor discovery.
This patch implements characteristic descriptor discovery as part of the client
initialization flow. |
Arman Uguray |
11 years ago |
1 file, +131, -0 |
| 96a2155b |
shared/gatt-client: Implement characteristic discovery.
This patch implements characteristic discovery as part of the client
initialization flow. The characteristics of each service are discovered in
order. |
Arman Uguray |
11 years ago |
2 files, +130, -15 |
| ad95688b |
shared/gatt-client: Add service iterator functions.
This patch introduces high-level structures and functions for iterating through,
and storing, data about the discovered services. |
Arman Uguray |
11 years ago |
2 files, +186, -4 |
| 66846f53 |
shared/gatt-client: Implement initial service discovery.
This code implements the following portion of attribute discovery:
- Initial MTU exchange.
- Primary service discovery.
Discovery results aren't stored yet. |
Arman Uguray |
11 years ago |
1 file, +166, -2 |
| 0f32a047 |
shared/gatt-client: Add bt_gatt_client_set_debug.
Added the bt_gatt_client_set_debug function, which sets up a callback to be used
internally by util_debug. |
Arman Uguray |
11 years ago |
2 files, +29, -0 |
| d23077c6 |
shared/gatt-helpers: Fixed typo in callback args.
Fixed a small typo in one of the callback arguments. |
Arman Uguray |
11 years ago |
1 file, +1, -1 |
| 5f0aa561 |
shared/att: Add BT_ATT_DEFAULT_LE_MTU macro.
Moved the ATT_DEFAULT_LE_MTU to att-types.h to make it public. |
Arman Uguray |
11 years ago |
2 files, +5, -3 |
| e44dd89a |
shared/att: Support multiple disconnect handlers.
This patch adds support for registering multiple disconnect handlers with an
instance of struct bt_att. Unregistering is achieved via a new function AND
through bt_att_unregister_all and all disconnect callbacks get automatically
unregistered after a single disconnect event. |
Arman Uguray |
11 years ago |
2 files, +139, -27 |
| a2c54652 |
shared/gatt-client: Added initial skeleton and simple functions.
This patch introduces shared/gatt-client, which provides a central/client side
implementation of the Generic Attribute Profile. An instance of bt_gatt_client
will provide a central database of all GATT services, characteristics, and
descriptors that have been discovered on a peripheral and will provide API
functions to obtain information about discovered attributes, registering
handlers for "Service Changed" indications, as well as providing
reference-counted access to "Client Characteristic Configuration" descriptors. |
Arman Uguray |
11 years ago |
3 files, +122, -1 |
| 90a22ced |
shared/gatt-helpers: Added result count functions.
Added functions that return the number of services, characteristics, and
descriptors contained in a bt_gatt_result. |
Arman Uguray |
11 years ago |
2 files, +53, -0 |
| 47878106 |
shared/gatt-helpers: Remove service, characteristic, descriptor structures.
This patch removes the service, characteristic, and descriptor structures
declared in gatt-helpers.h. These aren't really necessary, especially since
there will be another higher-level version of these for shared/gatt-client. |
Arman Uguray |
11 years ago |
2 files, +34, -47 |
| 7f8ebf96 |
TODO: Add items for tasks involving the new shared ATT/GATT stack |
Arman Uguray |
11 years ago |
1 file, +104, -2 |
| 393192c1 |
android/tester: Add HDP Destroy Sink Streaming Channel test case |
Ravi kumar Veeramally |
11 years ago |
1 file, +47, -0 |
| ef23d944 |
android/tester: Add HDP Connect Sink Streaming Channel test case |
Ravi kumar Veeramally |
11 years ago |
1 file, +59, -0 |
| b0189479 |
android/tester: Add HDP Destroy Source Reliable Channel test case |
Ravi kumar Veeramally |
11 years ago |
1 file, +32, -1 |
| a86bccc1 |
android/tester: Add HDP Connect Source Reliable Channel test case |
Ravi kumar Veeramally |
11 years ago |
1 file, +230, -0 |
| fbc5f2c1 |
android/health: Avoid multiple times of sdp search
First it searches for control and data PSMs and then search again
for remote mdep id. It would be better to search remote mdep id
and cache in first time itself. Patch avoids load of sdp search
request for second time. |
Ravi kumar Veeramally |
11 years ago |
1 file, +40, -35 |
| 218c6b62 |
android/tester: Add test for incoming bonding
This patch add test for incoming just works bonding |
Lukasz Rymanowski |
11 years ago |
1 file, +35, -0 |
| d058432b |
android/tester: Add function to set io cap to bthost
Some tests might need to change default io capabilities of bthost.
This patch adds means to do it. |
Lukasz Rymanowski |
11 years ago |
2 files, +22, -0 |
| 80a5bb2a |
android/tester: Add parameter to remote connect function
This patch extends emu_remote_connect_hci_action function with address
type of device to be connected |
Lukasz Rymanowski |
11 years ago |
3 files, +17, -4 |
| 8cbfee5f |
android/tester: Move emu related functions to tester main
Those function can be used by other tester modules
In addition function emu_remote_disconnect_hci_action has been changed a
bit so it take handle from step data now. It was needed as cid_data was
static in tester_gatt.c |
Lukasz Rymanowski |
11 years ago |
3 files, +56, -47 |
| 811c5edc |
android/bluetooth: Fix incoming just works bonding
With this patch Android framework will be notified about bonded device
which initiated bonding and used just works association model. |
Lukasz Rymanowski |
11 years ago |
1 file, +13, -1 |
| 7e518f2f |
android/avdtp: Move PSM definition to AVDTP header |
Szymon Janc |
11 years ago |
3 files, +4, -5 |
| fc387495 |
android/avdtp: Constify data in avdtp_service_cap_new |
Szymon Janc |
11 years ago |
2 files, +4, -2 |
| 2884336b |
android/hid: Force encryption for keyboards
Encryption is mandatory for keyboards. Instead of using hardcoded security
level it's now set per device (with LOW as default) and raised for
keyboards (after the SDP query is done). This level is then used to
establish outgoing connections and raising the security level of the
incomming ones. |
Jakub Tyszkowski |
11 years ago |
1 file, +23, -3 |
| 36bb67a4 |
android/hid: Reject connections from unknown devices
Don't accept input from not bonded devices. |
Jakub Tyszkowski |
11 years ago |
1 file, +24, -9 |
| bf9ea7fd |
android/client: Factor out hex string verification
Use common macro for hex string verification and convertion. |
Szymon Janc |
11 years ago |
1 file, +14, -25 |
| a7e27ae3 |
android/pts: Update PTS GATT test results |
Marcin Kraglak |
11 years ago |
1 file, +2, -2 |
| 5a405f2f |
android/client: Fix incorrect data parsing
Use fill_buffer function in processing write_characteristic
and send_indication functions. |
Marcin Kraglak |
11 years ago |
1 file, +13, -7 |
| e3d4ab4a |
android/README: Update not implemented status
get_remote_service_record is now implemented. Despite not being used
by Android Framework it turned out to be usefull for qualification. |
Szymon Janc |
11 years ago |
1 file, +3, -6 |
| 450f9ea3 |
monitor: Make l2cap_frame_get* function to return bool |
Luiz Augusto von Dentz |
11 years ago |
2 files, +29, -29 |
| 8bcfc8b7 |
monitor/avctp: Fix parsing of Company ID capability |
Luiz Augusto von Dentz |
11 years ago |
1 file, +12, -4 |
| 3423d22f |
monitor/avctp: Make use of l2cap_frame_get* |
Luiz Augusto von Dentz |
11 years ago |
1 file, +104, -184 |
| 7299624f |
monitor: Add AVRCP ListPlayerApplicationSettingValues support
Support for decoding AVRCP ListPlayerApplicationSettingValues
added in Bluetooth monitor. |
Vikrampal Yadav |
11 years ago |
1 file, +92, -0 |