Parent: 4cf14a98e5228a15eaf275a8d437b0254bbe876f
Author: Alex Deymo <deymo@chromium.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2013-05-10 10:23:47
Tree: 5dffa6946c48aa0b785b3e04d27b64f4c7ab4098
core: Expose the last bonding attempt timeout on retry One of the interesting values for pincode plugins is the timeout of a bonding attempt. For keyboards supporting any random pincode as long as it is also typed in the keyboard, the timeout until it fails is in the order of the seconds to allow the user type the pincode on the bluetooth keyboard. In the case of a dumb keyboard accepting only a fixed pincode the timeout before the keyboard fails is in the order of a fraction of a second. This patch computes the elapsed time between the pairing started or the pin code was sent to the device and the device returns with an error. This measured duration is exposed in milliseconds to the plugins when retrying the bonding attempt.
Diffstat
| M | src/adapter.c | | | 19 | ++++++++++++++++++- |
| M | src/device.c | | | 57 | ++++++++++++++++++++++++++++++++++++++++ |
| M | src/device.h | | | 2 | ++ |
3 files changed, 77 insertions(+), 1 deletions(-)