| a414f36b |
core/gatt-client: Fix malformed error name
Fixed error name from 'org.bluez.Error' to 'org.bluez.Error.Failed'. |
Arman Uguray |
10 years ago |
1 file, +1, -1 |
| 7aea0010 |
bluetooth.conf: Add DBus.Properties interface
GattManager1 communicates with external services using their properties.
This patch adds the org.freedesktop.DBus.Properties interface to the
list of allowed interfaces in the D-Bus configuration. |
Arman Uguray |
10 years ago |
1 file, +3, -0 |
| 8add14bb |
shared/gatt: Cancel timeouts when attrib removed
This cancels the pending request timeouts when a gatt_db_attribute
structure is removed from the gatt-db, to prevent an invalid access
when the timeout fires after a free. This patch also increases the
pending request timeout interval from 1 second to 5 seconds. |
Arman Uguray |
10 years ago |
1 file, +38, -24 |
| 2cd4c008 |
gdbus: Don't refresh objects/props if disconnected
If g_dbus_client_set_proxy_handlers gets called from within a
proxy_removed callback, the code may end up refreshing the proxy's
properties and incorrectly access the client's proxy_list as it gets
freed. This patch fixes this, so that get_managed_objects does nothing
if it gets called during a service disconnect. |
Arman Uguray |
10 years ago |
1 file, +8, -5 |
| 6d14672e |
tools: Allow using cross-transport pairing within OOB test utility |
Marcel Holtmann |
10 years ago |
1 file, +18, -3 |
| c8b0c1d5 |
tools: Allow legacy pairing within OOB testing utility |
Marcel Holtmann |
10 years ago |
1 file, +39, -3 |
| b995e5f7 |
tools: Print human readable key identifier for OOB pairing |
Marcel Holtmann |
10 years ago |
1 file, +64, -2 |
| e7ea01cf |
android: Add GAVDP PTS files to EXTRA_DIST |
Szymon Janc |
10 years ago |
1 file, +4, -1 |
| b4a85be3 |
android/pts: Add GAVDP PICS, PIXIT and test results with PTS 6.0 |
Szymon Janc |
10 years ago |
3 files, +92, -0 |
| a05028d9 |
android/build: Fix libraries installation path on KitKat
LOCAL_MODULE_RELATIVE_PATH is required for proper multilib build but
is not avaialble on KitKat. |
Szymon Janc |
10 years ago |
1 file, +18, -3 |
| 61c13934 |
android/pts: Update HFP test results for PTS 6.0 |
Mariusz Skamra |
10 years ago |
1 file, +6, -6 |
| a24d2983 |
android/pts: Update HFP PIXIT, PICS for PTS 6.0 |
Mariusz Skamra |
10 years ago |
2 files, +7, -10 |
| 3eb3d396 |
android/handsfree: Fix SCO disconnection while dialing
If we decide to hang up while dialing or alerting, SCO needs to be closed.
Fixes: TC_AG_TCA_BV_04_C |
Mariusz Skamra |
10 years ago |
1 file, +4, -0 |
| ca4364f4 |
android/handsfree: Fix not sending proper call hold status
This patch fixes not sending callheld=1 +CIEV to HF in Lollipop after
accepting waiting call and placing active call on hold.
On KitKat phone_state_change calls looks as follows:
state=4 active=1 held=0 <= we have another connection
state=6 active=1 held=1 <= swapped connections
On Lollipop there is additional bogus state:
state=4 active=1 held=0
state=4 active=0 held=1 <= hold current call
state=6 active=1 held=1
so the "if (num_held > dev->num_held)" condition is no longer applicable.
Fixed TC: TC_AG_ECS_BV_03_I, TC_AG_TWC_BV_03_I, TC_AG_TWC_BV_04_I |
Mariusz Skamra |
10 years ago |
1 file, +4, -1 |
| ac2ae7f8 |
android/handsfree: Fix no indicators after rejected incoming call
On KitKat there were some bogus phone_state_change calls after
incoming call was rejected from the phone:
active=0 hold=0 state=idle
active=0 hold=0 state=incoming
active=0 hold=0 state=idle
active=0 hold=0 state=idle
On Lollipop this seems to be fixed and after call is rejected we
only get single call with state idle:
active=0 hold=0 state=idle
So simply reverting workaround commit "Track if incoming call is
being rejected" would break KK.
Instead, add short timeout after incoming call was rejected. Durring
that period we ignore any phone state change to 'incoming' state.
If we get any other state change (ie. outgoing call) timer is cleared. |
Szymon Janc |
10 years ago |
1 file, +32, -6 |
| aa8d6951 |
android/pts: Fix PTS version for IOPT PICS |
Szymon Janc |
10 years ago |
1 file, +1, -1 |
| 252cc886 |
audio/avdtp: Fix incorrect delay_reporting assignment |
Andrei Emeltchenko |
10 years ago |
1 file, +1, -1 |
| 56753316 |
monitor: Add PSM tracking support for LE CoC
This uses identifier to match simultaneous L2CAP connect requests
and responses.
< ACL Data TX: Handle 3585 flags 0x00 dlen 18
LE L2CAP: LE Connection Request (0x14) ident 2 len 10
PSM: 131 (0x0083)
Source CID: 65
MTU: 672
MPS: 672
Credits: 10
> ACL Data RX: Handle 3585 flags 0x02 dlen 18
LE L2CAP: LE Connection Response (0x15) ident 2 len 10
Destination CID: 65
MTU: 23
MPS: 23
Credits: 5
Result: Connection successful (0x0000)
< ACL Data TX: Handle 3585 flags 0x00 dlen 27
Channel: 65 len 23 [PSM 131 mode 0] {chan 1}
17 00 00 00 00 00 17 00 7f 7f 7f 7f 7f 7f 7f 7f ................
7f 7f 7f 7f 7f 7f 7f .......
< ACL Data TX: Handle 3585 flags 0x00 dlen 6
Channel: 65 len 2 [PSM 131 mode 0] {chan 1}
7f 7f .. |
Szymon Janc |
10 years ago |
2 files, +41, -18 |
| 16ad0a71 |
android/avdtp: Fix registering SEP with wrong SEID
Add seid check fixing registering too many SEPs |
Andrei Emeltchenko |
10 years ago |
1 file, +5, -1 |
| 20890b9d |
unit/avdtp: Add check for too many SEP creation
Test checks that maximum numbers of SEPs registered is MAX_SEID. |
Andrei Emeltchenko |
10 years ago |
1 file, +7, -0 |
| c4686d50 |
android/avdtp: Fix SEID generation
Fixes SEID generation for avdtp. Currently SEIDs were assigned assuming
that SEID are registered and unregistered in the same order like:
seid = g_slist_length(seps) + 1
which makes it possible to reuse similar SEIDs. Note that helper
function allows maximum id of sizeof(int) * 8 which is smaller then
MAX_SEID but more then enough for local SEPs. |
Andrei Emeltchenko |
10 years ago |
3 files, +6, -1 |
| dbcd2d44 |
shared/utils: Add helpers for bitfield id generation
For small unique id generation we may use bitfield since it is very fast
and memory efficient. Helpers are added to generate id from 1 to 32 to
utils. |
Andrei Emeltchenko |
10 years ago |
2 files, +32, -0 |
| 62a112bd |
unit/avdtp: Add duplicate SEID test
Add test adding two SEP, then remove first and create another one. With
the current code new SEP has the same SEID (2!). Following patches
fixing the bug. |
Andrei Emeltchenko |
10 years ago |
1 file, +43, -0 |
| 65b32465 |
unit/avdtp: Add SEP register/unregister tests
Add register_sep and unregister_sep testing registering maximum amount
of SEPs. |
Andrei Emeltchenko |
10 years ago |
1 file, +34, -0 |
| b8b58262 |
shared/gatt-db: Fix zero length realloc
gatt_db_attribute_write should not attempt to realloc with zero
length since that would cause the data to be freed, instead just skip
any operation that could affect the buffer. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +5, -0 |
| 3508e02e |
core/gatt: Fix incorrect response on CCC read
This patch fixes a bug where a CCC read on the local GATT server always
returned a 0-length value. |
Arman Uguray |
10 years ago |
1 file, +2, -2 |
| 29133a12 |
unit/test-gatt: Use tester framework
Our tester framework actually produces much better output. |
Luiz Augusto von Dentz |
10 years ago |
1 file, +36, -70 |
| d7d12e18 |
android/client: Fix Send Pass Through command
Parameter should be checked if it's given with (argc is lower than
expected). Third parameter can be auto completed with cached bluetooth
addresses. |
Grzegorz Kolodziejczyk |
10 years ago |
1 file, +9, -7 |
| 1a394e52 |
doc/test-coverage: Update Android tests count |
Szymon Janc |
10 years ago |
1 file, +2, -2 |
| a980d156 |
android/tester: Add test for GATT server app indication confirmation
This adds checking if sent indication or notification has been confirmed
over HAL. |
Jakub Tyszkowski |
10 years ago |
3 files, +27, -2 |
| 89f820ab |
android/tester: Add case for error passing in GATT server responses
This is to verify proper error passing from user apps. |
Jakub Tyszkowski |
10 years ago |
3 files, +80, -0 |
| 1fdcd56e |
android/gatt: Use g_attrib_send consistently
'g_attrib_send' do checks the 'length' parameter so there is no need
for us to do this (and in most cases we don't). We can test the
returned value in case we want to report error. |
Jakub Tyszkowski |
10 years ago |
1 file, +9, -20 |
| 3f1c19e2 |
android/pts: Update HDP pixits, pics and test results for PTS 6.0
This patch updates test pixits, pics and results for HDP profile
against android 5.0. |
Grzegorz Kolodziejczyk |
10 years ago |
3 files, +38, -21 |
| bb02589d |
android/pts: Update PAN PTS 6.0 results for android 5.0
This patch updates test case list and results for PAN profile against
android 5.0. |
Grzegorz Kolodziejczyk |
10 years ago |
1 file, +62, -59 |
| 4662130c |
android/pts: Update PAN pics, pixits for PTS 6.0
This patch updates pics and pixits for PTS 6.0. |
Grzegorz Kolodziejczyk |
10 years ago |
2 files, +15, -3 |
| 4c838a11 |
android/bluetooth: Fix enabling secure connection
Current code works fine for controllers supporting BR/EDR secure
connections.
We want to have LE Secure connection enabled also for controllers which
does not support BR/EDR secure connections. For this we need to set
secure connection in the kernel just after LE is enabled (if requested
on register) |
Lukasz Rymanowski |
10 years ago |
1 file, +4, -3 |
| ae443493 |
monitor: Fix selecting PSM for L2CAP frame
Current code could fail to pick up right PSM resulting in using PSM 1
for non-SDP traffic.
Fix following:
> ACL Data RX: Handle 3 flags 0x02 dlen 9
Channel: 64 len 5 [PSM 1 mode 0] {chan 0}
invalid frame size
> ACL Data RX: Handle 3 flags 0x02 dlen 20
Channel: 64 len 16 [PSM 1 mode 0] {chan 0}
invalid frame size
2b 42 52 53 46 3d 32 35 35 0d e4 +BRSF=255..
< ACL Data TX: Handle 3 flags 0x00 dlen 28
Channel: 256 len 24 [PSM 3 mode 0] {chan 1}
RFCOMM: Unnumbered Info with Header Check (UIH)(0xef)
Address: 0x69 cr 0 dlci 0x1a
Control: 0xef poll/final 0
Length: 20
FCS: 0x3e
0d 0a 2b 42 52 53 46 3a 20 38 37 31 0d 0a 0d 0a ..+BRSF: 871....
4f 4b 0d 0a 3e OK..>
instead of:
> ACL Data RX: Handle 4 flags 0x02 dlen 20
Channel: 64 len 16 [PSM 3 mode 0] {chan 1}
RFCOMM: Unnumbered Info with Header Check (UIH)(0xef)
Address: 0x6b cr 1 dlci 0x1a
Control: 0xef poll/final 0
Length: 12
FCS: 0xe4
41 54 2b 42 52 53 46 3d 32 35 35 0d e4 AT+BRSF=255..
< ACL Data TX: Handle 4 flags 0x00 dlen 28
Channel: 384 len 24 [PSM 3 mode 0] {chan 1}
RFCOMM: Unnumbered Info with Header Check (UIH)(0xef)
Address: 0x69 cr 0 dlci 0x1a
Control: 0xef poll/final 0
Length: 20
FCS: 0x3e
0d 0a 2b 42 52 53 46 3a 20 38 37 31 0d 0a 0d 0a ..+BRSF: 871....
4f 4b 0d 0a 3e OK..> |
Szymon Janc |
10 years ago |
1 file, +4, -1 |
| 3f4d92e9 |
monitor: Factor out channel selection to separate function
This allows to have conditions check in single place. |
Szymon Janc |
10 years ago |
1 file, +25, -60 |
| ccea880e |
unit/test-gatt: Add TP/GAR/CL/BI-35-C test
Verify Generic Attribute Profile client behavior when an attempt to use
LE transport to execute the Read Characteristic Value procedure on a
characteristic contained within a service defined for use only over
BR/EDR transport. |
Bharat Panda |
10 years ago |
1 file, +6, -0 |
| 0576dd6b |
unit/test-gatt: Add TP/GAR/CL/BI-34-C test
Verify Generic Attribute Profile client behavior when an attempt to use
BR/EDR transport to execute the Read Characteristic Value procedure on a
characteristic contained within a service defined for use only over
LE transport. |
Bharat Panda |
10 years ago |
1 file, +12, -0 |
| 07c0cea3 |
unit/test-gatt: Add TP/GAR/CL/BI-33-C test
Verify Generic Attribute Profile client behavior when the Read Long
Characteristic Descriptor procedure fails due to insufficient encryption
key size. |
Bharat Panda |
10 years ago |
1 file, +12, -0 |
| fdad98ab |
unit/test-gatt: Add TP/GAR/CL/BI-32-C test
Verify Generic Attribute Profile client behavior when the Read Long
Characteristic Descriptor procedure fails due to insufficient
authentication. |
Bharat Panda |
10 years ago |
1 file, +12, -0 |
| 5c8385cf |
unit/test-gatt: Add TP/GAR/CL/BI-31-C test
Verify Generic Attribute Profile client behavior when the Read Long
Characteristic Descriptor procedure fails due to insufficient
authorization. |
Bharat Panda |
10 years ago |
1 file, +12, -0 |
| 43488476 |
unit/test-gatt: Add TP/GAR/CL/BI-30-C test
Verify Generic Attribute Profile client behavior when the Read Long
Characteristic Descriptor procedure fails due to invalid handle. |
Bharat Panda |
10 years ago |
1 file, +6, -0 |
| 8c7732f1 |
unit/test-gatt: Add TP/GAR/CL/BI-29-C test
Verify Generic Attribute Profile client behavior when the Read Long
Characteristic Descriptor procedure fails due to invalid offset. |
Gowtham Anandha Babu |
10 years ago |
1 file, +12, -0 |
| 39c44e8d |
unit/test-gatt: Add TP/GAR/CL/BI-28-C test
Verify Generic Attribute Profile client behavior when the Read Long
Characteristic Descriptor procedure fails due to read not permitted. |
Gowtham Anandha Babu |
10 years ago |
1 file, +12, -0 |
| a8d841c7 |
unit/test-gatt: Add TP/GAR/CL/BV-07-C/512B test
Verify that a Generic Attribute Profile client can read a characteristic
descriptor by selected handle. The Characteristic Descriptor length is
unknown to the client and might be long with a value of 512 bytes. |
Gowtham Anandha Babu |
10 years ago |
1 file, +118, -0 |
| 6a34524d |
unit/test-gatt: Add TP/GAR/CL/BV-07-C test
Verify that a Generic Attribute Profile client can read a characteristic
descriptor by selected handle. The Characteristic Descriptor length is
unknown to the client and might be long. |
Gowtham Anandha Babu |
10 years ago |
1 file, +16, -0 |
| f1caa906 |
unit/test-gatt: Fix invalid handle test case
The main aim of TC TP/GAR/CL/BI-14-C is to check the handle validity.
So, the requested handle in the pdu should be invalid (0x0000). |
Gowtham Anandha Babu |
10 years ago |
1 file, +3, -3 |
| dac38f63 |
core/gatt-database: Rename not_data to notify |
Luiz Augusto von Dentz |
10 years ago |
1 file, +20, -20 |