OSDN Git Service

android-x86/external-bluetooth-bluez.git
9 years agocore/gatt: Report if char. value exists properly
Marcin Kraglak [Thu, 14 May 2015 11:09:21 +0000 (13:09 +0200)]
core/gatt: Report if char. value exists properly

Return correct value in characteristic_value_exists().

9 years agoandroid/hidhost: Fix connecting HOGP over BREDR
Mariusz Skamra [Wed, 20 May 2015 09:56:39 +0000 (11:56 +0200)]
android/hidhost: Fix connecting HOGP over BREDR

This patch fixes issue related to HID connection over BREDR.
To avoid HOG connection with dual mode device connected over
BREDR, bearer type is checked not the features of remote device.

9 years agoandroid/pts: Update SM test results
Mariusz Skamra [Wed, 20 May 2015 09:55:03 +0000 (11:55 +0200)]
android/pts: Update SM test results

PTS 6.1 and Android 5.1.

9 years agoandroid/pts: Update OPP test results
Mariusz Skamra [Wed, 20 May 2015 09:57:23 +0000 (11:57 +0200)]
android/pts: Update OPP test results

PTS 6.1 and Android 5.1

9 years agoandroid/pts: Update HOGP test results
Mariusz Skamra [Wed, 20 May 2015 13:21:43 +0000 (15:21 +0200)]
android/pts: Update HOGP test results

PTS 6.1 and Android 5.1

9 years agoandroid/pts: Update A2DP test results
Mariusz Skamra [Thu, 21 May 2015 11:29:10 +0000 (13:29 +0200)]
android/pts: Update A2DP test results

PTS 6.1 and Android 5.1

9 years agoandroid/pts: Update MPS test results
Mariusz Skamra [Fri, 22 May 2015 06:39:39 +0000 (08:39 +0200)]
android/pts: Update MPS test results

PTS 6.1 and Android 5.1

9 years agoandroid/pts: Update IOPT test results
Mariusz Skamra [Fri, 22 May 2015 06:36:30 +0000 (08:36 +0200)]
android/pts: Update IOPT test results

PTS 6.1 and Android 5.1

9 years agoandroid/pts: Update AVRCP test results
Mariusz Skamra [Thu, 21 May 2015 15:26:52 +0000 (17:26 +0200)]
android/pts: Update AVRCP test results

PTS 6.1 and Android 5.1

9 years agoandroid/pts: Update AVDTP test results
Mariusz Skamra [Fri, 22 May 2015 09:58:14 +0000 (11:58 +0200)]
android/pts: Update AVDTP test results

PTS 6.1 and Android 5.1

9 years agoandroid/pts: Update AVCTP test results
Mariusz Skamra [Thu, 21 May 2015 15:33:11 +0000 (17:33 +0200)]
android/pts: Update AVCTP test results

PTS 6.1 and Android 5.1

9 years agogatt: Fix memory leak in profile_add
Andrei Emeltchenko [Tue, 19 May 2015 07:49:57 +0000 (10:49 +0300)]
gatt: Fix memory leak in profile_add

Cleanup memory correctly.

9 years agobtdev: Indicate support for 4.2 encryption commands
Andrei Emeltchenko [Mon, 18 May 2015 09:41:37 +0000 (12:41 +0300)]
btdev: Indicate support for 4.2 encryption commands

Indicate btdev support for LE Generate DHKey and LE Read Local P-256
Public Key.

9 years agotester: Verify DHKey generation
Andrei Emeltchenko [Mon, 18 May 2015 09:41:36 +0000 (12:41 +0300)]
tester: Verify DHKey generation

Verify that HCI controller correctly generate Diffie-Hellman key.

9 years agotester: Refactor Read Local Public Key command
Andrei Emeltchenko [Mon, 18 May 2015 09:41:35 +0000 (12:41 +0300)]
tester: Refactor Read Local Public Key command

Save Local Public Key to calculate DHKey for later tests. Also verify
that Command Status and Meta Event are generated.

9 years agoemulator: Fix passing correct EDiv & Rand values
Johan Hedberg [Fri, 22 May 2015 11:41:56 +0000 (14:41 +0300)]
emulator: Fix passing correct EDiv & Rand values

9 years agounit/test-uuid: Use tester framework
Gowtham Anandha Babu [Tue, 19 May 2015 15:01:04 +0000 (20:31 +0530)]
unit/test-uuid: Use tester framework

9 years agounit/test-lib: Use tester framework
Gowtham Anandha Babu [Tue, 19 May 2015 15:01:03 +0000 (20:31 +0530)]
unit/test-lib: Use tester framework

9 years agounit/test-queue: Use tester framework
Gowtham Anandha Babu [Tue, 19 May 2015 15:01:02 +0000 (20:31 +0530)]
unit/test-queue: Use tester framework

9 years agounit/test-textfile: Use tester framework
Gowtham Anandha Babu [Tue, 19 May 2015 15:01:01 +0000 (20:31 +0530)]
unit/test-textfile: Use tester framework

9 years agounit/test-ringbuf: Use tester framework
Gowtham Anandha Babu [Tue, 19 May 2015 15:01:00 +0000 (20:31 +0530)]
unit/test-ringbuf: Use tester framework

9 years agotests/example-advertisement: Change type to peripheral
Luiz Augusto von Dentz [Fri, 22 May 2015 10:13:57 +0000 (13:13 +0300)]
tests/example-advertisement: Change type to peripheral

With broadcast type it won't be connectable which is much more convenient
when testing.

9 years agoshared/ad: Fix service data matching
Luiz Augusto von Dentz [Thu, 21 May 2015 09:48:30 +0000 (12:48 +0300)]
shared/ad: Fix service data matching

bt_uuid_cmp return 0 if it matches not a true.

9 years agoshared/ad: Do not lookup service data twice
Luiz Augusto von Dentz [Thu, 21 May 2015 09:44:01 +0000 (12:44 +0300)]
shared/ad: Do not lookup service data twice

This remove call to bt_ad_has_service_data inside bt_ad_add_service_data
since it already does the lookup for existing data before.

9 years agoFix name in AUTHORS
Marie Janssen [Thu, 14 May 2015 22:38:49 +0000 (15:38 -0700)]
Fix name in AUTHORS

Update Marie's name to be correct and add it to .mailmap.

9 years agoshared/ad: Replace data if already exists
Luiz Augusto von Dentz [Fri, 15 May 2015 13:26:29 +0000 (16:26 +0300)]
shared/ad: Replace data if already exists

If either manufacturer or service data already exist but the content
is different replace with the new data.

9 years agoshared/ad: Fix data matching
Luiz Augusto von Dentz [Fri, 15 May 2015 12:30:36 +0000 (15:30 +0300)]
shared/ad: Fix data matching

The user_data was never used so adding new data will always fail if one
already exists.

9 years agoemulator: Handle Host Number Of Completed Packets Command
Szymon Janc [Wed, 20 May 2015 17:10:45 +0000 (19:10 +0200)]
emulator: Handle Host Number Of Completed Packets Command

The Host_Number_Of_Completed_Packets command is a special command in
the sense that no event is normally generated after the command
has completed.

9 years agoemulator: Move Host Buffer Size Command handling block
Szymon Janc [Wed, 20 May 2015 17:10:44 +0000 (19:10 +0200)]
emulator: Move Host Buffer Size Command handling block

Commands codes in switch-case are kept in ascending order.

9 years agoemulator: Verify Set Controller To Host Flow Control Command
Szymon Janc [Wed, 20 May 2015 17:10:43 +0000 (19:10 +0200)]
emulator: Verify Set Controller To Host Flow Control Command

Return invalid parameters error if reserved value is used.

9 years agoemulator: Reset LE scan & adv state upon HCI_Reset
Johan Hedberg [Wed, 20 May 2015 08:11:40 +0000 (11:11 +0300)]
emulator: Reset LE scan & adv state upon HCI_Reset

9 years agoandroid/pts: Remove SPP tests not implemented in PTS
Szymon Janc [Tue, 19 May 2015 18:47:04 +0000 (20:47 +0200)]
android/pts: Remove SPP tests not implemented in PTS

9 years agoandroid/pts: Update SPP test results
Mariusz Skamra [Tue, 19 May 2015 14:51:56 +0000 (16:51 +0200)]
android/pts: Update SPP test results

PTS 6.1 and Android 5.1

9 years agoandroid/pts: Update MCAP test results
Mariusz Skamra [Tue, 19 May 2015 15:36:38 +0000 (17:36 +0200)]
android/pts: Update MCAP test results

PTS 6.1 and Android 5.1

9 years agoandroid/pts: Update DID test results
Mariusz Skamra [Mon, 11 May 2015 12:49:48 +0000 (14:49 +0200)]
android/pts: Update DID test results

PTS 6.1 and Android 5.1

9 years agoandroid/pts: Update GAP test results
Mariusz Skamra [Mon, 11 May 2015 12:49:46 +0000 (14:49 +0200)]
android/pts: Update GAP test results

PTS 6.1 and Android 5.1

9 years agoshared/att: Add ext_signed flag to be able to use external crypto
Mariusz Skamra [Mon, 11 May 2015 12:49:45 +0000 (14:49 +0200)]
shared/att: Add ext_signed flag to be able to use external crypto

Due to the issues with CSRK tests ext_signed flag has been added to
allow android/gatt handle signed write operations.

This patch fixes following tests:
GAP__TC_SEC_CSIGN_BV_02_C
GAP__TC_SEC_CSIGN_BI_01_C
GAP__TC_SEC_CSIGN_BI_02_C
GAP__TC_SEC_CSIGN_BI_03_C
GAP__TC_SEC_CSIGN_BI_04_C
SM__TC_SIGN_BV_03_C

9 years agoprofiles/network: Add support for handling extension hdr in ctrl msg
Grzegorz Kolodziejczyk [Thu, 14 May 2015 07:47:10 +0000 (09:47 +0200)]
profiles/network: Add support for handling extension hdr in ctrl msg

Support for extension headers is mandatory functionality. This patch
add support to it and leave responsibility for processing extension
header and sending setup success response to kernel.

This patch is necessary to pass PTS bnep test TC_CTRL_BV_19_C.

9 years agolib/bnep: Update bnep header with BNEPGETSUPPFEAT and setup response
Grzegorz Kolodziejczyk [Thu, 14 May 2015 07:47:09 +0000 (09:47 +0200)]
lib/bnep: Update bnep header with BNEPGETSUPPFEAT and setup response

This patch updates bnep header with get bnep supported features ioctl
xand bnep setup response flag.

9 years agoandroid/pts: Update HFP test results
Mariusz Skamra [Thu, 14 May 2015 17:00:04 +0000 (19:00 +0200)]
android/pts: Update HFP test results

PTS 6.1 and Android 5.1

9 years agoandroid/pts: Update PBAP test results
Mariusz Skamra [Tue, 19 May 2015 12:55:01 +0000 (14:55 +0200)]
android/pts: Update PBAP test results

PTS 6.1 and Android 5.1

9 years agotools: Provide HOME environment variable before calling qemu
Marcel Holtmann [Tue, 19 May 2015 10:19:11 +0000 (12:19 +0200)]
tools: Provide HOME environment variable before calling qemu

9 years agoemulator: Pretend to support host flow control command
Johan Hedberg [Tue, 19 May 2015 08:00:51 +0000 (11:00 +0300)]
emulator: Pretend to support host flow control command

9 years agotools: Add initial HCI User Channel tester
Szymon Janc [Tue, 28 Apr 2015 18:21:11 +0000 (20:21 +0200)]
tools: Add initial HCI User Channel tester

This adds basic tests only.

9 years agounit/test-gdbus-client: Don't run tests if setup fails
Luiz Augusto von Dentz [Mon, 18 May 2015 18:32:33 +0000 (21:32 +0300)]
unit/test-gdbus-client: Don't run tests if setup fails

This will make all gdbus tests be ignored if D-Bus is not available and
one cannot be created with dbus-run-session.

9 years agobuild: Check if dbus-run-session for unit tests
Luiz Augusto von Dentz [Tue, 5 May 2015 09:27:09 +0000 (12:27 +0300)]
build: Check if dbus-run-session for unit tests

This checks if dbus-run-session is available and then add it to
AM_TESTS_ENVIRONMENT so tests using D-Bus run in its own session.

9 years agoadapter: Fix memory leak
Andrei Emeltchenko [Mon, 18 May 2015 07:13:12 +0000 (10:13 +0300)]
adapter: Fix memory leak

In case of error with dbus stuff free allocated memory and set filter
to NULL.

9 years agotester: Test DHKey generation in controller
Andrei Emeltchenko [Fri, 15 May 2015 13:46:26 +0000 (16:46 +0300)]
tester: Test DHKey generation in controller

Test that appropriate command status event and LE Meta events are
generated.

9 years agobtdev: Add DHKey generation command to emulator
Andrei Emeltchenko [Fri, 15 May 2015 13:46:25 +0000 (16:46 +0300)]
btdev: Add DHKey generation command to emulator

Add LE Generate DHKey Command available in Bluetooth Spec 4.2.
Controller sends Command Status and LE Meta event LE Generate DHKey
Complete.
...
> HCI Event: Command Status (0x0f) plen 4
      LE Generate DHKey (0x08|0x0026) ncmd 1
        Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 34
      LE Generate DHKey Complete (0x09)
        Status: Success (0x00)
        Diffie-Hellman key:<key>
...

9 years agotester: Add test for LE Read Local PK
Andrei Emeltchenko [Fri, 15 May 2015 13:46:24 +0000 (16:46 +0300)]
tester: Add test for LE Read Local PK

Test that public/private key pair is generated.

9 years agobtdev: Add LE Read Local Public Key cmd to emulator
Andrei Emeltchenko [Fri, 15 May 2015 13:46:23 +0000 (16:46 +0300)]
btdev: Add LE Read Local Public Key cmd to emulator

Support LE Read Local P-256 Public Key Command introduced in Bluetooth
Spec 4.2. The Controller shall generate a new P-256 public/private key
pair upon receipt of this command so private key is saved to btdev.

9 years agotester: Add HCI LE Rand command
Andrei Emeltchenko [Fri, 15 May 2015 13:46:22 +0000 (16:46 +0300)]
tester: Add HCI LE Rand command

Check status only

9 years agotester: Add HCI LE Encrypt command test
Andrei Emeltchenko [Fri, 15 May 2015 13:46:21 +0000 (16:46 +0300)]
tester: Add HCI LE Encrypt command test

Use RFC 4493 "The AES-CMAC Algorithm" sample test vectors to test HCI
controller encryption.

9 years agobtdev: Refactor Le Rand using Linux crypto infrastructure
Andrei Emeltchenko [Fri, 15 May 2015 13:46:20 +0000 (16:46 +0300)]
btdev: Refactor Le Rand using Linux crypto infrastructure

Use standard Linux crypto infrastructure for emulating HCI LE Rand
command.

9 years agobtdev: Add LE Encrypt command support to emulator
Andrei Emeltchenko [Fri, 15 May 2015 13:46:19 +0000 (16:46 +0300)]
btdev: Add LE Encrypt command support to emulator

Add basic crypto support to btdev using Linux crypto infrastructure.

9 years agodoc/test-coverage: Update mgmt-tester test count
Szymon Janc [Thu, 14 May 2015 10:50:30 +0000 (12:50 +0200)]
doc/test-coverage: Update mgmt-tester test count

9 years agotools/mgmt-tester: Add Device Found test with invalid ADV_DATA
Szymon Janc [Thu, 14 May 2015 10:50:29 +0000 (12:50 +0200)]
tools/mgmt-tester: Add Device Found test with invalid ADV_DATA

This test verify if kernel correctly terminates EIR when invalid
ADV_DATA (length includes non-significant part) was received from
 remote device.

9 years agoemulator/bthost: Add support for setting custom ADV data
Szymon Janc [Thu, 14 May 2015 10:50:28 +0000 (12:50 +0200)]
emulator/bthost: Add support for setting custom ADV data

This allows to set any ADV data and not just flags.

9 years agogatt: Fix NULL pointer dereference
Andrei Emeltchenko [Fri, 15 May 2015 14:17:01 +0000 (17:17 +0300)]
gatt: Fix NULL pointer dereference

Safely return in case of error.

9 years agolib: Update company identifiers
Marcel Holtmann [Sat, 16 May 2015 23:22:51 +0000 (01:22 +0200)]
lib: Update company identifiers

9 years agobuild: Always build Android support for releases
Marcel Holtmann [Sat, 16 May 2015 23:08:37 +0000 (01:08 +0200)]
build: Always build Android support for releases

9 years agotools: Limit CPUID check to IA platforms
Marcel Holtmann [Sat, 16 May 2015 23:06:26 +0000 (01:06 +0200)]
tools: Limit CPUID check to IA platforms

9 years agotools: Handle the common profile & service ecode
Gowtham Anandha Babu [Tue, 14 Apr 2015 11:37:48 +0000 (17:07 +0530)]
tools: Handle the common profile & service ecode

Handles the common profile and service error codes sent over the
Attribute Protocol in btgatt-client and monitor.

9 years agocore/advertising: Fix not waiting Add Advertising response
Luiz Augusto von Dentz [Tue, 12 May 2015 20:06:46 +0000 (23:06 +0300)]
core/advertising: Fix not waiting Add Advertising response

When registering a new instance it must wait MGMT_OP_ADD_ADVERTISING
before replying to the client since the command can still fail.

9 years agoAUTHORS: mention Jaganath's contributions
Johan Hedberg [Fri, 15 May 2015 06:57:21 +0000 (09:57 +0300)]
AUTHORS: mention Jaganath's contributions

9 years agoandroid/pts: Update HDP pixits, pics, and test results for PTS 6.1
Grzegorz Kolodziejczyk [Fri, 8 May 2015 13:31:53 +0000 (15:31 +0200)]
android/pts: Update HDP pixits, pics, and test results for PTS 6.1

This patch updates test pixits, pics, and results for HDP profile
against android 5.1.

9 years agoandroid/pts: Update GAVDP pixits, pics and test results for PTS 6.1
Grzegorz Kolodziejczyk [Fri, 8 May 2015 13:31:52 +0000 (15:31 +0200)]
android/pts: Update GAVDP pixits, pics and test results for PTS 6.1

This patch updates test pixits, pics and results for GAVDP profile
against android 5.1.

9 years agoandroid/avdtptest: Return error code when exiting on failure
Szymon Janc [Wed, 13 May 2015 15:01:10 +0000 (17:01 +0200)]
android/avdtptest: Return error code when exiting on failure

Should improve scripting support.

9 years agoandroid/avdtptest: Fix NULL local stream endpoint queue
Mariusz Skamra [Tue, 12 May 2015 08:06:21 +0000 (10:06 +0200)]
android/avdtptest: Fix NULL local stream endpoint queue

This patch fixes missing queue_new()

9 years agoandroid/pts: Update BNEP PTS 6.1 results for android 5.1
Grzegorz Kolodziejczyk [Mon, 11 May 2015 15:17:34 +0000 (17:17 +0200)]
android/pts: Update BNEP PTS 6.1 results for android 5.1

This patch updates BNEP PTS 6.1 results for android 5.1 and kernel
4.1.0-rc1+.

9 years agoandroid/pts: Update BNEP PTS 6.0 results for android 5.0
Grzegorz Kolodziejczyk [Mon, 13 Apr 2015 13:14:47 +0000 (15:14 +0200)]
android/pts: Update BNEP PTS 6.0 results for android 5.0

This patch updates BNEP PTS 6.0 results for android 5.0 witch added
support for handling extension headers of BNEP control frames.

9 years agoandroid/pts: Update SDP test results
Mariusz Skamra [Wed, 13 May 2015 11:59:10 +0000 (13:59 +0200)]
android/pts: Update SDP test results

PTS 6.1 and Android 5.1

9 years agoandroid/pts: Update ScPP test results
Mariusz Skamra [Tue, 12 May 2015 11:37:56 +0000 (13:37 +0200)]
android/pts: Update ScPP test results

PTS 6.1 and Android 5.1

9 years agoandroid/pts: Update RFCOMM test results
Mariusz Skamra [Tue, 12 May 2015 09:34:22 +0000 (11:34 +0200)]
android/pts: Update RFCOMM test results

PTS 6.1 and Android 5.1

9 years agoandroid/pts: Update HSP test results
Mariusz Skamra [Wed, 13 May 2015 14:09:29 +0000 (16:09 +0200)]
android/pts: Update HSP test results

PTS 6.1 and Android 5.1

9 years agoandroid/pts: Update DIS test results
Mariusz Skamra [Tue, 12 May 2015 06:53:09 +0000 (08:53 +0200)]
android/pts: Update DIS test results

PTS 6.1 and Android 5.1

9 years agoandroid/pts: Update PAN PTS 6.1 results for android 5.1
Grzegorz Kolodziejczyk [Mon, 11 May 2015 15:17:33 +0000 (17:17 +0200)]
android/pts: Update PAN PTS 6.1 results for android 5.1

This patch updates test case list and results for PAN profile against
android 5.1.

9 years agoemulator: Fix ACL packet types from controller to host
Johan Hedberg [Wed, 13 May 2015 11:52:50 +0000 (14:52 +0300)]
emulator: Fix ACL packet types from controller to host

The ACL packet type 0x00 is only allowed from host to controller. When
the packet is received at the remote end and is sent from controller
to host the type needs to be converted to 0x02.

9 years agomonitor: Fix typo in link policy field names
Marcel Holtmann [Tue, 12 May 2015 16:05:59 +0000 (18:05 +0200)]
monitor: Fix typo in link policy field names

9 years agomonitor: Add decoding of BNEP Extension Header pkt
Gowtham Anandha Babu [Thu, 7 May 2015 10:22:19 +0000 (15:52 +0530)]
monitor: Add decoding of BNEP Extension Header pkt

      BNEP: General Ethernet (0x00|1)
         dst 00:00:00:00:00:00 src 00:00:00:00:00:00 [proto 0x0300]
           Ext Control(0x00|1) len 0x0f
             Filter MultAddr Set (0x05)
               Length: 0x000c
               03:00:00:20:00:00 - 03:00:00:20:00:00
           Ext Unknown(0x7f|0) len 0x0a
        ac ac ac ac ac ac ac ac ac 3c
        3b 3a 39 38 37 36 35 34 33 32 31 30 2f 2e 2d 2c

9 years agomonitor: Add decoding of common rsp msg pkt
Gowtham Anandha Babu [Thu, 7 May 2015 10:22:18 +0000 (15:52 +0530)]
monitor: Add decoding of common rsp msg pkt

      BNEP: Control (0x01|0)
         Setup Conn Rsp (0x02)
           Rsp msg: Operation Successful(0x0000)

      BNEP: Control (0x01|0)
         Filter NetType Rsp (0x04)
           Rsp msg: Operation Successful(0x0000)

      BNEP: Control (0x01|0)
         Filter MultAddr Rsp (0x06)
           Rsp msg: Operation Failed - Invalid Dst Srv UUID(0x0001)

9 years agomonitor: Add decoding of Filter MultAddr Set pkt
Gowtham Anandha Babu [Thu, 7 May 2015 10:22:17 +0000 (15:52 +0530)]
monitor: Add decoding of Filter MultAddr Set pkt

      BNEP: Control (0x01|0)
         Filter MultAddr Set (0x05)
           Length: 0x000c
           01:00:00:00:00:00 - ff:ff:ff:ff:ff:ff

9 years agomonitor: Add decoding of Filter NetType Set pkt
Gowtham Anandha Babu [Thu, 7 May 2015 10:22:16 +0000 (15:52 +0530)]
monitor: Add decoding of Filter NetType Set pkt

      BNEP: Control (0x01|0)
         Filter NetType Set (0x03)
           Length: 0x0004
           0x86dd - 0x86dd

9 years agomonitor: Add decoding of Setup Conn Req pkt
Gowtham Anandha Babu [Thu, 7 May 2015 10:22:15 +0000 (15:52 +0530)]
monitor: Add decoding of Setup Conn Req pkt

      BNEP: Control (0x01|0)
         Setup Conn Req (0x01)
           Size: 0x02
           Dst: 0x1116(NAP)
           Src: 0x1115(PANU)

9 years agomonitor: Add decoding of Cmd Not Understood pkt
Gowtham Anandha Babu [Thu, 7 May 2015 10:22:14 +0000 (15:52 +0530)]
monitor: Add decoding of Cmd Not Understood pkt

      BNEP: Control (0x01|0)
         Command Not Understood (0x00)
           Type: 0xff

9 years agoaudio/avrcp: Reduce the interval of position changed
Luiz Augusto von Dentz [Fri, 8 May 2015 09:07:26 +0000 (12:07 +0300)]
audio/avrcp: Reduce the interval of position changed

Using UINT32_MAX overflow in Android implementation as it multiple the
value by 1000 to get the interval in miliseconds which seem to truncate
the value causing it to send position changed too frequently flooding
the channel.

9 years agoandroid/gatt: Fix updating mtu for no registered app
Grzegorz Kolodziejczyk [Wed, 29 Apr 2015 09:15:53 +0000 (11:15 +0200)]
android/gatt: Fix updating mtu for no registered app

Gatt shouldn't notify about updating mtu if no apps are registered.
Without this patch, while connecting crash can occur.

9 years agoandroid/gatt: Send notify mtu change for BR/EDR success conn
Grzegorz Kolodziejczyk [Wed, 29 Apr 2015 09:15:52 +0000 (11:15 +0200)]
android/gatt: Send notify mtu change for BR/EDR success conn

This patch fixes sending mtu change notification for BR/EDR gatt
connections. For unsuccessful connection, notify mtu change shouldn't be
sent. This avoid sending bogus mtu values as notify mtu change.

9 years agoandroid/gatt: Remove redundant comment line
Grzegorz Kolodziejczyk [Wed, 29 Apr 2015 09:15:51 +0000 (11:15 +0200)]
android/gatt: Remove redundant comment line

This patch removes redundant line from multiple line comment.

9 years agoandroid/client: Fix missing new line character
Grzegorz Kolodziejczyk [Wed, 29 Apr 2015 09:15:50 +0000 (11:15 +0200)]
android/client: Fix missing new line character

New line character is missing for haltest_info. Without this logs are
distorted after receiving configure mtu callback log.

9 years agoandroid/pts: Update GATT PTS 6.1 TC_GPA_SR_BV_11_C result
Grzegorz Kolodziejczyk [Fri, 24 Apr 2015 17:06:56 +0000 (19:06 +0200)]
android/pts: Update GATT PTS 6.1 TC_GPA_SR_BV_11_C result

This patch updates GATT PTS 6.1 TC_GPA_SR_BV_11_C result by PTS errata
number and result.

9 years agoandroid/pts: Update GATT PTS 6.1 results for android 5.1
Grzegorz Kolodziejczyk [Fri, 24 Apr 2015 17:02:38 +0000 (19:02 +0200)]
android/pts: Update GATT PTS 6.1 results for android 5.1

This patch updates test case list, result, pics and major part of
client test case instructions for GATT profile against android 5.1.

9 years agoandroid/gatt: Fix autoconnect
Mariusz Skamra [Thu, 30 Apr 2015 11:26:18 +0000 (13:26 +0200)]
android/gatt: Fix autoconnect

This patch fixes autoconnect issue, however there is also race hazard in
Android Gatt framework. If app uses autoconnect while connecting,
direct flag is set to false. Then bt_gatt_add_autoconnect should be called
to add this app's id to autoconnect_apps queue.

9 years agopolicy: Fix not incrementing attempts
Luiz Augusto von Dentz [Wed, 6 May 2015 13:59:43 +0000 (16:59 +0300)]
policy: Fix not incrementing attempts

The number of attempts and intervals maybe different causing the attempts
to not be incremented properly.

9 years agoaudio/avrcp: Use position changed event to resync
Luiz Augusto von Dentz [Mon, 4 May 2015 10:18:20 +0000 (13:18 +0300)]
audio/avrcp: Use position changed event to resync

Some player do not change state when backward is pressed only once,
instead it will just start the track from the beginning.

To fix this subscribe to playback position changed event since it is
mandatory to be sent in the following conditions:

 - TG has reached the registered playback Interval time.
 - Changed PLAY STATUS.
 - Changed Current Track.
 - Reached end or beginning of track.

9 years agocore/device: Implement GattServices property
Arman Uguray [Tue, 5 May 2015 02:00:56 +0000 (19:00 -0700)]
core/device: Implement GattServices property

This patch implements the new GattServices property, which gets updated
when a device's associated bt_gatt_client becomes ready.

9 years agocore/gatt: Add btd_gatt_client_foreach_service
Arman Uguray [Tue, 5 May 2015 01:59:59 +0000 (18:59 -0700)]
core/gatt: Add btd_gatt_client_foreach_service

This patch introduces btd_gatt_client_foreach_service which allows
users to iterate through the object paths of currently exported
GattService1 objects.

9 years agodoc/device-api: Add GattServices
Arman Uguray [Mon, 4 May 2015 23:34:00 +0000 (16:34 -0700)]
doc/device-api: Add GattServices

This patch introduces the GattServices property that contains the object
paths of exported GattService1 objects. The purpose of this property is
to signal when all GATT services on a remote device have been
discovered.

9 years agotools/gatt-service: Fix clang compile error
Arman Uguray [Mon, 4 May 2015 23:28:14 +0000 (16:28 -0700)]
tools/gatt-service: Fix clang compile error

This patch fixes the following compile warning when bluez is compiled
using clang:

tools/gatt-service.c:77:19: error: duplicate 'const' declaration specifier [-Werror,-Wduplicate-decl-specifier]
static const char const *ias_alert_level_props[] = {
                  ^

9 years agotools/mgmt-tester: Remove unused set_adv_data_2
Arman Uguray [Mon, 4 May 2015 23:28:13 +0000 (16:28 -0700)]
tools/mgmt-tester: Remove unused set_adv_data_2

This patch removes the unused variable "set_adv_data_2" from
tools/mgmt-tester.c. The remaining set_adv_data_* variables have also
been renamed to keep the numbering sequential.