Commit Graph

2754 Commits

Author SHA1 Message Date
Luiz Augusto von Dentz
042b4faba9 android/avrcp: Register CT record
This fixes TC_SDAS_BV_03_I which requires CT record.
2014-08-20 13:45:29 +03:00
Lukasz Rymanowski
212d3b0fd2 android/bluetooth: Add debug log to select_device_bearer
This patch refactor a bit select_device_bearer function so we can get
debug log out of it. This log might be very useful in dual mode devices
scenarios
2014-08-20 10:26:52 +02:00
Lukasz Rymanowski
e73a294291 android/bluetooth: Fix bdaddr_type in pairing scenario
With this patch correct bdaddr type is used in ssp pairing scenario
2014-08-20 10:26:52 +02:00
Andrei Emeltchenko
05fd766946 android/health: Fix NULL dereference
In a case get_app(), get_device(), get_channel() fail prevent
dereference of NULL pointer. Fixes clang warnings:
...
android/health.c:1980:15: warning: Access to field 'dev' results in a
dereference of a null pointer (loaded from variable 'channel')
        queue_remove(channel->dev->channels, channel);
                     ^~~~~~~~~~~~
1 warning generated.
...
2014-08-20 10:26:32 +02:00
Lukasz Rymanowski
21fb4064f2 android/bluetooth: Update pairing status on pair complete event
So far BfA updates android bond state after link key(s) are
distributed. With LE pairing it might happen that no keys are
distributed e.g remote device has Initiator Key Distribution and
Responder Key Distribution set to 0. In such case link is encrypted
with STK and after its disconnected, pairing needs to be done again.

With this patch Android will get update about pairing complete just
after BfA gets pairing complete from the kernel. It solve issue withnot
updated Android settings application, which is hanging on "Pairing", in
case when no keys are distributed.

However, bacause Android does not see the difference between bonded /
paired devices and because Android does not allow to update its bond
state if FSM it is not in 'pending' state, BfA updates Android with
BONDED state on pair_complete with success. This is how we are doing
so far for bonding and non-bonding pairing.

Note: BfA will update its bonded state after link key(s) are
distribiuted.
2014-08-20 10:23:56 +02:00
Szymon Janc
0c47d4811a android/pts: Update PAN PICS and tests results
Specification Errata #3558 makes LLMNR support optional as LLMNR Draft
was never adopted by IETF. AOSP doesn't support LLMNR.
2014-08-19 19:32:06 +02:00
Lukasz Rymanowski
bc0e548895 android/pts: Updated GAP test result
Updated test result and instruction for TC_BOND_BON_BV_04_C
2014-08-19 19:24:33 +02:00
Jakub Tyszkowski
96eca81c95 android/pts: Update GAP result for handling directed advertising
Previously used connection procedure was to slow for remotes preforming
directed advertising. This issue is no longer valid on the latest kernel
and auto connection support added recently to the daemon.
2014-08-19 19:24:21 +02:00
Sebastian Chlad
aebcf9b5c8 android/pts: Update PTS files for L2CAP
PICS and PIXITs checked against PTS 5.2. Regression round on PTS
5.2 against Android 4.4.4. Interim results.
2014-08-19 19:24:21 +02:00
Marcin Kraglak
ef74914b48 android/pts: Update GAP PTS test results 2014-08-19 19:24:13 +02:00
Lukasz Rymanowski
f884c34dbb android/bluetooth: Fix device found notification
If device is dual mode and can be seen on both LE and BREDR, then
bdaddr_type in device struct keeps LE address type of that device.

During discovery, we should take current bdaddr_type to decide about
passing that device up to application or not. Using dev->braddr_type might
be misleading

This patch fix scenario when remote device is known as LE device and
recently has been found on inquiry seesion as DUAL mode device. In such
case, based on braddr_type and eir flags we could incorectly skip
new device notification for Android framework.
2014-08-19 18:47:54 +02:00
Ravi kumar Veeramally
62526c7106 android/health: Simplify search_cb failure case 2014-08-19 18:40:50 +02:00
Ravi kumar Veeramally
e32d55d40a android/health: Add some information messages 2014-08-19 18:40:49 +02:00
Ravi kumar Veeramally
e21de8732f android/health: Fix connect channel failure case
There is a possibilty of created channel is being added to queue,
but on failure case it does channel free but not removed from queue.
2014-08-19 16:54:02 +02:00
Jakub Tyszkowski
d32c25e0c1 android/pts: Update PBAP results 2014-08-18 13:23:16 +02:00
Johan Hedberg
b6bfed3c5b android/bluetooth: Fix getting RFCOMM channel instead of L2CAP PSM 2014-08-15 14:02:52 +03:00
Andrei Emeltchenko
eec3ccf63f android: Fix memory leak
protos gets allocated and needs to be freed
2014-08-15 13:59:26 +03:00
Johan Hedberg
8587edd4c2 android/bluetooth: Minor coding style fixes 2014-08-15 10:51:49 +03:00
Grzegorz Kolodziejczyk
da3aae0316 android/pts: Update IOPT test results 2014-08-15 10:51:49 +03:00
Grzegorz Kolodziejczyk
3ad2f5bf99 android/bluetooth: Add support for get remote service record property cmd
This allows to get service record property by uuid of specified remote device.
2014-08-15 10:51:49 +03:00
Grzegorz Kolodziejczyk
4b581988b0 android/bluetooth: remove unused include
uuid-helper.h is no longer used in bluetooth.c
2014-08-14 13:01:47 +03:00
Lukasz Rymanowski
87a957998a android/health: Fix reconnect scenario
When trying to reconnect to HDP device, BfA tries to connect MDL even
MCL is not connected.

D/BlueZ   ( 2218): external/bluetooth/bluez/android/hal-health.c:connect_channel()
I/bluetoothd( 2220): bluetoothd[2221]: external/bluetooth/bluez/android/health.c:bt_health_connect_channel()
I/bluetoothd( 2220): bluetoothd[2221]: external/bluetooth/bluez/android/health.c:create_channel() mdep 1
D/BlueZ   ( 2218): external/bluetooth/bluez/android/hal-bluetooth.c:handle_acl_state_changed() state 0
I/bluetoothd( 2220): bluetoothd[2221]: external/bluetooth/bluez/android/mcap-lib.c:mcap_create_mdl()
I/bluetoothd( 2220): bluetoothd[2221]: health: error creating mdl MCL is not connected

This patch makes sure that MCL is connected before trying to connect
MDL.
2014-08-13 17:29:29 +03:00
Sebastian Chlad
eded8edfcc android/pts: Correct trivial typos 2014-08-13 12:59:14 +03:00
Andrei Emeltchenko
0f539bbfa6 monitor: Use common maximum packet size definition 2014-08-13 12:17:24 +03:00
Luiz Augusto von Dentz
df9ef19b38 android/tester: Add A2DP Suspend - Success test case 2014-08-11 18:01:31 +03:00
Luiz Augusto von Dentz
39805a5a4d android/tester: Add A2DP Resume - Success test case 2014-08-11 18:01:31 +03:00
Luiz Augusto von Dentz
066eaa2ab6 android/tester: Add A2DP Disconnect - Success test case 2014-08-11 18:01:31 +03:00
Luiz Augusto von Dentz
78e54de856 android/tester: Add A2DP connect - Success test case 2014-08-11 18:01:31 +03:00
Luiz Augusto von Dentz
ca1485e986 android/tester: Add A2DP init - Success test case 2014-08-11 18:01:31 +03:00
Luiz Augusto von Dentz
655b480b2b android/tester: Load audio module
This is necessary to be able to do A2DP tests.
2014-08-11 18:01:31 +03:00
Luiz Augusto von Dentz
1dfd92f73c android: Fix not including shared/queue.c in A2DP plugin
This can cause the followin error:
audio.a2dp.default.so: undefined symbol: queue_foreach
2014-08-11 18:01:31 +03:00
Lukasz Rymanowski
425a787ce6 android/pixit: TSPX_security_enabled is not default
Mark that TSPX_security_enable PIXIT is changed compared to default
settings
2014-08-11 16:38:55 +03:00
Grzegorz Kolodziejczyk
1c0f5de027 android/pts: Update PTS files for IOPT
PICS and PIXITs updated to PTS 5.2. Regression done for Android
4.4.4.
2014-08-11 16:38:20 +03:00
Andrei Emeltchenko
a7b1ac9207 android/tester: Fix using uninitialized variable
Fix typo not initializing variable. Silence warnings:

...
/android/tester-hdp.c: 71 in create_app()
/android/tester-hdp.c: 97 in create_app()
...
>>>     Using uninitialized value "mdep2". Field
>>>     "mdep2.mdep_description" is uninitialized.
71              reg->mdep_cfg[1] = mdep2;
...
>>>     Using uninitialized value "mdep2". Field
>>>     "mdep2.mdep_description" is uninitialized.
97              reg->mdep_cfg[1] = mdep2;
...
2014-08-11 10:33:24 +03:00
Lukasz Rymanowski
f034df61a6 android/pts: Update A2DP test results
Updated test result for TC_SRC_REL_BV_01_I
2014-08-11 10:17:01 +03:00
Lukasz Rymanowski
991f850c04 android/a2dp: Fix for PTS testcase
This patch is a fix for PTS TC_SRC_REL_BV_01_I
PTS expects us to CLOSE stream not to ABORT the stream when
disconnecting A2DP.
2014-08-08 17:28:40 +03:00
Lukasz Rymanowski
6e01436e9b android/a2dp: Improve avdtp_close function
With this patch avdtp_close does avdtp_abort under the hood in case
stream is not yet in OPEN state.
2014-08-08 17:28:39 +03:00
Sebastian Chlad
4b9b09235e android/pts: PTS files for MCAP
Update for PIXIT and PICS for MCAP on PTS 5.2 as well as regression
test round on Android 4.4.4 against PTS 5.2
2014-08-08 16:34:51 +03:00
Ravi kumar Veeramally
06941720e4 android/tester: Add HDP App Unregister test case 2014-08-08 16:33:38 +03:00
Ravi kumar Veeramally
7463888f6b android/tester: Add HDP App Register test cases 2014-08-08 16:33:37 +03:00
Ravi kumar Veeramally
120e76e69d android/tester: Add HDP init test case 2014-08-08 16:33:34 +03:00
Luiz Augusto von Dentz
921a4d86c1 android/tester-hidhost: Make cid_data static 2014-08-08 13:54:25 +03:00
Luiz Augusto von Dentz
a4e44d955a android/tester-pan: Make cid_data static 2014-08-08 13:54:25 +03:00
Luiz Augusto von Dentz
80d7a8665c android/tester: Fix duplicate const 2014-08-08 13:54:25 +03:00
Luiz Augusto von Dentz
8f902ac3b1 android/hog: Fix report lookup
This fixes not utilizing the report id to match the characteristic that
map it.
2014-08-08 13:54:25 +03:00
Sebastian Chlad
ca31afcbb1 android/pts: Update HID PTS text file 2014-08-06 12:07:07 +03:00
Johan Hedberg
4ca4a83137 android/tester: Minor coding style fix 2014-08-06 10:39:17 +03:00
Ravi kumar Veeramally
68d56c3c72 android/tester: Add PAN Enable None test case 2014-08-06 10:38:22 +03:00
Ravi kumar Veeramally
f7d3023845 android/tester: Add PAN Enable PANU test case 2014-08-06 10:38:21 +03:00
Ravi kumar Veeramally
c565909115 android/tester: Add PAN Enable NAP test case 2014-08-06 10:38:20 +03:00