| 62cfe1bc |
android/A2DP: Add stream open command/response struct
This adds the definitions to stream open command and response. |
Luiz Augusto von Dentz |
12 years ago |
2 files, +19, -0 |
| dfb5f89f |
android/A2DP: Add audio close command/response struct
This adds the definitions to audio close command and response. |
Luiz Augusto von Dentz |
12 years ago |
2 files, +14, -0 |
| 3d2f0eea |
android/A2DP: Add audio open command/response struct
This adds the definitions to audio open command and response. |
Luiz Augusto von Dentz |
12 years ago |
3 files, +28, -1 |
| 23893fbe |
android/A2DP: Add initial code to handle audio IPC commands
This adds initial code to handle audio IPC commands. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +13, -1 |
| 193cbd4d |
android/ipc: Add audio_ipc_send_rsp and audio_ipc_send_rsp_full
These functions can be used to respond to commands recieved over audio
IPC. |
Luiz Augusto von Dentz |
12 years ago |
5 files, +37, -1 |
| 1829216b |
android/ipc: Add message handling for audio IPC
This adds audio_ipc_register and audio_ipc_unregister and adapt
ipc_handle_msg to be able to handle audio services messages. |
Luiz Augusto von Dentz |
12 years ago |
5 files, +63, -33 |
| 294bfb10 |
android/ipc: Add initial code for audio IPC
This add initial code for listen and accept connections on the abstract
socket defined for the audio IPC. |
Luiz Augusto von Dentz |
12 years ago |
7 files, +167, -6 |
| 292aa0da |
btmon: Fix compiler warnings
When building for Android this fixes following warnings:
...
monitor/ellisys.c: In function 'ellisys_inject_hci':
monitor/ellisys.c:159:2: warning: implicit declaration of function 'writev'
[-Wimplicit-function-declaration]
... |
Andrei Emeltchenko |
12 years ago |
1 file, +1, -0 |
| a700df7e |
monitor: Show controller type on analyzer summary |
Marcel Holtmann |
12 years ago |
1 file, +14, -1 |
| 56d5fec6 |
monitor: Count number of commands, events and data packets |
Marcel Holtmann |
12 years ago |
1 file, +115, -18 |
| 936842f8 |
monitor: Add initial support for analyzing btsnoop traces |
Marcel Holtmann |
12 years ago |
5 files, +270, -3 |
| 0a68167f |
shared: Add lookup function to queue handling |
Marcel Holtmann |
12 years ago |
2 files, +18, -0 |
| 929ade55 |
monitor: Move new index opcode structure into btsnoop header |
Marcel Holtmann |
12 years ago |
2 files, +12, -14 |
| 139159cf |
unit: Fix test failures with glib 2.39.0
glib 2.39.0 made this change:
- g_source_remove() will now throw a critical in the case that you
try to remove a non-existent source. We expect that there is some
code in the wild that will fall afoul of this new critical but
considering that we now reuse source IDs, this code is already
broken and should probably be fixed.
This patch fixes the test suite to keep better track of whether sources have
already been removed and avoid double-removals. |
Colin Watson |
12 years ago |
5 files, +20, -9 |
| 26381ed7 |
android/socket: Move logic from HAL to daemon in connect
This reduce logic in HAL to bare minimum e.g. no modifications in
library will be needed to add different socket type support.
Both bdaddr2str and btuuid2str handle NULL pointers so it is safe to
print debug unconditionally. |
Szymon Janc |
12 years ago |
2 files, +62, -35 |
| 74c65573 |
android/socket: Move logic from HAL to daemon in listen
This reduce logic in HAL to bare minimum e.g. no modifications in
library will be needed to add different socket type support.
Both bdaddr2str and btuuid2str handle NULL pointers so it is safe to
print debug unconditionally. |
Szymon Janc |
12 years ago |
3 files, +63, -51 |
| e99c1dbd |
android/socket: Make channel int32_t in IPC specification
This match IPC type with type in socket HAL API. This allows to pass
data directly from HAL library and will allow to reduce logic in it. |
Szymon Janc |
12 years ago |
2 files, +11, -11 |
| 3e5e6c76 |
android/system-emulator: Remove useless "static" qualifier
The value of SYSTEM_SOCKET_PATH is just copied to another memory
location using memcpy() (on the same function), therefore the static
qualifier is unnecessary. |
Anderson Lizardo |
12 years ago |
1 file, +1, -2 |
| 37f1b609 |
android/client: Fix uninitialized "sock_fd" variable
If EXEC() macro is called with the first pointer argument NULL, sock_fd
will not be initialized. Given that the NULL check is not fatal, it is a
good idea to initialize the variable to -1 so the code has defined
behavior on this situation.
Detected by clang:
android/client/if-sock.c:251:7: error: variable 'sock_fd' is used
uninitialized whenever 'if' condition is false
[-Werror,-Wsometimes-uninitialized] |
Anderson Lizardo |
12 years ago |
1 file, +2, -2 |
| 7ce750c3 |
android/client: Use memcpy() for getting CMSG_DATA()
This is how it is done in all other places in BlueZ. Also drop
unnecessary "descs" local variable.
Fixes clang error:
android/client/if-sock.c:164:11: error: cast from 'unsigned char *' to
'int *' increases required alignment from 1 to 4 [-Werror,-Wcast-align] |
Anderson Lizardo |
12 years ago |
1 file, +1, -3 |
| e957c505 |
android/client: Remove duplicate "const" specifier
Fixes clang errors like:
android/client/if-hh.c:181:39: error: duplicate 'const' declaration
specifier [-Werror,-Wduplicate-decl-specifier] |
Anderson Lizardo |
12 years ago |
2 files, +12, -12 |
| eec27c1c |
android/client: Fix incorrect usage of bt_state_t2str()
Fixes clang error:
android/client/if-bt.c:313:54: error: implicit conversion from
enumeration type 'bt_status_t' to different enumeration type
'bt_state_t' [-Werror,-Wenum-conversion] |
Anderson Lizardo |
12 years ago |
1 file, +1, -1 |
| ff0afe7b |
tools: Fix possible uninitialized variable in obexctl
On set_default_session(), if g_dbus_proxy_get_property() returns FALSE,
desc will be uninitialized. Given that this function already checks for
NULL proxy internally, it is enough to check whether it fails (and if
so, set a default prompt without destination).
Fixes this clang error:
tools/obexctl.c:439:6: error: variable 'desc' is used uninitialized
whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] |
Anderson Lizardo |
12 years ago |
1 file, +2, -4 |
| 57207bf4 |
tools: Fix unaligned memory access on smp-tester
Fixes clang errors like:
tools/smp-tester.c:263:11: error: cast from 'uint8_t *' (aka 'unsigned
char *') to 'u128 *' increases required alignment from 1 to 8
[-Werror,-Wcast-align] |
Anderson Lizardo |
12 years ago |
1 file, +11, -5 |
| c4201e8a |
core: Fix sscanf() format specification
Also change the type of the "handle" variable so it is compatible with
the "%hu" specification used for sprintf() on the same function.
Fixes clang error:
src/adapter.c:3550:24: error: format specifies type 'unsigned short' but
the argument has type 'int' [-Werror,-Wformat] |
Anderson Lizardo |
12 years ago |
1 file, +6, -6 |
| ff7efed1 |
attrib: Fix sprintf() format specification
Fixes clang error:
src/attrib-server.c:916:26: error: format specifies type 'unsigned char'
but the argument has type 'uint16_t' (aka 'unsigned short')
[-Werror,-Wformat] |
Anderson Lizardo |
12 years ago |
1 file, +1, -1 |
| d4b837f3 |
health: Fix struct mcap_csp "csp_req" field type
The values to which this field is set have nothing to do with MCAPCtrl.
Fixes clang error:
profiles/health/mcap_sync.c:767:24: error: comparison of constant 17
with expression of type 'MCAPCtrl' is always true
[-Werror,-Wtautological-constant-out-of-range-compare] |
Anderson Lizardo |
12 years ago |
1 file, +1, -1 |
| 33df725c |
avrcp: Remove unnecessary "if (...)"
There is already a "if (type != 0x03 && type != 0x02)" check earlier on
the code, so a plain "if (...) else ..." is enough.
Fixes clang error:
profiles/audio/avrcp.c:2211:12: error: variable 'item' is used
uninitialized whenever 'if' condition is false
[-Werror,-Wsometimes-uninitialized] |
Anderson Lizardo |
12 years ago |
1 file, +1, -1 |
| 76f3c751 |
tools: Fix strncat() usage in hciconfig/hcitool
According to strncat() manpage:
"If src contains n or more characters, strncat() writes n+1 characters
to dest (n from src plus the terminating null byte). Therefore, the
size of dest must be at least strlen(dest)+n+1"
While the current usage of strncat() cannot cause an overflow, if a
bigger string is added to the switch()'s without increasing the static
buffer, it would overflow by one byte due to the incorrect size
calculation.
Fixes clang errors like:
tools/hciconfig.c:827:33: error: the value of the size argument in
'strncat' is too large, might lead to a buffer overflow
[-Werror,-Wstrncat-size] |
Anderson Lizardo |
12 years ago |
2 files, +29, -15 |
| 2b35d955 |
monitor: Handle multipe event types in a single advertising report |
Marcel Holtmann |
12 years ago |
1 file, +7, -2 |
| 4f72c380 |
monitor: Add support for Ellisys HCI Injection |
Marcel Holtmann |
12 years ago |
6 files, +216, -2 |
| 4b31ab4e |
tools: Allow using raw interface for 3DSP utility |
Marcel Holtmann |
12 years ago |
1 file, +43, -13 |
| 8a731845 |
android/bluetooth: Fix browse_remote_sdp return value
False was converted to HAL_STATUS_SUCCESS resulting in wrong error
code in case of failure in handle_get_remote_services_cmd. |
Szymon Janc |
12 years ago |
1 file, +1, -1 |
| 74c0e1fe |
btproxy: Fix closing invalid file descriptor
Instead of invalid file descriptor dst_fd close src_fd. |
Andrei Emeltchenko |
12 years ago |
1 file, +1, -1 |
| a5350c6e |
btmon: Fix memory leak
Dynamic memory stored in company allocated through function
hwdb_get_company shall be freed. |
Andrei Emeltchenko |
12 years ago |
1 file, +4, -2 |
| 9deb7158 |
btinfo: Add missing socket close() on exit |
Andrei Emeltchenko |
12 years ago |
1 file, +2, -0 |
| 01d5057d |
android/tester: Fix NULL dereference in socket setup
Add return statement to avoid NULL dereference in socket setup. |
Andrei Emeltchenko |
12 years ago |
1 file, +2, -0 |
| 8ebfb29e |
android/tester: Fix NULL dereference.
NULL pointer data->if_bluetooth will be dereferenced without return. |
Andrei Emeltchenko |
12 years ago |
1 file, +2, -0 |
| 0c16d38d |
shared: Fix build issue for Android
target thumb C: bluetoothd-snoop <=
external/bluetooth/bluez/android/../src/shared/btsnoop.c
external/bluetooth/bluez/android/../src/shared/btsnoop.c: In function
'btsnoop_create':
external/bluetooth/bluez/android/../src/shared/btsnoop.c:126:6: error:
'S_IRUSR' undeclared (first use in this function)
external/bluetooth/bluez/android/../src/shared/btsnoop.c:126:6: note:
each undeclared identifier is reported only once for each function it
appears in
external/bluetooth/bluez/android/../src/shared/btsnoop.c:126:16: error:
'S_IWUSR' undeclared (first use in this function)
external/bluetooth/bluez/android/../src/shared/btsnoop.c:126:26: error:
'S_IRGRP' undeclared (first use in this function)
external/bluetooth/bluez/android/../src/shared/btsnoop.c:126:36: error:
'S_IROTH' undeclared (first use in this function) |
Lukasz Rymanowski |
12 years ago |
1 file, +1, -0 |
| 6bd69ca5 |
android/map: Add support for MAP/MAS
Theres no HAL API exposed to application to register different MAS
instances. Android 4.4 does support only MAS SMS. All Instance ID,
supported msg type and rfcomm channel are hardcoded in the stack.
Unfortunatelly we need to do the same way and wait for new HAL API
which is expected. |
Lukasz Rymanowski |
12 years ago |
1 file, +80, -2 |
| c296b099 |
sdp: Add MAP_PROFILE_ID |
Lukasz Rymanowski |
12 years ago |
1 file, +1, -0 |
| 678b6733 |
emulator/bthost: Add support for encryption change HCI event |
Johan Hedberg |
12 years ago |
1 file, +23, -0 |
| 822d2780 |
tools: Add missing endian conversion |
Marcel Holtmann |
12 years ago |
1 file, +4, -4 |
| fbb5ab3f |
tools: Automatically powern on/off controller if needed |
Marcel Holtmann |
12 years ago |
1 file, +113, -12 |
| 3a2df24e |
tools: Allow usage of raw device sockets for info utility |
Marcel Holtmann |
12 years ago |
1 file, +48, -9 |
| df988009 |
shared: Use HCI filter for raw device access |
Marcel Holtmann |
12 years ago |
1 file, +19, -0 |
| dd374931 |
shared: Add support for using HCI raw device interface |
Marcel Holtmann |
12 years ago |
2 files, +37, -4 |
| 28a3044d |
tools: Use shared HCI code for information tool |
Marcel Holtmann |
12 years ago |
2 files, +97, -184 |
| 54c0afae |
android/tester: Add SCAN_MODE=NONE set prop done test case
This adds SCAN_MODE property set to NONE - done test case.
SCAN_MODE at startup is set to NONE. Bluez return status - done when
requested status is the same as was. |
Grzegorz Kolodziejczyk |
12 years ago |
1 file, +29, -0 |
| ae06d36a |
android/tester: Add BONDED_DEVICES get prop success test case
This adds BONDED_DEVICES get property success test case.
At this time there are no bonded devices. Clear bonded devices list is
expected. |
Grzegorz Kolodziejczyk |
12 years ago |
1 file, +27, -0 |