Commit Graph

19564 Commits

Author SHA1 Message Date
Andrei Emeltchenko
95c99bccee android/client: Fix using unvalidated index to access array
Fixes static analyzers warnings.
2014-06-30 15:14:09 +02:00
Andrei Emeltchenko
ac404e671c android/health: Add channel_notify for incoming connections
For other then ECHO mdep send send_channel_state_notify with fd.
2014-06-30 15:14:08 +02:00
Andrei Emeltchenko
147049dac9 android/health: Set L2CAP mode for MCAP channels
Check configuration and set L2CAP mode. Enables several PTS test cases.
2014-06-30 15:13:57 +02:00
Johan Hedberg
d0b936a26c core: Fix attio notification for server connections
We need to ensure that all attio instances get properly notified also
for ATT connections received through the server socket. This patch moves
the dev->attios dispatching from a client-specifie att_succcess_cb to
the device_attach_attrib function that's shared for both client and
server roles.
2014-06-30 15:54:52 +03:00
Andrei Emeltchenko
b3372a4c48 android/health: Add handling incoming connection
Add support for normal data channel creation. Also add search helper for
searching apps for suitable mdepid.
2014-06-30 11:33:41 +02:00
Marcel Holtmann
14893bb954 core: Reset adapters->connect_le when kernel_bg_scan is active 2014-06-30 11:06:50 +02:00
Szymon Janc
a825bbc702 android/pts: Update L2CAP tests results 2014-06-30 11:00:31 +02:00
Marcel Holtmann
88f2b4202e doc: Add notes for management version 1.7 features 2014-06-29 23:42:01 +02:00
Marcel Holtmann
96d3a5b344 doc: Fix event opcode for New Connection Parameter event 2014-06-29 23:25:38 +02:00
Marcel Holtmann
f4db1bca77 doc: Add documentation for Device Added and Device Removed events 2014-06-29 23:24:42 +02:00
Marcel Holtmann
8240f36f3b monitor: Decode Device Added and Device Removed control events 2014-06-29 22:33:35 +02:00
Marcel Holtmann
36d58cdd1b lib: Add mgmt event for Device Added and Device Removed 2014-06-29 22:32:59 +02:00
Marcel Holtmann
a4c629ce10 doc: Fix note about command complete for success and failure 2014-06-29 20:29:34 +02:00
Marcel Holtmann
65ff7dcdb5 doc: Return address for Add Device and Remove Device commands 2014-06-29 19:40:58 +02:00
Marcel Holtmann
8048163458 core: Use kernel background scanning if available 2014-06-29 19:13:12 +02:00
Marcel Holtmann
9da8dbc9ff core: Read supported mgmt commands and set kernel_bg_scan variable 2014-06-29 19:12:27 +02:00
Szymon Janc
a089fdbb16 android/pts: Update HOGP test coverage
Disable not supported optional features.
2014-06-29 15:46:51 +02:00
Marcel Holtmann
5535c4e87d tools: Add support for Add Device and Remove Device mgmt commands 2014-06-29 15:28:31 +02:00
Marcel Holtmann
b04e8f186b lib: Add defines for Add Device and Remove Device mgmt commands 2014-06-29 15:27:38 +02:00
Szymon Janc
3802a7d350 android/pts: Update HOGP tests results 2014-06-29 14:52:36 +02:00
Luiz Augusto von Dentz
2b3210a9bf android/hog: Only discover if External Report has a Report UUID
Some devices, including PTS, may include characteristics other than
Report as External Report.
2014-06-29 14:52:36 +02:00
Luiz Augusto von Dentz
b3163f1161 android/hog: Enable notifications only for Input Reports
HoG spec has the following statement:

  "The Report Host shall enable notifications, via the Client
   Characteristic Configuration descriptor, of the Report characteristic
   for all instances of the Report characteristic where the Report Type
   as defined in the Report Reference characteristic descriptor
   refers to an Input Report."
2014-06-29 14:52:36 +02:00
Luiz Augusto von Dentz
47a337152d android/hog: Fix using the same callback for different descriptors
External Report and Report descriptors take different user_data so have
different callbacks to avoid possible crash if a discover happen to find
the descriptors of unexpect type.
2014-06-29 14:52:36 +02:00
Luiz Augusto von Dentz
831b17ae4d android/hog: Add support for multiple instaces
This is necessary to pass PTS tests which does include 2 instances.
2014-06-29 14:52:36 +02:00
Luiz Augusto von Dentz
02f9e6e88b android/hog: Add support for Battery Service
If primary is not provided meaning primary should be auto discovered it
probably means other primary services such as Battery Service are not
being handled either so just handle BaS as well in such case.
2014-06-29 14:52:36 +02:00
Luiz Augusto von Dentz
85eb28a8d3 lib/uuid: Add define for Battery UUID 2014-06-29 14:52:36 +02:00
Luiz Augusto von Dentz
2467040f42 android: Add initial implementation of Battery Service client 2014-06-29 14:52:36 +02:00
Luiz Augusto von Dentz
3f3e1c02ed android/hog: Add support for reading device details via DIS
If primary is not provided meaning primary should be auto discovered it
probably means other primary services such as Device Information
Service are not being handled either so just handle DIS as well in such
case.
2014-06-29 14:52:36 +02:00
Luiz Augusto von Dentz
6e9e2b2aa5 android/dis: Only cache the handle not all the characteristics 2014-06-29 14:52:36 +02:00
Luiz Augusto von Dentz
6df02947eb android/dis: Add bt_dis_set_notification
Function bt_dis_set_notification can be used to set notify callback.
2014-06-29 14:52:36 +02:00
Luiz Augusto von Dentz
2fe26ad5a0 android/dis: Strip dependencies from deviceinfo plugin
This strip any dependecy from deviceinfo plugin so the code can be reused
by HoG implementation.
2014-06-29 14:52:36 +02:00
Luiz Augusto von Dentz
46247817b7 android/dis: Add copy to Device Info implementation 2014-06-29 14:52:36 +02:00
Marcel Holtmann
6dac212ae3 doc: Update possible error codes for Add Device and Remove Device 2014-06-29 14:32:47 +02:00
Szymon Janc
fadaf6540e android/pts: Update L2CAP settings and tests results 2014-06-29 14:25:30 +02:00
Andrei Emeltchenko
9c9010a3f5 android/pts: Update HDP test results
Mark ECHO server tests passed.
2014-06-29 14:17:19 +02:00
Andrei Emeltchenko
31cee75db5 android/health: Improve debug 2014-06-29 14:17:19 +02:00
Andrei Emeltchenko
82a4700920 android/health: Add handling for ECHO service
Reply received buffer back for ECHO service.
2014-06-29 14:17:19 +02:00
Andrei Emeltchenko
da667c204b android/health: Create mdep for ECHO channel 2014-06-29 14:17:19 +02:00
Andrei Emeltchenko
6dafdbdf54 android/health: Assign channel to user_data
Assign channel for incoming connections when it is created.
2014-06-29 14:17:19 +02:00
Andrei Emeltchenko
352a275e53 android/health: Add channel connect
Connect channel on incoming connection callback
2014-06-29 14:17:19 +02:00
Andrei Emeltchenko
3a7ee97b14 android/health: Refactor channel creation
Avoid using app_id when we shall use app structure itself. Otherwise we
end up with unnecessary searches for app and problems for incoming
connections.
2014-06-29 14:17:19 +02:00
Andrei Emeltchenko
ea49265918 android/health: Add handling MDL connection request
Handles MDL connection request for ECHO service
2014-06-29 14:17:19 +02:00
Andrei Emeltchenko
9e4f42449c android/health: Add HDP definitions 2014-06-29 14:17:19 +02:00
Andrei Emeltchenko
e4f4e50353 android/health: Add error check when creating app 2014-06-29 14:17:19 +02:00
Marcel Holtmann
7f3adaeb6f lib: Remove not yet implemented management commands and events 2014-06-29 14:02:45 +02:00
Marcel Holtmann
718e7cfea3 lib: Update with the new mgmt command opcodes 2014-06-29 13:58:59 +02:00
Marcel Holtmann
2dbb42e525 doc: Update command opcode for Load Connection Parameters 2014-06-29 13:55:08 +02:00
Marcel Holtmann
9c76a0a483 doc: Add management commands for Add Device and Remove Device 2014-06-29 13:54:35 +02:00
Marcel Holtmann
8303897686 doc: Move get clock info command to the next available opcode 2014-06-29 13:53:10 +02:00
Marcel Holtmann
00fa756b5d tools: Don't try to read BD_ADDR manually for raw devices 2014-06-28 23:10:00 +02:00