input/hog-lib: do not silently ignore missing connection in read_char()
authorDmitry Torokhov <dtor@chromium.org>
Wed, 7 Apr 2021 22:33:47 +0000 (15:33 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:35 +0000 (19:08 +0530)
commit5ec1a43bf9c6bd30cb6f808e319966f9547cb9c1
tree3d3655a6be16abb37fc59d396983e188692e6628
parent155158a2ed418f7d3d700cd5d6145443c37f9c7e
input/hog-lib: do not silently ignore missing connection in read_char()

Currently we silently ignore missing connection (attrib) in read_char(),
but not in the other GATT interfaces (such as write_char, discover_desc,
etc). The code should avoid calling read_char() when there is no active
connection instead, and logging errors will help us trace the offenders.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/input/hog-lib.c