[Adapt] Add error handling of 'Get bonded device info' call to stack 93/79493/1
authorAnupam Roy <anupam.r@samsung.com>
Sun, 10 Jul 2016 13:19:48 +0000 (09:19 -0400)
committerAnupam Roy <anupam.r@samsung.com>
Mon, 11 Jul 2016 12:01:46 +0000 (08:01 -0400)
commit0b4c0f49fd88d000aae14500d4a0d2c2f9759aa5
tree3d705699235cdb711d72f2ad296a7e4d7b09a6b0
parentfa50365a28a42a8171e733dca883284e91f6595d
[Adapt] Add error handling of 'Get bonded device info' call to stack

It is possible that even after successful completion of Bonding,
get bonded device info query to stack gets fails due to internal
stack error. In such case, BT MW need to handle the error in order
to avoid waiting for properties infinitely.
User will get fail popup 'Unable to Bond with Device X'
and can re-attempt to establish bonding.

Also, instead of returning from cb_device_properties_cb in case
of 0 properties, send the event to BT MW to take necessary action.

Change-Id: I56402fe7e281866b4a5e6bb192f81c40864cbd05
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
bt-oal/oal-device-mgr.c
bt-service-adaptation/services/device/bt-service-core-device.c