Parent: f3f32579ec5bffacd5912f0ffbb0399b28d32241
Author: Mariusz Skamra <mariusz.skamra@tieto.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2015-02-26 12:28:28
Tree: 0a4cb62b953449968cf735e5ccc0c0c7c0ef113a
android/hog: Fix find included battery services I deleted most of the code related to finding include services. This method was used only in situation when HID service as primary service was not found. However according to SPEC HID device shall implement HID service as primary. Further HOG is called from hidhost's hog_conn_cb when HID service was found and connection was established using LE. Now searching for include services is performed because TC_HGDR_RH_BV_01_I requires that. I also added a queue of battery services because according to HOGP SPEC there could be more than one battery services like in TC_HGDC_HH_BV_14_I where there is only one HID service, and two battery services. So the first found bas was overwritten by the second one and after reconnection only one bas was attached.
Diffstat
| M | android/hog.c | | | 83 | +++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
1 files changed, 27 insertions(+), 56 deletions(-)