Disconnect service connection using object path 82/125382/2
authorSeungyoun Ju <sy39.ju@samsung.com>
Tue, 11 Apr 2017 09:20:17 +0000 (18:20 +0900)
committerPyun DoHyun <dh79.pyun@samsung.com>
Tue, 18 Apr 2017 07:16:38 +0000 (00:16 -0700)
commite0a6094fcb9729799237efae24ea11af66a69716
tree885aecaff83e39f4371baaf46699dc5d1dc4de33
parentf3f453cf476957a065ece6459f110ffe5798432e
Disconnect service connection using object path

[Model] COMMON
[BinType] AP
[Customer] OPEN

[Issue#] P170328-03204
[Request] PLM
[Occurrence Version] R360XXE1CQC1

[Problem] RFCOMM socket is not disconnected when
 bt_socket_disconnect_rfcomm() is called.
[Cause & Measure] Bluez finds the service connection only using profile
 uuid. So when there are two service connections which have same uuid,
 wrong one could be selected. In order to select intended one, object
 path is required. New method call is added to Bluez to get object path
 for RFCOMM socket connection and this patch uses that method call.
[Checking Method] Make client / server RFCOMM connections using same
 uuid at the same time -> Disconnect server connection

[Team] Basic connection
[Developer] Seungyoun Ju
[Solution company] Samsung
[Change Type] Specification change

Change-Id: Ia139b43ff5d1bfc95af84256c6fea750e3eae817
bt-api/bt-common.c [changed mode: 0644->0755]
bt-api/bt-rfcomm-client.c
bt-api/bt-rfcomm-server.c
bt-api/include/bt-common.h