| 7c33cf97 |
android: Add calls to socket methods in haltest
This patch adds calls to socket methods. |
Jerzy Kasenberg |
12 years ago |
6 files, +341, -1 |
| 136136c3 |
android: Create header links for lib
BlueZ headers are referring as bluetooth/* for headers which are
located in lib/*. Create symlinks for now until we find better solution. |
Andrei Emeltchenko |
12 years ago |
1 file, +12, -0 |
| 9cbea426 |
android: Add initial code for hidhost set hid information
This adds the initial code for hidhost .set_info interface |
Ravi kumar Veeramally |
12 years ago |
1 file, +14, -1 |
| 012b2359 |
android: Add initial code for hidhost send data
This adds the initial code for hidhost .send_data interface |
Ravi kumar Veeramally |
12 years ago |
1 file, +6, -1 |
| d1f285e9 |
android: Add initial code for hidhost get and set report
This adds the initial code for hidhost .get_report and .set_report
interfaces |
Ravi kumar Veeramally |
12 years ago |
1 file, +38, -2 |
| d5a7a998 |
android: Add initial code for hidhost get and set protocol
This adds the initial code for hidhost .get_protocol and .set_protocol
interfaces |
Ravi kumar Veeramally |
12 years ago |
1 file, +38, -2 |
| 3590e6b8 |
android: Add initial code for hidhost virtual unplug
This adds initial code for hidhost .virtual_unplug interface |
Ravi kumar Veeramally |
12 years ago |
1 file, +6, -1 |
| 66b6ea20 |
android: Return right from hal_ipc_cmd call in hal hid disconnect
Do not print any error message and return from hal_ipc_cmd call in hal
hid disconnect |
Ravi kumar Veeramally |
12 years ago |
1 file, +2, -7 |
| 5c12b561 |
android: Return right from hal_ipc_cmd call in hal hid connect
Do not print any error message and return from hal_ipc_cmd call in hal
hid connect |
Ravi kumar Veeramally |
12 years ago |
1 file, +2, -7 |
| 938a145e |
android: Fix compilation error for Android 4.2.2
On our current target the tools cannot be compiled. |
Andrei Emeltchenko |
12 years ago |
4 files, +13, -0 |
| 80e024d2 |
android: Move load_link_keys_complete() to a more sensible location |
Johan Hedberg |
12 years ago |
1 file, +23, -23 |
| 59d3fe7e |
android: Detect adapter removal in daemon and exit |
Johan Hedberg |
12 years ago |
1 file, +6, -0 |
| ef2d3dd3 |
android: Add stubs for daemon-side HID support |
Johan Hedberg |
12 years ago |
5 files, +79, -0 |
| e07c4e57 |
monitor: Add support for decoding keypress notification command |
Marcel Holtmann |
12 years ago |
2 files, +52, -1 |
| 61850ffc |
monitor: Add support for decoding host flow control command |
Marcel Holtmann |
12 years ago |
2 files, +40, -1 |
| 3a5df1fc |
monitor: Add support for decoding transmit power level command |
Marcel Holtmann |
12 years ago |
2 files, +58, -4 |
| a484dfeb |
monitor: Add support for decoding auto flush timeout commands |
Marcel Holtmann |
12 years ago |
2 files, +66, -2 |
| 51899b5d |
monitor: Add support for num broadcast retransmission command |
Marcel Holtmann |
12 years ago |
2 files, +37, -2 |
| 94f761e6 |
adapter: Implement adapter enable and disable commands
This allows HAL to enable and disable adapter. |
Szymon Janc |
12 years ago |
1 file, +63, -1 |
| 1cb38bbf |
android/hal: Use correct service id for adapter commands
This fix enabling and disabling adapter commands. |
Szymon Janc |
12 years ago |
1 file, +4, -4 |
| a86a413a |
adapter: Print debug message with IPC message header parameters
This is usefull while debugging HAL IPC. |
Szymon Janc |
12 years ago |
1 file, +3, -0 |
| b96445bd |
android: Add initial code for handling adapter commands
No commands are handled yet. |
Szymon Janc |
12 years ago |
3 files, +21, -0 |
| 5c3eac98 |
android: Handle mgmt changed events
Add code handling changing adapter settings. |
Andrei Emeltchenko |
12 years ago |
1 file, +129, -0 |
| 3783dab0 |
android: Update bluetooth HAL to match the new hal_ipc_cmd API |
Johan Hedberg |
12 years ago |
1 file, +11, -22 |
| 039369d8 |
android: Make hal_ipc_command return directly the status |
Johan Hedberg |
12 years ago |
2 files, +11, -7 |
| bcaba49c |
android: Simply exit if hal_ipc_cmd gets an invalid fd |
Johan Hedberg |
12 years ago |
1 file, +4, -2 |
| afd7fad0 |
android: Remove not needed include |
Szymon Janc |
12 years ago |
1 file, +0, -4 |
| 85556b7d |
android/hal: Use notification socket for daemon lifetime tracking
If daemon exited unexpectedly HAL should be stop. With cleanup
procedure command socket is closed as first so use that to distinguish
correct action. |
Szymon Janc |
12 years ago |
1 file, +7, -2 |
| 058537f9 |
adapter/hal: Implement adapter disable call |
Szymon Janc |
12 years ago |
1 file, +8, -1 |
| e9336144 |
adapter/hal: Implement adapter enable call |
Szymon Janc |
12 years ago |
1 file, +11, -1 |
| 76384da1 |
android/hal: Unify HALs callbacks pointers definition
Those are not suppose to be modified or used outside of each HAL. |
Szymon Janc |
12 years ago |
4 files, +4, -4 |
| 5258fa30 |
android/hal: Add initial support for handling adapter notifications
Only adapter state callback is handled for now. |
Szymon Janc |
12 years ago |
3 files, +30, -0 |
| 5f4a871d |
android/hal: Add initial code for notification handling
This adds a dedicated thread that will read from notification sockets
and dispatch it to appropriate service notification function. |
Szymon Janc |
12 years ago |
2 files, +107, -2 |
| 958cfb7c |
android: Define minimum legal notification event ID
All legal events IDs should be above this value. |
Szymon Janc |
12 years ago |
1 file, +2, -0 |
| eb12d8b1 |
android: Fix non-existing event definition
There is no ERROR notification id. |
Szymon Janc |
12 years ago |
1 file, +0, -1 |
| 20c02f68 |
android: Define helper payload field in hal_msg_hdr
This will allow for convenient access to payload. |
Szymon Janc |
12 years ago |
1 file, +1, -0 |
| 3917177c |
android/hal: Make hal.h self contained |
Szymon Janc |
12 years ago |
6 files, +1, -17 |
| f6502b2b |
android: Use hh prefix instead of bt_hidhost
This replaces the use of bt_hidhost as function prefix with hh. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +25, -26 |
| 8dc3c01e |
android: Add initial code for hidhost
This adds the initial implementation of .init, .connect and .disconnect |
Ravi kumar Veeramally |
12 years ago |
1 file, +33, -8 |
| c7fca375 |
tools/mgmt-tester: Add a couple of LE-only connectable-off tests |
Johan Hedberg |
12 years ago |
1 file, +55, -0 |
| ffd32c71 |
android/hal: Fix receiving of commands with no response parameter
This fix receiving of error response in case command has no reply
parameters. |
Szymon Janc |
12 years ago |
1 file, +1, -0 |
| 4299561d |
android: Add help to hidhost in haltest
This patch adds help to methods of hidhost interface.
This also adds tab completion for hidhost. |
Jerzy Kasenberg |
12 years ago |
1 file, +76, -10 |
| 8c126ed5 |
android: Add calls to hidhost interface to haltest
This patch adds code so hidhost interface can be tested. |
Jerzy Kasenberg |
12 years ago |
6 files, +372, -1 |
| 8d097d90 |
android: Add definition of buffer sizes to haltest
This patch adds definition of sizes needed for text representation
of bluetooth address and uuid, this remove usage of magic numbers. |
Jerzy Kasenberg |
12 years ago |
3 files, +7, -5 |
| 03e345f6 |
android: Add hidhost defines and structures to header file |
Ravi kumar Veeramally |
12 years ago |
1 file, +67, -0 |
| 14d8c3cc |
core: Fix crash while processing SDP records
This was introduced by commit 073714c3ff70379131be3e19d9ccb8b85fe3f0d9
which attempted to treat the return of sdp_process but caused the crash
bellow because sdp_process actually calls search_completed_cb if it
fails:
Invalid read of size 8
at 0x44FC93: search_process_cb (sdp-client.c:214)
by 0x3D46047E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x3D46048157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x3D46048559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x40A2DF: main (main.c:587)
Address 0x59febd0 is 16 bytes inside a block of size 72 free'd
at 0x4A074C4: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x3D4604D9AE: g_free (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x44FE44: search_completed_cb (sdp-client.c:192)
by 0x4732E7: sdp_process (sdp.c:4341)
by 0x44FCD8: search_process_cb (sdp-client.c:206)
by 0x3D46047E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x3D46048157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x3D46048559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x40A2DF: main (main.c:587) |
Luiz Augusto von Dentz |
12 years ago |
1 file, +7, -15 |
| 9bda7e8c |
core: Remove NET_RAW from list of required capabilities
This is a left-over from times that raw HCI sockets were used. It's not
needed anymore. |
Johan Hedberg |
12 years ago |
1 file, +1, -1 |
| 25d154a9 |
android: Add handling of Ctrl-c to haltest
This patch adds handling of Ctrl-C so it does not break tool.
To exit tool Ctrl-D is used on empty command line.
Ctrl-D on not empty command line works like Delete key. |
Jerzy Kasenberg |
12 years ago |
1 file, +62, -21 |
| 5322a582 |
android: Drop unnecessary capabilities
This makes the android daemon to drop it capabilities and only retain
the following ones:
CAP_NET_ADMIN: Allow use of MGMT interface
CAP_NET_BIND_SERVICE: Allow use of privileged PSM |
Andrei Emeltchenko |
12 years ago |
1 file, +42, -0 |
| 385e1e4f |
android: Improve hal_ipc_cmd helper
Handle error response inside helper so that users don't expecting any
response don't need to provide dummy buffer only for error (which is
already return value of helper). |
Szymon Janc |
12 years ago |
2 files, +8, -5 |