OSDN Git Service
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.
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.
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.
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.
Marcel Holtmann [Thu, 18 Jun 2015 10:09:57 +0000 (03:09 -0700)]
doc: Update the details for mgmt version 1.9
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)
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
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
Marcel Holtmann [Mon, 15 Jun 2015 09:30:17 +0000 (11:30 +0200)]
Release 5.31
Marcel Holtmann [Mon, 15 Jun 2015 09:21:43 +0000 (11:21 +0200)]
build: Update library version
Marcel Holtmann [Mon, 15 Jun 2015 09:20:03 +0000 (11:20 +0200)]
lib: Update company identifiers
Szymon Janc [Fri, 12 Jun 2015 07:26:56 +0000 (09:26 +0200)]
android/handsfree: Fix invalid size of SCO_OP_GET_FD command
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.
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.'
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.
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.
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.
Johan Hedberg [Thu, 11 Jun 2015 10:14:38 +0000 (13:14 +0300)]
emulator: Add support for Read Encryption Key Size command
Johan Hedberg [Thu, 11 Jun 2015 10:14:22 +0000 (13:14 +0300)]
tools/mgmt-tester: Fix expected version for 2.0 controllers
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)
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.
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
Marcel Holtmann [Wed, 3 Jun 2015 07:36:59 +0000 (09:36 +0200)]
tools: Add support for ECC emulation to proxy utility
Johan Hedberg [Wed, 3 Jun 2015 03:20:18 +0000 (06:20 +0300)]
tools/btmgmt: Fix quit behavior if stop-find fails
Johan Hedberg [Tue, 2 Jun 2015 15:38:11 +0000 (22:38 +0700)]
monitor: Add full key type decoding for New Link Key events
Marcel Holtmann [Mon, 1 Jun 2015 19:07:54 +0000 (21:07 +0200)]
lib: Update company identifiers
Szymon Janc [Mon, 1 Jun 2015 12:54:12 +0000 (14:54 +0200)]
android/pts: Keep A2DP issue number in test's name line
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
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
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.
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.
Szymon Janc [Mon, 1 Jun 2015 09:27:05 +0000 (11:27 +0200)]
tools/l2test: Allow to send zero frames before delay
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.
Andrei Emeltchenko [Fri, 29 May 2015 10:04:19 +0000 (13:04 +0300)]
bnep: Fix using uninitialized variable
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
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.
Marcel Holtmann [Fri, 29 May 2015 14:24:45 +0000 (16:24 +0200)]
profiles/hog: Use no suspend support instead of the dummy FIFO
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.
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
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().
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.
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)
Marcel Holtmann [Sun, 24 May 2015 02:36:34 +0000 (04:36 +0200)]
monitor: Decode 3D broadcast message information
Marcel Holtmann [Sun, 24 May 2015 02:28:14 +0000 (04:28 +0200)]
doc: Add description for Start Limited Discovery command
Marcel Holtmann [Sat, 23 May 2015 22:14:21 +0000 (00:14 +0200)]
monitor: Add another Broadcom firmware version
Frederic Danis [Tue, 19 May 2015 14:20:30 +0000 (16:20 +0200)]
monitor: Add Broadcom BCM4324B3 chip name information
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().
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.
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.
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
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
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
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
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
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
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
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
Andrei Emeltchenko [Tue, 19 May 2015 07:49:57 +0000 (10:49 +0300)]
gatt: Fix memory leak in profile_add
Cleanup memory correctly.
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.
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.
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.
Johan Hedberg [Fri, 22 May 2015 11:41:56 +0000 (14:41 +0300)]
emulator: Fix passing correct EDiv & Rand values
Gowtham Anandha Babu [Tue, 19 May 2015 15:01:04 +0000 (20:31 +0530)]
unit/test-uuid: Use tester framework
Gowtham Anandha Babu [Tue, 19 May 2015 15:01:03 +0000 (20:31 +0530)]
unit/test-lib: Use tester framework
Gowtham Anandha Babu [Tue, 19 May 2015 15:01:02 +0000 (20:31 +0530)]
unit/test-queue: Use tester framework
Gowtham Anandha Babu [Tue, 19 May 2015 15:01:01 +0000 (20:31 +0530)]
unit/test-textfile: Use tester framework
Gowtham Anandha Babu [Tue, 19 May 2015 15:01:00 +0000 (20:31 +0530)]
unit/test-ringbuf: Use tester framework
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.
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.
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.
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.
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.
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.
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.
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.
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.
Johan Hedberg [Wed, 20 May 2015 08:11:40 +0000 (11:11 +0300)]
emulator: Reset LE scan & adv state upon HCI_Reset
Szymon Janc [Tue, 19 May 2015 18:47:04 +0000 (20:47 +0200)]
android/pts: Remove SPP tests not implemented in PTS
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
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
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
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
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
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.
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.
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
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
Marcel Holtmann [Tue, 19 May 2015 10:19:11 +0000 (12:19 +0200)]
tools: Provide HOME environment variable before calling qemu
Johan Hedberg [Tue, 19 May 2015 08:00:51 +0000 (11:00 +0300)]
emulator: Pretend to support host flow control command
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.
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.
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.
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.
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.
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>
...
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.
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.
Andrei Emeltchenko [Fri, 15 May 2015 13:46:22 +0000 (16:46 +0300)]
tester: Add HCI LE Rand command
Check status only
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.
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.