OSDN Git Service

android-x86/external-bluetooth-bluez.git
8 years agounit/test-gatt: Fix /TP/GAR/CL/BV-07-C test
Luiz Augusto von Dentz [Thu, 18 Jun 2015 11:19:42 +0000 (14:19 +0300)]
unit/test-gatt: Fix /TP/GAR/CL/BV-07-C test

The response should be Read Blob Reponse 0x0d not 0x0b which is Read
Response.

8 years agounit/test-gatt: Fix /TP/GAR/CL/BV-04-C test
Luiz Augusto von Dentz [Thu, 18 Jun 2015 11:11:04 +0000 (14:11 +0300)]
unit/test-gatt: Fix /TP/GAR/CL/BV-04-C test

The response should be Read Blob Reponse 0x0d not 0x0b which is Read
Response.

8 years agomonitor: Fix L2CAP config option parsing
Johan Hedberg [Mon, 22 Jun 2015 17:04:27 +0000 (20:04 +0300)]
monitor: Fix L2CAP config option parsing

8 years agodoc: Mention the management version 1.10 API changes
Marcel Holtmann [Mon, 22 Jun 2015 22:21:41 +0000 (15:21 -0700)]
doc: Mention the management version 1.10 API changes

8 years agotools/mgmt-tester: test multi-adv
Florian Grandel [Thu, 18 Jun 2015 01:17:46 +0000 (03:17 +0200)]
tools/mgmt-tester: test multi-adv

This patch adds tests and required test infrastructure for multi
advertising tests.

8 years agotools/mgmt-tester: fix duplicate code
Florian Grandel [Thu, 18 Jun 2015 01:17:45 +0000 (03:17 +0200)]
tools/mgmt-tester: fix duplicate code

The definition of the test advertising instance was duplicated in
several places. This patch refactors the duplicate code into a
common subroutine.

8 years agotools/mgmt-tester: test le off
Florian Grandel [Thu, 18 Jun 2015 01:17:44 +0000 (03:17 +0200)]
tools/mgmt-tester: test le off

Test that advertising instances will be removed when disabling the le
capability of a brle bluetooth device.

8 years agotools/mgmt-tester: test advertising timeout
Florian Grandel [Thu, 18 Jun 2015 01:17:43 +0000 (03:17 +0200)]
tools/mgmt-tester: test advertising timeout

The change introduces an additional test that waits for an advertising
timeout to occur and checks whether the timed out advertising instance
is correctly being removed and - if it was the last instance -
advertising disabled.

8 years agotools/mgmt-tester: allow for event-only tests
Florian Grandel [Thu, 18 Jun 2015 01:17:42 +0000 (03:17 +0200)]
tools/mgmt-tester: allow for event-only tests

The generic test runner previously expected the test action to always be
a mgmt command. A "no-op" operation is introduced to support tests where
the test scenario is triggered by a timeout rather than a command.

8 years agotools/mgmt-tester: make test timeout configurable
Florian Grandel [Thu, 18 Jun 2015 01:17:41 +0000 (03:17 +0200)]
tools/mgmt-tester: make test timeout configurable

Currently tests have a hard coded timeout of two seconds. To prepare for
multi-advertising tests we need to be able to extend that timeout, so
that we can test whether instances are switching and expiring as
expected.

This patch therefore introduces a "full" version of the
test_bredrle() macro called test_bredrle_full() that takes an additional
timout parameter.

8 years agotools/mgmt-tester: test adv inst override
Florian Grandel [Thu, 18 Jun 2015 01:17:40 +0000 (03:17 +0200)]
tools/mgmt-tester: test adv inst override

This test covers a use case that had not been tested before: When an
advertising instance has already been added and is then added again with
different advertising data, the new advertising data should be
advertised.

8 years agotools/mgmt-tester: keep instances on power cycle
Florian Grandel [Thu, 18 Jun 2015 01:17:39 +0000 (03:17 +0200)]
tools/mgmt-tester: keep instances on power cycle

Tests that instances that do not have a timeout will survive a power
cycle.

8 years agotools/mgmt-tester: increase max adv inst
Florian Grandel [Thu, 18 Jun 2015 01:17:38 +0000 (03:17 +0200)]
tools/mgmt-tester: increase max adv inst

The kernel now allows for up to five concurrent advertising instances.
This patch adapts the tests to the new setting.

8 years agotools/mgmt-tester: rename add adv tests
Florian Grandel [Thu, 18 Jun 2015 01:17:37 +0000 (03:17 +0200)]
tools/mgmt-tester: rename add adv tests

The add advertisement tests were named a bit inconsistently and the test
intent was not always clear from the naming of the test. This has been
improved by introducing a somewhat more consistent naming scheme and
adding additional hints wrt the test intent.

8 years agotools/mgmt-tester: comment add adv test setup
Florian Grandel [Thu, 18 Jun 2015 01:17:36 +0000 (03:17 +0200)]
tools/mgmt-tester: comment add adv test setup

The add advertising test setup data was just a number of arrays with
undocumented hex data. This sometimes made it difficult to understand
the test intent.

Comments have been added to the add advertising mgmt and hci parameter
data arrays to make them more readable and better document the test
intent.

8 years agotools/mgmt-tester: expect 0 rp when removing all adv inst
Florian Grandel [Thu, 18 Jun 2015 01:17:35 +0000 (03:17 +0200)]
tools/mgmt-tester: expect 0 rp when removing all adv inst

The kernel would previously return a hard coded instance value of 0x01
even when removing multiple advertising instances. The correct behavior,
though, would be to return zero when multiple instances have been
removed. This corresponds to the semantics of the mgmt API call made in
the first place.

A fix for this problem has been introduced in the kernel. Now the
corresponding test is updated to reflect that logic.

8 years agotools/mgmt-tester: error message when unexp params
Florian Grandel [Thu, 18 Jun 2015 01:17:34 +0000 (03:17 +0200)]
tools/mgmt-tester: error message when unexp params

The tester already issues debug messages for unexpected HCI commands but
not for unexpected mgmt command return values. To facilitate test
debugging this patch adds a debug message for unexpected mgmt command
return values, too.

8 years agotools/btmgmt: make inst duration configurable
Florian Grandel [Thu, 18 Jun 2015 01:17:33 +0000 (03:17 +0200)]
tools/btmgmt: make inst duration configurable

Now that the kernel actually does respect the instance's duration
parameter it should be accessible via btmgmt. An additional parameter
for the add-adv command is therefore being introduced.

8 years agodoc/mgmt-api: fix typos
Florian Grandel [Thu, 18 Jun 2015 01:17:32 +0000 (03:17 +0200)]
doc/mgmt-api: fix typos

This patch fixes a few minor typos and grammar errors in the mgmt api
spec.

8 years agodoc/mgmt-api: multi-adv implementation details
Florian Grandel [Thu, 18 Jun 2015 01:17:31 +0000 (03:17 +0200)]
doc/mgmt-api: multi-adv implementation details

A few additional decisions have been made while implementing the
multi-advertising feature where the mgmt api spec was leaving room for
interpretation. These changes are being documented in this patch.

8 years agodoc: Update the details for mgmt version 1.9
Marcel Holtmann [Thu, 18 Jun 2015 10:09:57 +0000 (03:09 -0700)]
doc: Update the details for mgmt version 1.9

8 years agobccmd - add ability to read ADC
Simon Wood [Wed, 17 Jun 2015 18:12:41 +0000 (12:12 -0600)]
bccmd - add ability to read ADC

Some BlueCore devices are equipped with an 'Analogue In' pin which is
internally connected to a MUX and ADC. This patch adds the ability to
control the MUX and read the ADC.

The ADC is also connected internal to a temp sensor, which can also be
read via this method.

The (only) MUX values expected to be used are:
1  Internal 1V25 reference
16 BlueCore01b pin Test_A; BlueCore2-External pin AIO0
17 BlueCore01b pin Test_B; BlueCore2-External pin AIO1
36 Chip’s internal temperature (change) sensor. BlueCore2-ROM and later only.

The MUX can also select other (undocumented) test points.

Example usage
--
$ ./bccmd -t HCI -d hci1 adc 17
ADC value from Mux 0x11 : 0x0054 (valid)
$ ./bccmd -t HCI -d hci1 adc 1
ADC value from Mux 0x01 : 0x00b2 (valid)

8 years agotools/obexctl: Add support for pull Vobjects
Gowtham Anandha Babu [Mon, 15 Jun 2015 12:12:45 +0000 (17:42 +0530)]
tools/obexctl: Add support for pull Vobjects

PullBusinessCard from remote push server.

[obex]# connect 00:1B:DC:07:33:4E 00001105-0000-1000-8000-00805f9b34fb
Attempting to connect to 00:1B:DC:07:33:4E
[NEW] Session /org/bluez/obex/client/session0 [default]
[NEW] ObjectPush /org/bluez/obex/client/session0
Connection successful
[00:1B:DC:07:33:4E]# pull /home/vcard.vcf
Attempting to pull /home/vcard.vcf from /org/bluez/obex/client/session0
[NEW] Transfer /org/bluez/obex/client/session0/transfer0
Transfer /org/bluez/obex/client/session0/transfer0
        Status: queued
        Size: 0
        Filename: /home/vcard.vcf
        Session: /org/bluez/obex/client/session0
[CHG] Transfer /org/bluez/obex/client/session0/transfer0 Status: complete
[DEL] Transfer /org/bluez/obex/client/session0/transfer0
[DEL] Session /org/bluez/obex/client/session0 [default]
[DEL] ObjectPush /org/bluez/obex/client/session0

8 years agoshared/gatt-client: Fix the "Find Information req" error
Nagaraj D R [Fri, 12 Jun 2015 06:39:39 +0000 (12:09 +0530)]
shared/gatt-client: Fix the "Find Information req" error

In a particular case where remote device has the characteristic
declaration b/w 0XFFFE and 0XFFFF. i.e characteristic handle at
0XFFFE and value_handle at 0XFFFF, which implies there is no
characteristic descriptors associated.

Since present design search the descriptors b/w the characteristic_value
declaration and characteristic end handle, In the above stated case,
descriptor search handle will be initialized to 0X0000 (i.e by
incrementing characteristic value handle (0xffff) ). 0X0000 handle
is reserved handle, and also intention of searching descriptors will
not be achieved.

 Consequence:  Below request will be sent,
        ATT: Find Information req (0x04)
        start 0x0000, end 0xffff

        and below will be the proper response from the remote device
        ATT: Error (0x01)
        Error: Invalid handle (1)
        Find Information req (0x04) on handle 0x0000

8 years agoRelease 5.31
Marcel Holtmann [Mon, 15 Jun 2015 09:30:17 +0000 (11:30 +0200)]
Release 5.31

8 years agobuild: Update library version
Marcel Holtmann [Mon, 15 Jun 2015 09:21:43 +0000 (11:21 +0200)]
build: Update library version

8 years agolib: Update company identifiers
Marcel Holtmann [Mon, 15 Jun 2015 09:20:03 +0000 (11:20 +0200)]
lib: Update company identifiers

9 years agoandroid/handsfree: Fix invalid size of SCO_OP_GET_FD command
Szymon Janc [Fri, 12 Jun 2015 07:26:56 +0000 (09:26 +0200)]
android/handsfree: Fix invalid size of SCO_OP_GET_FD command

9 years agoshared/gatt-db: Fix allocating characteristic at 0xffff
Luiz Augusto von Dentz [Thu, 11 Jun 2015 13:01:58 +0000 (16:01 +0300)]
shared/gatt-db: Fix allocating characteristic at 0xffff

All caracteristics shall contain a value in the next handle so having
a declaration on 0xffff is invalid since there won't be any space for
the value descriptor.

9 years agoshared/gatt-client: Don't discovery secondaries if there is no primary
Luiz Augusto von Dentz [Mon, 8 Jun 2015 13:30:06 +0000 (16:30 +0300)]
shared/gatt-client: Don't discovery secondaries if there is no primary

The spec state that a secondary needs to referenced by at least one
primary, Version 4.2 [Vol 1, Part A] page 101:

  'A secondary service is a service that provides auxiliary
  functionality of a device and is referenced from at least one
  primary service on the device.'

9 years agoshared/gatt-client: Simplify ready flag
Luiz Augusto von Dentz [Mon, 8 Jun 2015 09:27:03 +0000 (12:27 +0300)]
shared/gatt-client: Simplify ready flag

This makes notify_client_ready takes care of setting ready flag so the
caller code don't have to set it before calling notify_client_ready.

9 years agoshared/gatt-client: Consolidate service changed registration
Luiz Augusto von Dentz [Mon, 8 Jun 2015 07:44:46 +0000 (10:44 +0300)]
shared/gatt-client: Consolidate service changed registration

This rework the code using service changed registration so it becomes
reusable by different part of code.

9 years agoshared/gatt-client: Speed up discovery
Luiz Augusto von Dentz [Fri, 5 Jun 2015 13:36:27 +0000 (16:36 +0300)]
shared/gatt-client: Speed up discovery

This tune the discovery to take advantage of the cached database whenever
possible, so instead of clearing the whole db if the device is not paired
the code now make the remote services active once they are discovered
and with that bt_gatt_client can then skip discovering characteristics
and descriptors of services that have not changed since last connection
which improves the reconnecting speed for any device regardless if the
device was paired or not.

9 years agoemulator: Add support for Read Encryption Key Size command
Johan Hedberg [Thu, 11 Jun 2015 10:14:38 +0000 (13:14 +0300)]
emulator: Add support for Read Encryption Key Size command

9 years agotools/mgmt-tester: Fix expected version for 2.0 controllers
Johan Hedberg [Thu, 11 Jun 2015 10:14:22 +0000 (13:14 +0300)]
tools/mgmt-tester: Fix expected version for 2.0 controllers

9 years agoemulator: Fix 2.0 HCI version (it's 0x03 and not 0x04)
Johan Hedberg [Thu, 11 Jun 2015 10:14:06 +0000 (13:14 +0300)]
emulator: Fix 2.0 HCI version (it's 0x03 and not 0x04)

9 years agoshared/att: Fix boolean check in handle_notify()
Andrei Emeltchenko [Fri, 29 May 2015 08:53:26 +0000 (11:53 +0300)]
shared/att: Fix boolean check in handle_notify()

ext_signed is boolean and shall be checked with logical op.

9 years agoandroid: Fix btproxy build
Szymon Janc [Fri, 5 Jun 2015 13:09:16 +0000 (15:09 +0200)]
android: Fix btproxy build

target Executable: btproxy (out/target/product/mako/obj/EXECUTABLES/
    btproxy_intermediates/LINKED/btproxy)
external/bluetooth/bluez/tools/btproxy.c:197: error: undefined
    reference to 'ecc_make_key'
external/bluetooth/bluez/tools/btproxy.c:215: error: undefined reference to
    'ecdh_shared_secret'
collect2: error: ld returned 1 exit status

9 years agotools: Add support for ECC emulation to proxy utility
Marcel Holtmann [Wed, 3 Jun 2015 07:36:59 +0000 (09:36 +0200)]
tools: Add support for ECC emulation to proxy utility

9 years agotools/btmgmt: Fix quit behavior if stop-find fails
Johan Hedberg [Wed, 3 Jun 2015 03:20:18 +0000 (06:20 +0300)]
tools/btmgmt: Fix quit behavior if stop-find fails

9 years agomonitor: Add full key type decoding for New Link Key events
Johan Hedberg [Tue, 2 Jun 2015 15:38:11 +0000 (22:38 +0700)]
monitor: Add full key type decoding for New Link Key events

9 years agolib: Update company identifiers
Marcel Holtmann [Mon, 1 Jun 2015 19:07:54 +0000 (21:07 +0200)]
lib: Update company identifiers

9 years agoandroid/pts: Keep A2DP issue number in test's name line
Szymon Janc [Mon, 1 Jun 2015 12:54:12 +0000 (14:54 +0200)]
android/pts: Keep A2DP issue number in test's name line

9 years agoandroid/pts: Update MAP test results
Mariusz Skamra [Mon, 1 Jun 2015 10:52:50 +0000 (12:52 +0200)]
android/pts: Update MAP test results

PTS 6.1 and Android 5.1

9 years agoandroid/pts: Update L2CAP test results
Mariusz Skamra [Mon, 1 Jun 2015 10:12:02 +0000 (12:12 +0200)]
android/pts: Update L2CAP test results

PTS 6.1 and Android 5.1

9 years agotools/l2test: Add -g option
Szymon Janc [Mon, 1 Jun 2015 09:42:22 +0000 (11:42 +0200)]
tools/l2test: Add -g option

This option allow to sleep before disconnecting socket.

9 years agotools/l2test: Sort options alphabetically
Szymon Janc [Mon, 1 Jun 2015 09:27:06 +0000 (11:27 +0200)]
tools/l2test: Sort options alphabetically

l2test has many options and sorting them will make it easier to find
unused one.

9 years agotools/l2test: Allow to send zero frames before delay
Szymon Janc [Mon, 1 Jun 2015 09:27:05 +0000 (11:27 +0200)]
tools/l2test: Allow to send zero frames before delay

9 years agotools/l2test: Add -e option
Szymon Janc [Mon, 1 Jun 2015 09:27:04 +0000 (11:27 +0200)]
tools/l2test: Add -e option

This allows to specify initial value for sequence when sending frames.

9 years agobnep: Fix using uninitialized variable
Andrei Emeltchenko [Fri, 29 May 2015 10:04:19 +0000 (13:04 +0300)]
bnep: Fix using uninitialized variable

9 years agomonitor: Decode ATT Signed Write Command
Szymon Janc [Thu, 28 May 2015 22:13:44 +0000 (00:13 +0200)]
monitor: Decode ATT Signed Write Command

Signed Write Command data is as follow:
Attribute Handle (2 octets)
Data (0 or more octets)
Signature (12 octets).

> ACL Data RX: Handle 64 flags 0x02 dlen 20
      ATT: Signed Write Command (0xd2) len 15
        Handle: 0x001f
          Data: 00
          Signature: 00000000df559de6549e1757

9 years agomonitor: Use black font for white background
Szymon Janc [Thu, 28 May 2015 22:13:43 +0000 (00:13 +0200)]
monitor: Use black font for white background

Make sure that font is always visible on white background.

9 years agoprofiles/hog: Use no suspend support instead of the dummy FIFO
Marcel Holtmann [Fri, 29 May 2015 14:24:45 +0000 (16:24 +0200)]
profiles/hog: Use no suspend support instead of the dummy FIFO

9 years agoandroid/pts: Update PTS version
Szymon Janc [Tue, 26 May 2015 17:05:39 +0000 (19:05 +0200)]
android/pts: Update PTS version

GAP and OPP are already tested with PTS 6.1 but version updates were
missing.

9 years agoandroid/pts: Update HID test results
Mariusz Skamra [Fri, 22 May 2015 13:31:47 +0000 (15:31 +0200)]
android/pts: Update HID test results

PTS 6.1 and Android 5.1

9 years agoaudio/a2dp: Remove useless check_vendor_codec()
Chan-yeol Park [Wed, 20 May 2015 12:09:48 +0000 (21:09 +0900)]
audio/a2dp: Remove useless check_vendor_codec()

This function could be removed because A2DP vendor codec match is
already verified in avdtp_find_remote_sep().

9 years agoaudio/avdtp: Add a2dp vendor codec match callback
Chan-yeol Park [Wed, 20 May 2015 12:09:47 +0000 (21:09 +0900)]
audio/avdtp: Add a2dp vendor codec match callback

When matching remote SEP to local SEP avdtp does not compare vendor
codecs properly, i.e. neither vendor ID not codec ID are checked,
which may cause wrong endpoint to be selected in case there are more
that one endpoints using vendor codec on remote.

This patch fixes it by adding a2dp codec match call back.

9 years agomonitor: Improve decoding of ATT Read by Group Type Respose
Luiz Augusto von Dentz [Sun, 24 May 2015 13:15:11 +0000 (16:15 +0300)]
monitor: Improve decoding of ATT Read by Group Type Respose

The group data is as follow:

Attribute Handle (2 octets) End Group Handle (2 octets) Attribute Value
(Length - 4) octets

But since only primary and secondary can be used in ATT Read by Group
Type Request the value is garanteed to be a UUID:

< ACL Data TX: Handle 3585 flags 0x00 dlen 24
      ATT: Read By Group Type Response (0x11) len 19
        Attribute data length: 6
        Attribute group list: 3 entries
        Handle range: 0x0001-0x0005
        UUID: Generic Access Profile (0x1800)
        Handle range: 0x0006-0x000d
        UUID: Heart Rate (0x180d)
        Handle range: 0x000e-0x0011
        UUID: Battery Service (0x180f)

9 years agomonitor: Decode 3D broadcast message information
Marcel Holtmann [Sun, 24 May 2015 02:36:34 +0000 (04:36 +0200)]
monitor: Decode 3D broadcast message information

9 years agodoc: Add description for Start Limited Discovery command
Marcel Holtmann [Sun, 24 May 2015 02:28:14 +0000 (04:28 +0200)]
doc: Add description for Start Limited Discovery command

9 years agomonitor: Add another Broadcom firmware version
Marcel Holtmann [Sat, 23 May 2015 22:14:21 +0000 (00:14 +0200)]
monitor: Add another Broadcom firmware version

9 years agomonitor: Add Broadcom BCM4324B3 chip name information
Frederic Danis [Tue, 19 May 2015 14:20:30 +0000 (16:20 +0200)]
monitor: Add Broadcom BCM4324B3 chip name information

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.