| 24c9fb1e |
android/hidhost: Use generic IPC message handling for commands
Handlers are registered on service register and unregistered on
unregister. |
Szymon Janc |
12 years ago |
2 files, +184, -127 |
| d64785ad |
android/bluetooth: Make property handling function return HAL status
This makes funtions follow have similar style and makes properties
dispatch function much simpler. |
Szymon Janc |
12 years ago |
1 file, +30, -55 |
| a29d4b32 |
android/bluetooth: Use generic IPC msg handling for commands
Handlers are registered on service register and unregistered on
unregister. |
Szymon Janc |
12 years ago |
1 file, +321, -143 |
| 48823282 |
android/main: Use common exit path in core service functions
This makes functions exit path simpler. |
Szymon Janc |
12 years ago |
1 file, +25, -15 |
| 5e6cf77c |
android/main: Use generic IPC message handling for core service
Handlers are registered on daemon start and unregistered on shutdown. |
Szymon Janc |
12 years ago |
1 file, +16, -67 |
| 454cdd7a |
android: Add initial code for IPC message handlers
This will allow to register and unregister handlers for IPC messages
Basic sanity check will be done in common code. Commands with variable
length will be verified against minimum size only. |
Szymon Janc |
12 years ago |
2 files, +88, -0 |
| 32b31f91 |
tools/l2test: Fix default LE PSM value
LE has different ranges for dynamic PSMs. |
Johan Hedberg |
12 years ago |
1 file, +11, -1 |
| 44b3d5e4 |
tools/l2cap-server: Add basic LE Connect server test case |
Johan Hedberg |
12 years ago |
1 file, +17, -0 |
| 3651a17f |
tools/l2cap-tester: Add basic LE client test cases |
Johan Hedberg |
12 years ago |
1 file, +17, -0 |
| 37585d8c |
emulator/bthost: Add LE L2CAP Connect support |
Johan Hedberg |
12 years ago |
1 file, +52, -0 |
| e197563f |
emulator/bthost: Add Disconnect request support for LE |
Johan Hedberg |
12 years ago |
1 file, +5, -0 |
| 8127bfb8 |
monitor: Add LE CoC decoding support |
Johan Hedberg |
12 years ago |
2 files, +74, -0 |
| c5b9aa22 |
lib: Update company identifiers |
Marcel Holtmann |
12 years ago |
1 file, +12, -0 |
| d48132c8 |
android/pan: Fix sending uninitialised bytes
name field of struct hal_ev_pan_ctrl_state is 17 bytes longs so memcpy of
the interface name does not field all the those bytes leaving the last
uninitialised:
Syscall param sendmsg(msg.msg_iov[1]) points to uninitialised byte(s)
at 0x3600EF6E20: __sendmsg_nocancel (in /usr/lib64/libc-2.17.so)
by 0x40DC06: ipc_send (ipc.c:93)
by 0x4149AC: bnep_conn_cb (pan.c:120)
by 0x4192B8: bnep_setup_cb (bnep.c:324)
by 0x31D1647DF5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x31D1648147: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x31D1648549: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x40338B: main (main.c:629)
Address 0x7ff0003d3 is on thread 1's stack |
Luiz Augusto von Dentz |
12 years ago |
1 file, +1, -0 |
| 3fa4e17b |
android: Add reasons for adding capabilites to process
CAP_NET_ADMIN: Allow use of MGMT interface
CAP_NET_BIND_SERVICE: Allow use of privileged PSM
CAP_NET_RAW: Allow use of bnep ioctl calls |
Ravi kumar Veeramally |
12 years ago |
1 file, +3, -0 |
| cd57b8b7 |
android/pan: Implement the get local role method in daemon
Returns local role of the device (NONE, PANU or NAP). |
Ravi kumar Veeramally |
12 years ago |
1 file, +8, -2 |
| ba10ece2 |
android/pan: Implement pan disconnect method in daemon
Disconnect ongoing PANU role connection betweek devices, free
the device and notify the connection state. |
Ravi kumar Veeramally |
12 years ago |
1 file, +28, -2 |
| 64b76dd6 |
android/pan: Implement pan connect method in daemon
Implements the PAN connect method in android daemon with PANU role
only. Setting up the bnep environment, adds connection and makes
bnep interface up are part of bnep_connect call. Notifies bnep
interface on control state call back and connection status on
connection state call back. |
Ravi kumar Veeramally |
12 years ago |
3 files, +216, -8 |
| 5fe8d755 |
profiles/network: Rename common.c|h to bnep.c|h
Files common.c|h contains only bnep related code, it makes
more sence with bnep.c|h. |
Ravi kumar Veeramally |
12 years ago |
8 files, +513, -513 |
| 6f5d2be4 |
profiles/network: Refactor bnep connection setup functionality
Moving bnep connection setup related functionality to common.c.
Provided bnep_connect call with bnep_connect_cb for status and
bnep interface name. It will be simple if someone want to utilize
this call otherwise they have to reimplement similar functionality
with minimal changes (e.g. android/pan). |
Ravi kumar Veeramally |
12 years ago |
4 files, +211, -164 |
| 9e08218d |
tools/smp-tester: Improve logging of received SMP PDUs |
Johan Hedberg |
12 years ago |
1 file, +8, -3 |
| 1b695735 |
tools/smp-tester: Minor whitespace fix |
Johan Hedberg |
12 years ago |
1 file, +0, -1 |
| 31097ac3 |
tools/smp-tester: Unify SMP handler code for client and server tests |
Johan Hedberg |
12 years ago |
1 file, +62, -139 |
| a2685ac2 |
emulator/btdev: Add initial support for HCI_LE_Long_Term_Key_Request_Reply |
Johan Hedberg |
12 years ago |
1 file, +36, -0 |
| 10d86010 |
tools/smp-tester: Add support for generating the LTK |
Johan Hedberg |
12 years ago |
1 file, +22, -1 |
| f61edaad |
emulator/bthost: Add API for requesting LE encryption |
Johan Hedberg |
12 years ago |
2 files, +17, -0 |
| ac2998a1 |
tools/smp-tester: Add expected Pairing Random packet to basic server test |
Johan Hedberg |
12 years ago |
1 file, +2, -1 |
| 477ed93a |
tools/smp-tester: Fix missing copy to smp_rrnd |
Johan Hedberg |
12 years ago |
1 file, +1, -0 |
| c56b263f |
emulator/btdev: Add basic support for HCI_LE_Start_Encryption |
Johan Hedberg |
12 years ago |
1 file, +31, -0 |
| c8217dc4 |
emulator/btdev: Fix existing connection check in disconnection logic |
Johan Hedberg |
12 years ago |
1 file, +2, -4 |
| 3204c443 |
emulator/btdev: Simplify connection request logic
We should return page timeout both when the remote exists but just
doesn't have page scan enabled as well as when the remote doesn't exist. |
Johan Hedberg |
12 years ago |
1 file, +11, -14 |
| 13d5e9c4 |
android/main: Call unregister for all registered services on exit |
Andrei Emeltchenko |
12 years ago |
1 file, +34, -0 |
| 85512df8 |
android/hal-bluetooth: Fix sending invalid adapter property
If property to be set is of enum type it should be first converted to
byte value as size of enum might varry depending on architecture.
To keep code simple command buffer uses len received from framework
as this is more or equal to HAL property size. |
Szymon Janc |
12 years ago |
1 file, +31, -5 |
| 364018d2 |
android/hal-bluetooth: Rename create_enum_prop to enum_prop_to_hal
This better describes purpose of this macro. |
Szymon Janc |
12 years ago |
1 file, +4, -4 |
| aef22eab |
android/socket: Remove unneeded code
The flag is already set in bt_io_listen. |
Andrei Emeltchenko |
12 years ago |
1 file, +0, -2 |
| 4675a741 |
android/socket: Avoid double close of file descriptor
Since we close all file descriptors in cleanup_rfsock do not close it also
during iochannel cleaning up. The flag was setup in bt_io_listen and
bt_io_connect calls. |
Andrei Emeltchenko |
12 years ago |
1 file, +2, -0 |
| 4df38bd9 |
android/socket: Strip extra log messages
Remove debug messages when sending data, debug still exist for connection
establishment. Do not print error when connection hang up, print debug
instead. |
Andrei Emeltchenko |
12 years ago |
1 file, +10, -16 |
| 995d19a8 |
android/hidhost: Shutdown ctrl_io channel if intr_io fails
This fix possible memory leak. |
Andrei Emeltchenko |
12 years ago |
1 file, +5, -1 |
| 0ba58ed3 |
android/socket: Fix rfsock lists
This fixes several places where rfsock structure were not removed
from the list due to connection errors. |
Andrei Emeltchenko |
12 years ago |
1 file, +6, -3 |
| ab159fbb |
android/main: Free enabled string on exit |
Andrei Emeltchenko |
12 years ago |
1 file, +3, -0 |
| d9e44bb2 |
android/main: Remove signal source on exit
Remove signal source on exit and move check capability function in order
to avoid extra check. |
Andrei Emeltchenko |
12 years ago |
1 file, +5, -1 |
| 058b7bad |
android/main: Remove timeout source on exit
This fixes memory leak types of warnings from some tools. |
Andrei Emeltchenko |
12 years ago |
1 file, +6, -1 |
| 98ecece5 |
android: Avoid memory leak warnings for event_loop
Move creation of event_loop closer to g_main_loop_run. This avoids
calling g_main_loop_unref too many times in initialization error paths.
This is safe since g_main_loop_quit eval to NOOP if parameter == NULL. |
Andrei Emeltchenko |
12 years ago |
1 file, +2, -1 |
| 7624ea2d |
android: Don't pass notification socket on services register
It is no longer needed as proper socket is use by IPC helpers. |
Szymon Janc |
12 years ago |
11 files, +15, -67 |
| 9ed863ba |
android/bluetooth: Remove not needed notification_sk checks
This is now checked inside ipc_send_notif helper. |
Szymon Janc |
12 years ago |
1 file, +2, -6 |
| 3b7b97bb |
android: Make ipc_send static
It should not longer be used from outside of IPC code. |
Szymon Janc |
12 years ago |
2 files, +1, -3 |
| 22d3f449 |
android/socket: Use ipc_send_rsp_full IPC helper
Use command reply helper for sending reply with file descriptor. |
Szymon Janc |
12 years ago |
1 file, +2, -2 |
| d4199a01 |
android: Add ipc_send_rsp_full IPC helper
This will be used to send non-empty reply using command socket. |
Szymon Janc |
12 years ago |
2 files, +8, -0 |
| daf1186c |
android: Use ipc_send_notif for sending notifications |
Szymon Janc |
12 years ago |
3 files, +43, -44 |
| 066eac37 |
android: Add IPC helper for sending notifications
This will use notification socket passed on IPC init. |
Szymon Janc |
12 years ago |
2 files, +11, -0 |