Commit: 47316f8c8009ec64db437ae59aad529f3e98dc43
Parent: cf815898421cb21f967ce9deafea53489ab7d32b
Author: Andre Guedes <andre.guedes@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@nokia.com>
Date: 2011-02-24 22:40:22
Tree: 543a743a4f077b865048cd8890af0ca0e60e1832

hcitool: fix interval and window parameters Set interval and window parameters properly if --discovery option is present in lescan command. According to the Bluetooth spec, during a general or limited discovery procedure the scan interval and the scan window should be set to 11.25 ms. If --discovery option isn't present, both parameters are set to the default value (10 ms) defined in LE Set Scan Parameters Command. According to that command description, the interval and window parameters should be set as follows: Time = N * 0.625 msec So, in order to set the time values to 11.25 and 10 ms, the parameters should be equal to 18 (0x0012) and 16 (0x0010), respectively.

Diffstat

M tools/hcitool.c | 9 +++++++- -

1 files changed, 7 insertions(+), 2 deletions(-)

View Full Diff | Patch