Don't unregister hold advertising information 10/183510/1
authorSeungyoun Ju <sy39.ju@samsung.com>
Fri, 6 Jul 2018 06:05:09 +0000 (15:05 +0900)
committerinjun.yang <injun.yang@samsung.com>
Fri, 6 Jul 2018 06:05:09 +0000 (15:05 +0900)
commit9c6ed498b4575cb0257c758546f90e1706fdffe9
treeeef06e479dc2d9b67a9299aea95112cc8ad15ed9
parentbd54a9eab645f52272c53a49e269cbf310a5ec8d
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: Ia79dd8ab5ba06778d946856883879c1f5a93d898
bt-service/bt-service-adapter-le.c
bt-service/bt-service-device.c