Commit Graph

22877 Commits

Author SHA1 Message Date
Marcel Holtmann
60f68ab8d5 build: Update library version 2015-06-15 11:21:43 +02:00
Marcel Holtmann
0d9053c1ac lib: Update company identifiers 2015-06-15 11:20:03 +02:00
Szymon Janc
64448e3cf8 android/handsfree: Fix invalid size of SCO_OP_GET_FD command 2015-06-12 09:26:56 +02:00
Luiz Augusto von Dentz
a92470e662 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.
2015-06-11 16:05:25 +03:00
Luiz Augusto von Dentz
67a4bda1cf 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.'
2015-06-11 16:05:24 +03:00
Luiz Augusto von Dentz
3eeab57293 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.
2015-06-11 16:05:24 +03:00
Luiz Augusto von Dentz
35f86fe5f0 shared/gatt-client: Consolidate service changed registration
This rework the code using service changed registration so it becomes
reusable by different part of code.
2015-06-11 16:05:24 +03:00
Luiz Augusto von Dentz
f49b0428c8 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.
2015-06-11 16:05:23 +03:00
Johan Hedberg
d7a375c0fc emulator: Add support for Read Encryption Key Size command 2015-06-11 13:14:38 +03:00
Johan Hedberg
16be38dc6f tools/mgmt-tester: Fix expected version for 2.0 controllers 2015-06-11 13:14:22 +03:00
Johan Hedberg
b2d2df7433 emulator: Fix 2.0 HCI version (it's 0x03 and not 0x04) 2015-06-11 13:14:06 +03:00
Andrei Emeltchenko
e11bfba10c shared/att: Fix boolean check in handle_notify()
ext_signed is boolean and shall be checked with logical op.
2015-06-05 17:25:46 +03:00
Szymon Janc
2d3522ece1 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
2015-06-05 15:10:34 +02:00
Marcel Holtmann
73e7afaf8d tools: Add support for ECC emulation to proxy utility 2015-06-03 09:36:59 +02:00
Johan Hedberg
c1811ad8e8 tools/btmgmt: Fix quit behavior if stop-find fails 2015-06-03 06:20:18 +03:00
Johan Hedberg
1ef26f22f8 monitor: Add full key type decoding for New Link Key events 2015-06-02 22:44:24 +07:00
Marcel Holtmann
4df7d9dd37 lib: Update company identifiers 2015-06-01 21:07:54 +02:00
Szymon Janc
2f539e81fd android/pts: Keep A2DP issue number in test's name line 2015-06-01 14:55:07 +02:00
Mariusz Skamra
9d624e5e62 android/pts: Update MAP test results
PTS 6.1 and Android 5.1
2015-06-01 14:44:05 +02:00
Mariusz Skamra
cea4a58af3 android/pts: Update L2CAP test results
PTS 6.1 and Android 5.1
2015-06-01 14:43:18 +02:00
Szymon Janc
bc03e778c5 tools/l2test: Add -g option
This option allow to sleep before disconnecting socket.
2015-06-01 14:40:52 +02:00
Szymon Janc
38ace2bd40 tools/l2test: Sort options alphabetically
l2test has many options and sorting them will make it easier to find
unused one.
2015-06-01 14:40:52 +02:00
Szymon Janc
9925dff456 tools/l2test: Allow to send zero frames before delay 2015-06-01 14:40:52 +02:00
Szymon Janc
e2342918b1 tools/l2test: Add -e option
This allows to specify initial value for sequence when sending frames.
2015-06-01 14:40:52 +02:00
Andrei Emeltchenko
8beffeca7f bnep: Fix using uninitialized variable 2015-06-01 12:57:34 +02:00
Szymon Janc
ef62429702 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
2015-06-01 11:33:35 +03:00
Szymon Janc
e1f8ee8106 monitor: Use black font for white background
Make sure that font is always visible on white background.
2015-06-01 11:33:35 +03:00
Marcel Holtmann
fb55b7a6ab profiles/hog: Use no suspend support instead of the dummy FIFO 2015-05-29 16:25:33 +02:00
Szymon Janc
6bba08f35f android/pts: Update PTS version
GAP and OPP are already tested with PTS 6.1 but version updates were
missing.
2015-05-26 19:07:03 +02:00
Mariusz Skamra
16f0dfa18d android/pts: Update HID test results
PTS 6.1 and Android 5.1
2015-05-26 18:55:57 +02:00
Chan-yeol Park
7fdbce3d72 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().
2015-05-25 16:06:14 +03:00
Chan-yeol Park
15295bc4bc 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.
2015-05-25 16:06:11 +03:00
Luiz Augusto von Dentz
4d3458a1a6 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)
2015-05-24 18:31:53 +03:00
Marcel Holtmann
dd776b21c3 monitor: Decode 3D broadcast message information 2015-05-24 04:36:34 +02:00
Marcel Holtmann
749b881bd1 doc: Add description for Start Limited Discovery command 2015-05-24 04:28:14 +02:00
Marcel Holtmann
a0727ecdda monitor: Add another Broadcom firmware version 2015-05-24 00:14:21 +02:00
Frederic Danis
b725195bd6 monitor: Add Broadcom BCM4324B3 chip name information 2015-05-23 16:16:31 +03:00
Marcin Kraglak
ac17a42fc5 core/gatt: Report if char. value exists properly
Return correct value in characteristic_value_exists().
2015-05-23 08:40:50 +03:00
Mariusz Skamra
24f7199b88 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.
2015-05-22 15:13:19 +02:00
Mariusz Skamra
22d154346b android/pts: Update SM test results
PTS 6.1 and Android 5.1.
2015-05-22 15:09:53 +02:00
Mariusz Skamra
bf6863c283 android/pts: Update OPP test results
PTS 6.1 and Android 5.1
2015-05-22 15:02:25 +02:00
Mariusz Skamra
6300623399 android/pts: Update HOGP test results
PTS 6.1 and Android 5.1
2015-05-22 15:02:25 +02:00
Mariusz Skamra
6d09159c9c android/pts: Update A2DP test results
PTS 6.1 and Android 5.1
2015-05-22 15:02:25 +02:00
Mariusz Skamra
1bc05646db android/pts: Update MPS test results
PTS 6.1 and Android 5.1
2015-05-22 15:01:42 +02:00
Mariusz Skamra
bfbdd68f0c android/pts: Update IOPT test results
PTS 6.1 and Android 5.1
2015-05-22 15:01:42 +02:00
Mariusz Skamra
48bf51417e android/pts: Update AVRCP test results
PTS 6.1 and Android 5.1
2015-05-22 15:01:41 +02:00
Mariusz Skamra
365dc576a3 android/pts: Update AVDTP test results
PTS 6.1 and Android 5.1
2015-05-22 15:01:41 +02:00
Mariusz Skamra
ea89541e99 android/pts: Update AVCTP test results
PTS 6.1 and Android 5.1
2015-05-22 15:01:41 +02:00
Andrei Emeltchenko
5be2aad529 gatt: Fix memory leak in profile_add
Cleanup memory correctly.
2015-05-22 15:17:51 +03:00
Andrei Emeltchenko
30965b6a8c btdev: Indicate support for 4.2 encryption commands
Indicate btdev support for LE Generate DHKey and LE Read Local P-256
Public Key.
2015-05-22 14:47:47 +03:00