OSDN Git Service

scanparam: Fix handle range check on descriptor discovery
authorAnderson Lizardo <anderson.lizardo@openbossa.org>
Mon, 29 Jul 2013 13:59:28 +0000 (09:59 -0400)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 30 Jul 2013 09:50:26 +0000 (12:50 +0300)
commit9a3b7a8dd865a9b50d5894a49542286e357230c1
treec2fb6ec8032df2ccfff9d635295e301cd7477e39
parente7d82756766da085990c39de3fd3330075554df0
scanparam: Fix handle range check on descriptor discovery

When discovering descriptors, if there is only a single descriptor, the
start handle will be equal to the end handle. It is valid to issue the
Find Information Request on this case.

Before this fix, notification for Scan Refresh characteristic was never
enabled.
profiles/scanparam/scan.c