Szymon Janc
af2a377075
input: Update uhid_copy.h to version from Linux 3.14
2014-05-25 12:58:52 +03:00
Marcel Holtmann
9e624240fe
doc: Update test numbers for mgmt-tester
2014-05-24 09:59:20 -07:00
Marcel Holtmann
3103f22cd6
build: Add test-uhid binary to .gitignore list
2014-05-23 11:19:49 -07:00
Marcel Holtmann
8bfe0af390
doc: Add test-uhid test numbers to our coverage list
2014-05-23 11:18:50 -07:00
Eva Kolanska
0096a78818
android/pts: Update GATT tests results
2014-05-23 16:57:34 +02:00
Lukasz Rymanowski
e71b3028a2
android/gatt: Add debug logs useful for PTS testing
2014-05-23 15:58:35 +02:00
Luiz Augusto von Dentz
330a3ab42d
input/hog: Rework uHID code to use bt_uhid
2014-05-23 16:40:29 +03:00
Luiz Augusto von Dentz
1925241046
input/device: Fix warnings when disconnecting
...
Since the introdution of btd_profile there is a dedicated callback for
disconnecting profiles which should never be mixed with
device_add_disconnect_watch since they serve the same purpose.
2014-05-23 16:40:29 +03:00
Luiz Augusto von Dentz
e93eeb6cff
input/device: Rework uHID code to use bt_uhid
2014-05-23 16:40:29 +03:00
Luiz Augusto von Dentz
00d4b9d89f
unit/test-uhid: Add /uhid/event/feature test
2014-05-23 16:40:29 +03:00
Luiz Augusto von Dentz
8f18444f6f
unit/test-uhid: Add /uhid/event/output test
2014-05-23 16:40:29 +03:00
Luiz Augusto von Dentz
02bae107fc
shared/uhid: Add implemetation of bt_uhid_register/bt_uhid_unregister
2014-05-23 16:40:29 +03:00
Luiz Augusto von Dentz
66353cb5ee
unit/test-uhid: Add /uhid/command/input test
2014-05-23 16:40:29 +03:00
Luiz Augusto von Dentz
8dd8057204
unit/test-uhid: Add /uhid/command/feature_answer test
2014-05-23 16:40:29 +03:00
Luiz Augusto von Dentz
87779c5572
unit/test-uhid: Add /uhid/command/destroy test
2014-05-23 16:40:29 +03:00
Luiz Augusto von Dentz
6e241c877b
unit/test-uhid: Add /uhid/command/create test
2014-05-23 16:40:29 +03:00
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