Don't unregister hold advertising information 55/136655/1
authorSeungyoun Ju <sy39.ju@samsung.com>
Wed, 21 Jun 2017 05:52:29 +0000 (14:52 +0900)
committerSeungyoun Ju <sy39.ju@samsung.com>
Fri, 30 Jun 2017 14:41:33 +0000 (23:41 +0900)
commit9cff930ed1de8b2f3c380e8e58722340f28d1074
tree07c09734d151c5c3b20af4a5312073adef9b7289
parent2885e991596555603004b94d06fdf9bd8f80d3e3
Don't unregister hold advertising information

[Problem] Restarted advertising triggered by LE connection request
 doesn't have the information about sender and handle. It causes some
 malfunctions (e.g. Connect LE to out-of-range LE device twice. The
 second one is requested as Directed Advertising (Slave role request))
[Cause & Measure] Advertising information is flushed once it is stopped
 by LE connection request. So even though it is restarted by hold
 advertising logic, there is no sender / advertising handle information.
 It causes the next time hold advertising failed.
 This patch doesn't unregister hold state advertising slot. Because it
 will be used again after timer is expired. Or, once timer is cancelled,
 it will be unregistered properly.
[Checking Method] Connect LE to out-of-range LE device twice

Change-Id: Ia287da58204348f7deb06117654956bc2948f4e1
bt-service/bt-service-adapter-le.c
bt-service/bt-service-device.c