| 0ea63051 |
profile: Add missing browse group to MAS, MNS and SYNC records
This fix not updating UUIDs when those services are registered. |
Szymon Janc |
12 years ago |
1 file, +15, -0 |
| 2022b920 |
android: trivial: Add comment making code consistent |
Andrei Emeltchenko |
12 years ago |
1 file, +2, -0 |
| bde65270 |
android/socket: Add connect signal to socket
Connect signal is used to pass information to framework that socket
is accepted. |
Andrei Emeltchenko |
12 years ago |
1 file, +7, -0 |
| 9ee7b3dd |
audio/AVCTP: Use A/V_RemoteControl UUID for incoming connections
By the time and incoming connection arrives it is not possible to
determine the role, so this changes the UUID to A/V_RemoteControl which
according to assigned number page bellow is the profile UUID for AVRCP:
https://www.bluetooth.org/en-us/specification/assigned-numbers/service-discovery |
Luiz Augusto von Dentz |
12 years ago |
1 file, +1, -1 |
| 5a8313a4 |
android/hal: Verify command status response before processing
This makes HAL IPC code verify error reply before processing it. It
also verify if success status was reported according to IPC spec. |
Szymon Janc |
12 years ago |
1 file, +11, -0 |
| fc10c554 |
android: Improve IPC helper to not send invalid status response
This fix issue with sending invalid success response from several
places where ipc_send_rsp was used for reporting success. Instead of
using using ipc_send for success response, make helper handle that. |
Szymon Janc |
12 years ago |
8 files, +20, -11 |
| d9c8be61 |
audio/AVDTP: Remove unused avdtp_set_device_disconnect |
Luiz Augusto von Dentz |
12 years ago |
2 files, +0, -15 |
| 9c2e54ab |
audio/sink: Remove shutdown parameter from sink_disconnect
This parameter is always false so it never do anything. |
Luiz Augusto von Dentz |
12 years ago |
3 files, +3, -6 |
| dd48f0b8 |
audio/source: Remove shutdown parameter from source_disconnect
This parameter is always false so it never do anything. |
Luiz Augusto von Dentz |
12 years ago |
3 files, +3, -6 |
| 9e7edd01 |
audio/AVDTP: Remove public function that are only used locally |
Luiz Augusto von Dentz |
12 years ago |
2 files, +12, -23 |
| d439f053 |
audio/AVDTP: Remove unused code |
Luiz Augusto von Dentz |
12 years ago |
2 files, +0, -28 |
| f9d15c95 |
android/a2dp: Use NULL for zero pointer |
Andrei Emeltchenko |
12 years ago |
1 file, +14, -14 |
| 7d777eda |
android/socket: Use static local adapter address |
Andrei Emeltchenko |
12 years ago |
1 file, +3, -0 |
| e94a6677 |
android/hal-sock: Add debug flag printing |
Andrei Emeltchenko |
12 years ago |
1 file, +4, -4 |
| 2e86eac8 |
android: Refactor update_found_device function
This makes function flow easier to follow and understand. Besides that
it also fix issue with sending to many bytes if some prop were not
present in EIR. |
Szymon Janc |
12 years ago |
1 file, +57, -84 |
| 51012a01 |
android: Fix sending invalid remote device property event
Remote device property event has variable length, pass whole event
length to ipc_send, not only header. |
Szymon Janc |
12 years ago |
1 file, +1, -1 |
| ff7246fb |
android: Fix sending remote device property if name is not present
This fix missing bdaddr to string convertion if name was NULL. This
was resulting in using undefined dst value. |
Szymon Janc |
12 years ago |
1 file, +3, -1 |
| b3203173 |
Release 5.11 |
Marcel Holtmann |
12 years ago |
2 files, +13, -1 |
| 40a960d2 |
build: Update library version |
Marcel Holtmann |
12 years ago |
1 file, +1, -1 |
| 97e34495 |
lib: Update company identifiers |
Marcel Holtmann |
12 years ago |
1 file, +36, -0 |
| ba310d7f |
android: Change TODO with explaining comment |
Lukasz Rymanowski |
12 years ago |
1 file, +4, -1 |
| e6230752 |
android: Update bond state on auth and connect failed |
Lukasz Rymanowski |
12 years ago |
1 file, +35, -22 |
| 818d532b |
android: Cache device name on device list. |
Lukasz Rymanowski |
12 years ago |
1 file, +59, -10 |
| e9d43a87 |
android: Update bond state on incoming bonding
Before sending any ssp request or pin code request up to HAL library we
need to send bond state change with bonding state. Otherwise incoming
bonding is not correctly handled by Bluetooth.apk.
In this patch also device list has been added in order to e.g track
bonding state.
Note: For incoming paring (security mode 3) there is a need to send
HAL_EVE_REMOTE_DEVICE_PROPS before HAL_EV_PIN_REQUEST.
It is because Android will crash due to bug in pinRequestCallback
function in java. Android checks if device is already in HashMap and if
not then creates device, but forget to use that one, but instead do
operations on NULL. By sending HAL_BOND_STATE_BONDING event it works
better but we have race issue. It is because new device is added to
HashMap not in callback context but later after BONDING msg will be
received by BondStateMachine. If it happens before pin_request_cb hits
java then we are fine, otherwise not. So for that reason we send
HAL_EV_REMOTE_DEVICE_PROPS so in the java handler class new device will
be added to HashMap in the callback context.
In ssp case we don't have this problem as we send device found once acl
is created. |
Lukasz Rymanowski |
12 years ago |
1 file, +83, -14 |
| e30125fa |
android: Fix not storing adapter index in index added event
If controller was addded after daemon start its index was not stored
resulting in mgmt commands to be always send to MGMT_INDEX_NONE index. |
Szymon Janc |
12 years ago |
1 file, +2, -0 |
| 32776f33 |
android/hal-ipc: Add pan notification call to hal-ipc dispatch handler |
Ravi kumar Veeramally |
12 years ago |
1 file, +3, -0 |
| 017aa015 |
android/pan: Fix wrong HAL service id |
Ravi kumar Veeramally |
12 years ago |
1 file, +1, -1 |
| 711331d2 |
android/a2dp: Add implementation of SDP record
This adds the following record:
Service Name: Audio Source
Service RecHandle: 0x10001
Service Class ID List:
"Audio Source" (0x110a)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 25
"AVDTP" (0x0019)
uint16: 0x103
Profile Descriptor List:
"Advanced Audio" (0x110d)
Version: 0x0103 |
Luiz Augusto von Dentz |
12 years ago |
1 file, +82, -0 |
| d311204d |
android/build: Remove unnecessary mentions of source files in EXTRA_DIST |
Johan Hedberg |
12 years ago |
1 file, +1, -44 |
| 4fc1a0cf |
android/build: Add missing header files to android_haltest_SOURCES |
Johan Hedberg |
12 years ago |
1 file, +4, -0 |
| 9ad9540f |
android: Rename bluetooth service functions to match service name
Make public functions match service name. |
Szymon Janc |
12 years ago |
3 files, +28, -27 |
| c060fc69 |
android: Rename adapter.c to bluetooth.c
Match service name that is implemened in that file. This will also
keep convention of foo.c and hal-foo.c implementing remote parts of
same service. |
Szymon Janc |
12 years ago |
7 files, +2219, -2219 |
| 3419cd21 |
android: Remove not needed bt_adapter_get_address function
All services receive adapter address on init so there is no need for
this function. Removing it will also help keeping services not depend
on adapter service. |
Szymon Janc |
12 years ago |
2 files, +0, -7 |
| 3be6d4a8 |
android: Report adapter address in adapter_ready callback
Adapter is not going to change while daemon is running so its address
can be stored after init is complete. |
Szymon Janc |
12 years ago |
3 files, +17, -14 |
| a332daeb |
android/hidhost: Use adapter address provided on register
There is no need to use bt_adapter_get_address every time local address
is needed. |
Szymon Janc |
12 years ago |
1 file, +10, -11 |
| cd1dd51f |
android: Don't use static pointer for storing adapter_ready callback
There is no need to keep ready callback for daemon lifetime as it is
not used after reporting adapter being ready. Use mgmt library feature
for passing user data so that static pointer is not needed. |
Szymon Janc |
12 years ago |
1 file, +21, -19 |
| e809154e |
android: Move adapter initialization to adapter.c
There is no need to handle that in main.c. Also this removes mgmt
interface dependency from adapter API as all mgmt commands are handled
from adapter code.
Startup and shutdown timeouts handling is left in main.c. |
Szymon Janc |
12 years ago |
3 files, +240, -262 |
| 73e110b5 |
android: Make adapter static
Only one controller is used so there is no need to keep it as allocable
structure. This will also make memory management simpler and more
correct eg. adapter was never free.
Elements not directly related to adapter are kept outside of adapter
structure. |
Szymon Janc |
12 years ago |
1 file, +152, -155 |
| f3f7b722 |
core: Do not change service state in btd_service_connect if it fails
If .connect fails and the service state changes it may re-enter
connect_next, inverting the order and messing up the error of each
connect request. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +3, -5 |
| 41599b1d |
android/a2dp: Add initial implementation of HAL_OP_A2DP_DISCONNECT |
Luiz Augusto von Dentz |
12 years ago |
1 file, +23, -2 |
| 9cb73c97 |
android/a2dp: Add initial implementation of HAL_OP_A2DP_CONNECT |
Luiz Augusto von Dentz |
12 years ago |
1 file, +70, -18 |
| 46c8cd97 |
android/a2dp: Add initial implementation of socket handling
This adds initial code to handle incoming connection and notifying
connection states. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +132, -0 |
| 230211cd |
android/hal-a2dp: Add defines for possible connection states |
Luiz Augusto von Dentz |
12 years ago |
1 file, +5, -0 |
| cfcbbf8f |
android/hal-a2dp: Add implemention of .cleanup |
Luiz Augusto von Dentz |
12 years ago |
1 file, +7, -2 |
| ad5813bc |
android/hal-a2dp: Add implemention of .init |
Luiz Augusto von Dentz |
12 years ago |
1 file, +5, -2 |
| f10e740f |
android/hal-a2dp: Use conn_state instead of connection_state
This is shorter and more consistent with other HAL such as HID. |
Luiz Augusto von Dentz |
12 years ago |
2 files, +7, -7 |
| d39e947a |
android/debug: Move debug functions to hal-utils.c
Debug functions will be used by HALs and haltest. |
Andrei Emeltchenko |
12 years ago |
14 files, +379, -429 |
| 7d699101 |
android: Core service should be always registered
Core service is used to register other services and shall be always
consider registered. |
Szymon Janc |
12 years ago |
1 file, +3, -0 |
| 33d823d2 |
android: Shutdown if IPC command for unregistered service is received
Sending commands to not registered services is violation of IPC spec
and should result in daemon shutdown. |
Szymon Janc |
12 years ago |
1 file, +7, -0 |
| 5cc87d0a |
audio/A2DP: Return -ENOPROTOOPT if record doesn't exist
In case record is not registered it means no endpoint is available so
return -ENOPROTOOPT to indicate that it is currently not available. |
Luiz Augusto von Dentz |
12 years ago |
1 file, +24, -0 |