Commit Graph

19586 Commits

Author SHA1 Message Date
Ravi kumar Veeramally
f79aaa49a0 android/health: Fix do not set mdl callbacks on mcl_reconneced call back
MDL related callbacks should be already set when creating mcl. Only
update connection status.
2014-06-30 21:55:32 +02:00
Ravi kumar Veeramally
469e97b54e android/health: Implement mcl_uncached callback 2014-06-30 21:55:32 +02:00
Ravi kumar Veeramally
f13833fcb8 android/health: Implement mcl_disconnected cb
Provide a utility to find device by mcl and update the
mcl status.
2014-06-30 21:55:32 +02:00
Szymon Janc
f77a6b22da android/pts: Update HOGP tests results 2014-06-30 18:52:54 +02:00
Luiz Augusto von Dentz
2275ace595 android/dis: Detach on free 2014-06-30 18:52:54 +02:00
Luiz Augusto von Dentz
2669e85abe android/bas: Read CCC initial value for Battery Level
This is required by the following test:

- TP/HGRF/HH/BV-11-I [Read Client Characteristic Configuration Descriptor
for Battery Level Characteristic]
2014-06-30 18:52:54 +02:00
Luiz Augusto von Dentz
6295771c45 android/bas: Enable notification for Battery Level characteristic 2014-06-30 18:52:54 +02:00
Luiz Augusto von Dentz
563ccacc9e android/scpp: Fix not detaching on free 2014-06-30 18:52:54 +02:00
Luiz Augusto von Dentz
fc65a8cff6 android/scpp: Fix not unregistering on detach 2014-06-30 18:52:54 +02:00
Luiz Augusto von Dentz
a41d08c376 android/hog: Remove unused code
report_free is only called once after detaching so this code is no longer
necessary.
2014-06-30 18:52:53 +02:00
Luiz Augusto von Dentz
ab945f5d23 android/hog: Fix not detaching on free 2014-06-30 18:52:53 +02:00
Luiz Augusto von Dentz
31fa4c92d1 android/hog: Fix not resetting properly on detach 2014-06-30 18:52:53 +02:00
Luiz Augusto von Dentz
714434769a android/hog: Read CCC initial value for Input Report
This is required by the following test:

 - TP/HGRF/RH/BV-05-I [Read Client Characteristic Configuration Descriptors
for Report Characteristics – Input Report]
2014-06-30 18:52:53 +02:00
Luiz Augusto von Dentz
3d86acb969 android/hog: Read initial value of Report characteristic
This is required by following tests:

- TP/HGRF/RH/BV-03-I [Read Report Characteristics – Input Report]
- TP/HGRF/RH/BV-19-I [Read Report Characteristics – Output Report]
- TP/HGRF/RH/BV-07-I [Read Report Characteristics – Feature Report]
2014-06-30 18:52:53 +02:00
Marcel Holtmann
e9d55bcbbe core: Add separate functions for auto-connect kernel devices 2014-06-30 18:40:25 +02:00
Szymon Janc
1c7fa08119 android/README: Add another fix to recommended Android patch list
This patch fixes bug in GATT service which could result in infine
loop in service.
2014-06-30 18:16:36 +02:00
Szymon Janc
a1282d1d35 android/pics: Update HDP settings 2014-06-30 15:26:35 +02:00
Szymon Janc
d7b87439b0 android/bluetooth: Fix updateing bond state 2014-06-30 15:19:13 +02:00
Szymon Janc
75cb163190 android/bluetooth: Fix adding device to bonded list multiple times
Current bearer pair state needs to be checked as well since event
triggering state update can be received multiple times.

This fix crash on bluetoothd shutdown due to double free of device.
2014-06-30 15:19:13 +02:00
Andrei Emeltchenko
f235a4bcc9 android/pts: Update PTS test results for HDP 2014-06-30 15:14:09 +02:00
Andrei Emeltchenko
53614a47e4 HDP: Fix adding missing breaks 2014-06-30 15:14:09 +02:00
Andrei Emeltchenko
8bc8a1d7b7 android/health: Fix adding missing break 2014-06-30 15:14:09 +02:00
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