Commit Graph

19190 Commits

Author SHA1 Message Date
Luiz Augusto von Dentz
632617bc86 shared/uhid: Add initial API 2014-05-23 16:40:29 +03:00
Luiz Augusto von Dentz
05da3d5cdf shared/queue: Make queue_find default do direct match for NULL callback 2014-05-23 16:40:29 +03:00
Luiz Augusto von Dentz
7cf7f97675 shared/queue: Fix queue_foreach not detecting queue has changed
This fixes queue_foreach crashing if callback calls queue_remove_all.
2014-05-23 16:40:29 +03:00
Luiz Augusto von Dentz
d03c4da20c unit/test-queue: Add /queue/foreach_remove_all test
This tests queue_remove_all from queue_foreach callback.
2014-05-23 16:40:29 +03:00
Luiz Augusto von Dentz
e57233b4f9 shared/queue: Fix queue_foreach not detecting queue has been destroyed
This fixes queue_foreach crashing if it callback call queue_destroy.
2014-05-23 16:40:29 +03:00
Luiz Augusto von Dentz
661d845b71 unit/test-queue: Add /queue/foreach_destroy test
This tests queue_destroy from queue_foreach callback.
2014-05-23 16:40:29 +03:00
Lukasz Rymanowski
ace7a094b7 doc: Update RSSI property description.
RSSI property applies to either inquiry or advertising packets and this
should be stated here especially that we plan to add connection RSSI
property.
2014-05-23 14:41:43 +03:00
Andrzej Kaczmarek
342269ddfb android/hal-audio: Decouple SBC codec from core HAL
Codec abstraction in hal-audio is now good enough to allow splitting
code into core and codec implementation easily so this patch moves
SBC codec code into separate file and provides interface required for
other codecs to be implemented.
2014-05-23 09:20:40 +02:00
Jakub Tyszkowski
6762d9a4d7 android/gatt: Send Exchange MTU request on connect
This adds sending exchange MTU request on connection.

This is needed to pass TC_GAC_CL_BV_01_C.
2014-05-22 16:48:43 +02:00
Lukasz Rymanowski
81720ee50f android/gatt: Use pending request for write req and prep write
This patch add missing pending request for write operations.
Now Android server application can send response to remote device
2014-05-22 16:25:20 +02:00
Lukasz Rymanowski
743f12ccf3 android/gatt: Fix minor style code issue 2014-05-22 16:25:20 +02:00
Lukasz Rymanowski
fa1747ef5b android/gatt: Improve handling pending read/write requests
This patch adds state and error to pending request. It is not easy to
follow the code and we make sure that any error code provided by Android
server application will be send out to remote device.
2014-05-22 16:25:20 +02:00
Marcin Kraglak
fb6b1a85de android/gatt: Use common framework for processing read_by_group_type request
Use function process_dev_pending_request to read values of attributes.
2014-05-22 16:25:20 +02:00
Jakub Tyszkowski
7dc00a0ec4 android/gatt: Check for connection state on connection search
This search was used with the assumption that connection is in
"connected" state. This could result in attrib pointer being
dereferenced while it's still NULL (pending connection).
2014-05-22 14:09:01 +02:00
Szymon Janc
898635a9d2 android/pts: Update GATT PTS TC_GAR_SR_BI_08_C test result 2014-05-22 14:03:49 +02:00
Marcin Kraglak
fc62b25e9e android/gatt: Don't process read_by_type request with invalied range
Return ATT_ECODE_INVALID_HANDLE if range is incorrect. It repairs
TC_GAR_SR_BI_08_C test case.
2014-05-22 14:01:48 +02:00
Marcin Kraglak
962e1ac24b android/gatt: Fix not sending confirmation for INDICATION
Send confirmation for ATT_OP_HANDLE_IND (opcode 0x1D). It is needed
for flow control.
2014-05-22 13:13:54 +02:00
Lukasz Rymanowski
387748cf8d android/gatt: Fix handling write request
This patch adds write request to Android framework and uses buffor on
the stack for the request event.
2014-05-22 13:13:54 +02:00
Lukasz Rymanowski
85e82427f0 android/bluetooth: Add bonded information to found device callback
If device is bonded then discoverable flag is not set. This cause that
gatt application will not get scan callback with advertising bonded
device.
2014-05-22 12:45:50 +02:00
Andrzej Kaczmarek
7c9d237105 android/gatt: Remove unnecessary const to non-const casts 2014-05-21 10:16:01 +03:00
Andrzej Kaczmarek
fd00c597a7 shared: Fix queue_find to accept const ptr as match data
This patch fixes queue_find definition to have const pointer as data to
be matched against. Match function already does have const pointers as
arguments. Also parameter name is updated to be 'match_data' since this
actually is not user_data, just data to be matched against.
2014-05-21 10:16:01 +03:00
Lukasz Rymanowski
9a9f6acc06 android/gatt: Fix handling write cmd
We should not response on write cmd. This patch fixed that.
2014-05-20 23:55:07 +02:00
Jakub Tyszkowski
fcb22276d9 android/gatt: Fix possible invalid read
Fix dereferencing attrib before checking if not null.
2014-05-20 22:31:46 +02:00
Sebastian Chlad
9fbe1bc021 android/pts: Re-run all GATT PTS tests 2014-05-20 21:02:32 +02:00
Sebastian Chlad
2b9aa9fd3a android/pts: Adjust PICS for GATT
As we do not support SDP record for GATT we shall disable
respective PICS (6/3). Moreover patch disables support for
Attribute Protocol over BR/EDR.
2014-05-20 21:02:32 +02:00
Andrzej Kaczmarek
fbf5f5819a tools/mgmt-tester: Add "Get Conn Info - Not Connected" 2014-05-20 21:55:15 +03:00
Andrzej Kaczmarek
a168191dce tools/mgmt-tester: Add "Get Conn Info - Success" 2014-05-20 21:55:15 +03:00
Andrzej Kaczmarek
f5b1a7289a emulator/btdev: Add support for Read TX Power command 2014-05-20 21:55:14 +03:00
Andrzej Kaczmarek
5d1d3dc192 emulator/btdev: Add support for Read RSSI command 2014-05-20 21:55:14 +03:00
Sebastian Chlad
9948b56018 android/pts: Run MPS PTS tests 2014-05-20 20:13:28 +02:00
Lukasz Rymanowski
8a2166b1a5 android/gatt: Use connect_confirm on incoming connection
This is in order to reuse connect_cb for incoming and outgoing
connections. Also it makes code cleaner.
2014-05-20 20:13:28 +02:00
Marcin Kraglak
06351304fa android/gatt: Don't response with error for NOTIFICATION and INDICATION
We shouldn't response for these commands, as they will be serviced
in client implementation.
2014-05-20 20:13:28 +02:00
Marcel Holtmann
261b1f6542 doc: Add crypto unit tests to test coverage details 2014-05-20 07:38:25 -07:00
Lukasz Rymanowski
a257810878 unit: Add test case for AES-CMAC-128
Test vectors taken from the NIST Special Publication 800-38B
(http://csrc.nist.gov/publications/PubsSPs.html)
2014-05-20 14:54:30 +03:00
Lukasz Rymanowski
50830f476a shared/crypto: Add support to sign data with AES-CMAC
This patch adds support to generate hash using AES-CMAC algorithm
2014-05-20 14:54:29 +03:00
Lukasz Rymanowski
810eba69ec shared/crypto: Add support for AES-CMAC-128
This patch extends bt_crypto with AF_ALG socket for cmac(aes) hash.
Socket is created on bt_crybto initialization.
2014-05-20 14:54:29 +03:00
Johan Hedberg
d33546d729 smp-tester: Update invalid request test to use correct response
Recent kernels will return the correct Invalid Parameters (0x0a)
response instead of the Unspecified Reason (0x08) response.
2014-05-20 09:21:57 +03:00
Marcel Holtmann
95f338a7fa Release 5.19 2014-05-19 12:11:13 -07:00
Szymon Janc
4f9577e675 core: Improve handling of unpaired event
Unpaired event is per bearer and and bluetoothd should unpair device
only on that bearer.
2014-05-19 20:40:31 +03:00
Marcel Holtmann
547ddef35c build: Update library version 2014-05-19 09:08:30 -07:00
Luiz Augusto von Dentz
8cf946adb0 doc: Update test coverage numbers 2014-05-19 16:20:56 +03:00
Luiz Augusto von Dentz
d5a247053d unit/test-avrcp: Add /TP/VLH/BI-02-C test
To verify the behavior of the TG receiving a SetAbsoluteVolume command
with the top level bit set.
2014-05-19 16:12:54 +03:00
Luiz Augusto von Dentz
d4a3119903 unit/test-avrcp: Add /TP/VLH/BI-01-C test
To verify the behavior of the TG receiving an invalid SetAbsoluteVolume
command.
2014-05-19 16:12:54 +03:00
Luiz Augusto von Dentz
cf52741577 unit/test-avrcp: Add /TP/VLH/BV-02-C test
To verify the behavior of the TG receiving a valid SetAbsoluteVolume
command.
2014-05-19 16:12:53 +03:00
Luiz Augusto von Dentz
b6bc216fd7 unit/test-avrcp: Add /TP/VLH/BV-01-C test
To verify the SetAbsoluteVolume command issued by the CT.
2014-05-19 16:12:53 +03:00
Luiz Augusto von Dentz
49e49b00dc android/avrcp-lib: Add support for SetAbsoluteVolume PDU 2014-05-19 16:12:47 +03:00
Andrzej Kaczmarek
86a7a090e4 tools/mgmt-tester: Fix "Pair Device - SSP Confirm Reject 1"
With changes introduced in kernel by 6fd6b915 we no longer require MITM
when being pairing initiator (i.e. we indicate it to remote but do not
force it when remote does not require it) thus kernel will auto-accept
pairing when remote also does not require MITM. As a result it's not
possible for tester to reject user confirmation since there's no
request from kernel.

This patch sets acceptor authentication requirements to include MITM
so we'll have user confirmation request and tester can reject it.
2014-05-19 14:14:21 +03:00
Andrzej Kaczmarek
1a4cb1a207 emulator/bthost: Add support to set auth_req for bthost
This patch makes possible to set Authentication_Requirements to be used
in io_capa_request_reply when replying for io_capa_request_evt.
2014-05-19 14:14:14 +03:00
Szymon Janc
889c3c03ad android/bluetooth: Simplify check if device type changed
This makes code easier to follow. Also LE address type is not lost
if dual mode device connected over BR/EDR.
2014-05-19 10:17:25 +02:00
Szymon Janc
00d7691055 android/bluetooth: Track if paired device is bonded
This is a preparation for correctly handling no bond pairing.

Currently paired but not bonded devices are left on list of bonded
devices in Framework until BT is restarted on device. This is due to
Android Framework is not allowing stack to unpair device by its own
(setting bond state bonded->no_bond is ignored).
2014-05-19 10:17:25 +02:00