OSDN Git Service

bluetooth: hid: store ssr_max_latency and ssr_min_tout in bonding db
authorAdam Hampson <ahampson@google.com>
Mon, 27 Jan 2014 22:05:17 +0000 (14:05 -0800)
committerAdam Hampson <ahampson@google.com>
Tue, 28 Jan 2014 16:37:12 +0000 (16:37 +0000)
commit8a82348c04109cb85e3c0b676dd1c7c5cb461c24
tree93f06ca57d9c38f71e937c34a733b1447acea3ea
parent6a5cd52ec261ba9212a969785467993e343b39b9
bluetooth: hid: store ssr_max_latency and ssr_min_tout in bonding db

Store the ssr_max_latency and ssr_min_tout parameters in the
bonding database.  Previously these parameters were not stored for HID
devices.  This caused an inconsistency in sniff behavior between
when the HID device was paired and following a reboot of the host.

When the HID device is paired the SSR parameters are retrieved
from the HID device and are stored in the HID Host's device list.
If the host is rebooted then the HID Host's device list is
constructed from the bonding database.

If the SSR max latency is non-zero then the SSR parameters are
sent to the firmware and SSR is used.  In the event that the SSR
max latency is 0, as it is if the parameters are not found, then
SSR is disabled.

Bug: 12764547

Change-Id: I63637575fdfcf4cb4ca0ce8dc2e4ccda9cccaf66
Signed-off-by: Adam Hampson <ahampson@google.com>
btif/include/btif_storage.h
btif/src/btif_hh.c
btif/src/btif_storage.c