platform/core/connectivity/bluetooth-frwk.git
5 years agoFixed the custom service UUID parsing 54/213554/4 accepted/tizen/unified/20190918.010258 submit/tizen/20190916.233704
Amit Purwar [Fri, 6 Sep 2019 13:31:00 +0000 (19:01 +0530)]
Fixed the custom service UUID parsing

Change-Id: I0ed330d820e09b740d2125963d81a6c92c553fca
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoModified the logic of advertisement slot allocation 04/213304/4
Amit Purwar [Wed, 4 Sep 2019 06:10:10 +0000 (11:40 +0530)]
Modified the logic of advertisement slot allocation

Change-Id: I38dadcce61ea91cc83a0e5cac521d7dc0d71720a
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoMerge "Implement MTU changed callback for GATT server" into tizen
Pyun DoHyun [Mon, 16 Sep 2019 06:13:50 +0000 (06:13 +0000)]
Merge "Implement MTU changed callback for GATT server" into tizen

5 years agoMerge "Implement new API to get le oob data" into tizen
Pyun DoHyun [Mon, 16 Sep 2019 06:13:45 +0000 (06:13 +0000)]
Merge "Implement new API to get le oob data" into tizen

5 years agoMerge "Providing bluetooth usage data for battery monitor framework" into tizen
Pyun DoHyun [Mon, 16 Sep 2019 06:07:29 +0000 (06:07 +0000)]
Merge "Providing bluetooth usage data for battery monitor framework" into tizen

5 years agoProviding bluetooth usage data for battery monitor framework 33/213033/5
Sudipto [Thu, 29 Aug 2019 10:35:07 +0000 (16:05 +0530)]
Providing bluetooth usage data for battery monitor framework

The following data is provided to BT CAPI to be used
by battery monitor framework:

Session start time
Session end time
Session scan time
Session connected time

Change-Id: I3873d521f35c76bd71a5cae1dfb6c4724b015997
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
5 years agoImplement MTU changed callback for GATT server 63/213863/1
injun.yang [Mon, 1 Jul 2019 08:01:09 +0000 (17:01 +0900)]
Implement MTU changed callback for GATT server

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] Unable to notice MTU changed event to application
[Cause & Measure] Implement MTU changed callback for GATT server
[Checking Method] n/a

[Team] Convergence BT
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I57a539cadf7ab83931a40eaed573de9f9cecbd9c
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoImplement new API to get le oob data 49/213849/1
injun.yang [Tue, 22 Jan 2019 08:51:23 +0000 (17:51 +0900)]
Implement new API to get le oob data

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] n/a
[Cause & Measure] Implement new API to get le oob data
[Checking Method] n/a

[Team] IoT Hub
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I5ab78624ed2fbac7fc6d6d36bf394776d721b7f7
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoSupport LE passive scan 44/213844/1
injun.yang [Thu, 22 Aug 2019 10:07:46 +0000 (19:07 +0900)]
Support LE passive scan

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] n/a
[Cause & Measure] Support LE passive scan
[Checking Method] set scan type > scan

[Team] Convergence BT
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I77477742886f96523dd8a44471dfc86c6fd0870b
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoHandling BLE scan as per adv type 65/213765/1
injun.yang [Wed, 11 Sep 2019 06:15:34 +0000 (15:15 +0900)]
Handling BLE scan as per adv type

Change-Id: I801145ce5c48a218be9668adb63e686318d26f86
Signed-off-by: injun.yang <injun.yang@samsung.com>
5 years agoWhen compare address, ignoring the case of the characters 64/213664/1
injun.yang [Tue, 10 Sep 2019 04:52:53 +0000 (13:52 +0900)]
When compare address, ignoring the case of the characters

Change-Id: I1c720d63824c5789d80c56c29df8449a2ba201ed
Signed-off-by: injun.yang <injun.yang@samsung.com>
5 years agoEnhance debug message 43/213643/1
injun.yang [Mon, 9 Sep 2019 11:31:30 +0000 (20:31 +0900)]
Enhance debug message

Change-Id: I1f59a2cd019a1ab9229dcaaf8551474ef80e1cb5
Signed-off-by: injun.yang <injun.yang@samsung.com>
5 years agoAdd the auto accept logic for the headless speaker profile 07/213207/1 accepted/tizen/unified/20190904.110659 submit/tizen/20190903.224849
DoHyun Pyun [Tue, 3 Sep 2019 01:06:26 +0000 (10:06 +0900)]
Add the auto accept logic for the headless speaker profile

Change-Id: I4c5aff7aae23e819c0aea23b69f0ceea5d049e08
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoFix handling logic of pending request 74/212674/1
Wootak Jung [Mon, 26 Aug 2019 04:58:35 +0000 (13:58 +0900)]
Fix handling logic of pending request

If the list is removed during 'for' statement, 'list->next' also set NULL.
 Fix the logic to store 'list->next' in advance.

Change-Id: Iae4bb280f68d770b0528bbc5b9bbd38fb88f4884

5 years agoFix the crash dump in FHUB efl TCT 95/212395/4
Wootak Jung [Wed, 21 Aug 2019 05:26:59 +0000 (14:26 +0900)]
Fix the crash dump in FHUB efl TCT

Add the type check logic to avoid crash
Should not be freed in case of getting a string as '&s'.
https://people.gnome.org/~ryanl/glib-docs/gvariant-format-strings.html#gvariant-format-strings-pointers

Change-Id: I7fead708e1349a832bc6b19a3b5987631bd0d1ca

5 years agoMerge "Add BT_SET_LE_STATIC_RANDOM_ADDRESS function" into tizen accepted/tizen/unified/20190822.105958 submit/tizen/20190822.022402
Pyun DoHyun [Thu, 22 Aug 2019 00:12:11 +0000 (00:12 +0000)]
Merge "Add BT_SET_LE_STATIC_RANDOM_ADDRESS function" into tizen

5 years agoMerge "Improvements in flight mode patch" into tizen
Pyun DoHyun [Thu, 22 Aug 2019 00:11:41 +0000 (00:11 +0000)]
Merge "Improvements in flight mode patch" into tizen

5 years agoAdd BT_SET_LE_STATIC_RANDOM_ADDRESS function 53/212253/1
Deokhyun Kim [Mon, 19 Aug 2019 09:33:53 +0000 (18:33 +0900)]
Add BT_SET_LE_STATIC_RANDOM_ADDRESS function

Change-Id: Ic9d832ccfedaf40846d7b06e9c4bea4b08e9717b
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
5 years agoImprovements in flight mode patch 15/212115/1
Sudipto [Wed, 14 Aug 2019 09:34:08 +0000 (15:04 +0530)]
Improvements in flight mode patch

Change-Id: I5056d1db2a45ef552b0bf0f6699d041f9215df02
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
5 years agoRemove duplicate dependency with implicit dependencies at "Type=dbus" 86/212086/1 accepted/tizen/unified/20190820.114958 submit/tizen/20190820.043931
INSUN PYO [Wed, 14 Aug 2019 06:39:46 +0000 (15:39 +0900)]
Remove duplicate dependency with implicit dependencies at "Type=dbus"

Refs: https://www.freedesktop.org/software/systemd/man/systemd.service.html
 - Services with Type=dbus set automatically acquire dependencies of type Requires= and After= on dbus.socket.

Change-Id: I6c53c6b6413e4ca12cf20897268806de2065a154

5 years agoReplace the systemd service activation method 95/211895/3
DoHyun Pyun [Mon, 12 Aug 2019 01:17:58 +0000 (10:17 +0900)]
Replace the systemd service activation method

This patchset will use the systemd actd API instead of
the path activation method.

Change-Id: If1d320d49802def8302a4eb61366102f8e262b64
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoAdd disconnection reason for logging 61/211761/1 accepted/tizen/unified/20190812.235648 submit/tizen/20190809.033840
Deokhyun Kim [Fri, 9 Aug 2019 02:55:34 +0000 (11:55 +0900)]
Add disconnection reason for logging

  BLUETOOTH_ERROR_CONNECTION_REJECTED_DUE_TO_SECURITY_REASONS

Change-Id: I6ef3473667c892b66c2934348bf1b10924a7e3f6
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
5 years agoSet the local name for the headless profile 29/211429/1 accepted/tizen/unified/20190805.104333 submit/tizen/20190804.235954
DoHyun Pyun [Mon, 5 Aug 2019 01:56:40 +0000 (10:56 +0900)]
Set the local name for the headless profile

Change-Id: I943973cdce2813b4c57a3b1b6fc991588710cbb8
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoAdd the missed parameter for SetAdvertisingParameters 19/211419/1
DoHyun Pyun [Sun, 4 Aug 2019 23:56:47 +0000 (08:56 +0900)]
Add the missed parameter for SetAdvertisingParameters

Change-Id: I11f8902dd2a1d09270dc9c30a5c0d8d7d497ff04
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoFix TCT fail issue 90/211190/1 accepted/tizen/unified/20190801.025406 submit/tizen/20190730.223540
DoHyun Pyun [Wed, 31 Jul 2019 04:38:09 +0000 (13:38 +0900)]
Fix TCT fail issue

Add the missed dbus parameter for SetAdvertisingParameters

Change-Id: Ie27e60768de16c82d8f81e90c9a19831f06f847c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoUse vendor adv command only when multipled adv is supported 81/211081/1
Deokhyun Kim [Thu, 11 Oct 2018 08:09:46 +0000 (17:09 +0900)]
Use vendor adv command only when multipled adv is supported

[Model] Lux
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] Use vendor adv command only when multipled adv is supported
[Cause & Measure]
[Checking Method]

[Team] IoT Hub
[Developer] Deokhyun Kim
[Solution company] Samsung
[Change Type] Specification change

Change-Id: If927170563471b35b67a6312af470690e06d630f
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoImplement interface to set advertise Tx power level 79/211079/1
injun.yang [Tue, 23 Oct 2018 00:55:48 +0000 (09:55 +0900)]
Implement interface to set advertise Tx power level

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] n/a
[Cause & Measure] Set advertise Tx power level that received from application
[Checking Method] n/a

[Team] Basic Connection
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: If8c17d1da8c7009886cd446d09cc361f48a70bc0
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: injun.yang <injun.yang@samsung.com>
5 years agoRearrange bluetooth-frwk-core.service into delayed.target 78/210178/3 accepted/tizen/unified/20190719.111647 submit/tizen/20190718.041400
INSUN PYO [Tue, 16 Jul 2019 11:06:16 +0000 (20:06 +0900)]
Rearrange bluetooth-frwk-core.service into delayed.target

Change-Id: I7f7d49f2d8f87c3c5ac79c2ead3e9b3234461ae5

5 years agoDelete meaningless configuration 23/209523/1 accepted/tizen/unified/20190715.111831 submit/tizen/20190714.235650
INSUN PYO [Mon, 8 Jul 2019 11:14:57 +0000 (20:14 +0900)]
Delete meaningless configuration

Change-Id: I55af8e5c327244f90ac47a159943c34f70450ccc

5 years agoPorting flight mode logic to HAL 32/209132/3
Sudipto Bal [Tue, 2 Jul 2019 11:18:55 +0000 (16:48 +0530)]
Porting flight mode logic to HAL

Change-Id: I35cfa8522b97d202f5e5e9f25398defc777b8b8e
Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
5 years agoRemove unused features 62/209062/1 accepted/tizen/unified/20190703.110622 submit/tizen/20190702.052010
INSUN PYO [Tue, 2 Jul 2019 05:04:26 +0000 (14:04 +0900)]
Remove unused features

Change-Id: I33c5b288237f8025419a7741b5ed5bca5b0a05a1

5 years agoMerge "Porting flight mode logic to tizen5.5" into tizen accepted/tizen/unified/20190628.120639 submit/tizen/20190627.231725
Pyun DoHyun [Thu, 27 Jun 2019 23:12:25 +0000 (23:12 +0000)]
Merge "Porting flight mode logic to tizen5.5" into tizen

5 years agoPorting flight mode logic to tizen5.5 58/207758/5
Sudipto Bal [Tue, 11 Jun 2019 12:01:48 +0000 (17:31 +0530)]
Porting flight mode logic to tizen5.5

Change-Id: I56df155dc5153fe735b16acaa1e4dc3bd759feb2
Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
5 years agoFix wrong use of dbus interface 13/207713/1 accepted/tizen/unified/20190613.061538 submit/tizen/20190612.081916
Deokhyun Kim [Tue, 11 Jun 2019 08:57:21 +0000 (17:57 +0900)]
Fix wrong use of dbus interface

Change-Id: I68ff2b37cb1f7cf19a3b5aee5eb46c18b03a5688
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
5 years agoFix : Bonding complete event is sent twice. 12/207612/1 accepted/tizen/unified/20190611.050050 accepted/tizen/unified/20190612.111712 submit/tizen/20190610.063128 submit/tizen/20190611.064259 submit/tizen/20190612.015823
injun.yang [Tue, 7 May 2019 04:24:51 +0000 (13:24 +0900)]
Fix : Bonding complete event is sent twice.

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] When DUT request LE pairing, bonding complete event generated twice.
[Cause & Measure] Callback invoked twice in "Pair" dbus callback and the property changed event.
 This patch will handle all bonding complete event in the property changed event.
[Checking Method] Request LE pairing

[Team] IoT Hub
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

* bluez patch required
cb38640b07e8be0d5589e42b12bdc2a7e9fad652

Change-Id: Ifeb59d23b62d0d0e6316f7faf3920bb346d02057
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoDeinitialize gatt server properly 11/207611/2
injun.yang [Tue, 5 Mar 2019 07:36:29 +0000 (16:36 +0900)]
Deinitialize gatt server properly

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] register gatt server -> bluetoothd terminated abnormally -> unregister gatt server ->
     bt-frwk recovery BT-> register gatt server -> crash
[Cause & Measure] After BT disabled, gatt server is not deinitialized properly.
[Checking Method] n/a

[Team] IoT Hub
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I6f4356e12e05073656d56302d7e6c39883fc96f2
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoFix : LE scanning malfunction 10/207610/1
injun.yang [Mon, 4 Mar 2019 02:36:51 +0000 (11:36 +0900)]
Fix : LE scanning malfunction

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] APIs execute successfully without any errors, but LE scanning is not working
[Cause & Measure] Before scan stopping is completed, application request LE scan again.
 After receive LEDiscoveryFinished event, trigger LE scanning again.
[Checking Method] Call bt_adapter_le_start_scan() just after calling bt_adapter_le_stop_scan()

[Team] IoT Hub
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I4927f5ba75451bc6f3fb87d758d2f141cc0c2b8d
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoReturn error code properly 09/207609/1
injun.yang [Mon, 11 Feb 2019 05:31:16 +0000 (14:31 +0900)]
Return error code properly

[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] In disconnection staus, bt frwk return MTU size without error code
[Cause & Measure] When MTU size is invalid, return error code.
[Checking Method] Getting MTU size

[Team] IoT Hub
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I23fa6a2a4bcb1f75c081a502062b7d5e7177111b
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoSupport for internal API to identify internal bonding 03/206903/4
Sudipto Bal [Mon, 3 Jun 2019 11:51:10 +0000 (17:21 +0530)]
Support for internal API to identify internal bonding

Change-Id: Ic22690a7422a0c2d74a766e0a8c47890ba83d99a
Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
5 years agoreturn IN_PROGRESS error when pbap connection is on progress 36/206936/1
Deokhyun Kim [Wed, 29 May 2019 07:31:13 +0000 (16:31 +0900)]
return IN_PROGRESS error when pbap connection is on progress

Change-Id: Iaf91555a3d486e7f40997fc10a0c65bf76a6c1dc
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
5 years agoRemove wrong dependency in the systemd service file 88/206588/1 accepted/tizen/unified/20190522.085449 submit/tizen/20190522.020119
DoHyun Pyun [Wed, 22 May 2019 01:28:11 +0000 (10:28 +0900)]
Remove wrong dependency in the systemd service file

Change-Id: Ie995fb37a7da0629be2b0163e207352eaf98d4ae
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoFix TM1 service file to be executed after wifi-ready 93/206093/1 accepted/tizen/unified/20190516.053132 submit/tizen/20190515.040421
Wootak Jung [Tue, 14 May 2019 07:33:13 +0000 (16:33 +0900)]
Fix TM1 service file to be executed after wifi-ready

After=multi-user.target causes cyclic dependency because
this service is executed before multi-user.target phase.
Moreover, in TM1, bluetooth-frwk should be executed after
wifi-ready.
sleep is required to wait for completion of wifi-ready

Change-Id: I20a1b063f48523c19cefb829faa0bde0e52eadaf

5 years agoRevert "Remove After tag to remove cyclic dependency" 04/206004/1 accepted/tizen/unified/20190513.082629 submit/tizen/20190513.072851
DoHyun Pyun [Mon, 13 May 2019 07:10:39 +0000 (16:10 +0900)]
Revert "Remove After tag to remove cyclic dependency"

This reverts commit a1bcaa0ac47faa925156b1cb5a351c0e64e88974.

Change-Id: If21178d335658b12ad6a0950de6e21bd0095060f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoRevert "Remove After= tag on bluetooth-frwk-core.service" 03/206003/1
DoHyun Pyun [Mon, 13 May 2019 07:09:46 +0000 (16:09 +0900)]
Revert "Remove After= tag on bluetooth-frwk-core.service"

This reverts commit 60e5e8bb77fe846f4b2ccc41615b5bf3ddf94fd8.

Change-Id: I7e3ec4fe645233e9e5890ad365e853ee789d8a7c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoRemove After tag to remove cyclic dependency 29/204629/1 accepted/tizen/unified/20190429.103759 submit/tizen/20190429.002933
Wootak Jung [Thu, 25 Apr 2019 06:36:29 +0000 (15:36 +0900)]
Remove After tag to remove cyclic dependency

Change-Id: I331c56d236d80567c03564c443d0ed184b1ce2d2

5 years agoMerge "Remove After= tag on bluetooth-frwk-core.service" into tizen accepted/tizen/unified/20190404.021950 submit/tizen/20190403.033924
Pyun DoHyun [Tue, 2 Apr 2019 23:22:36 +0000 (23:22 +0000)]
Merge "Remove After= tag on bluetooth-frwk-core.service" into tizen

5 years agoRemove After= tag on bluetooth-frwk-core.service 27/202627/1
Wootak Jung [Tue, 2 Apr 2019 04:21:48 +0000 (13:21 +0900)]
Remove After= tag on bluetooth-frwk-core.service

bluetooth-frwk-core.service is located in multi-user.target.wants.
And multi-user.target phase is executed after multi-user.target.wants.
so, After=multi-user.taget causes cyclic dependency.

Change-Id: I12e7bb47954103be65a26ee6e3d5fa3e7ef9955f

5 years agoFixed AVRCP controller reply pending request 08/202608/1
Amit Purwar [Mon, 1 Apr 2019 11:38:36 +0000 (17:08 +0530)]
Fixed AVRCP controller reply pending request

Change-Id: I0d086f52f974ea40bb40a104bfa3e6c2e3dcccf5
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoEnable adapter and discoverable mode if headless device 83/202283/1 accepted/tizen/unified/20190327.160554 submit/tizen/20190327.015027
Wootak Jung [Thu, 31 May 2018 07:00:52 +0000 (16:00 +0900)]
Enable adapter and discoverable mode if headless device

Change-Id: I5e1ae7b674931c6d02ad15921382e3abd6857397

5 years agoRemoved A2DP sink disconnect event on A2DP connect fail 62/202162/1 accepted/tizen/unified/20190326.073456 submit/tizen/20190326.003144
Amit Purwar [Mon, 25 Mar 2019 09:50:42 +0000 (15:20 +0530)]
Removed A2DP sink disconnect event on A2DP connect fail

Change-Id: Ia6f95d03c3bb0f17c7b8a7539ff41e4feed93a23
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoFix the ASAN build error 37/201437/2 accepted/tizen/unified/20190318.150550 submit/tizen/20190315.000134
DoHyun Pyun [Thu, 14 Mar 2019 06:11:12 +0000 (15:11 +0900)]
Fix the ASAN build error

Change-Id: I55fb907d0be93419bcf32b35f84b7b71be16b7cd
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoModify the privilege level of OOB data getter APIs 33/200333/1 accepted/tizen/unified/20190312.113015 submit/tizen/20190311.071331
DoHyun Pyun [Thu, 21 Feb 2019 23:24:08 +0000 (08:24 +0900)]
Modify the privilege level of OOB data getter APIs

Application try to bond using oob data without user confirmation.
Because of this, need to give the proper privilege for OOB data
getter APIs

Change-Id: I5fd0083705ac594cbcd307026bf805384318db76
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoDeinitialize gatt server properly 65/199965/1 accepted/tizen/unified/20190219.154249 submit/tizen/20190218.033542
injun.yang [Thu, 3 Jan 2019 03:42:56 +0000 (12:42 +0900)]
Deinitialize gatt server properly

[Problem] register gatt server -> BT off -> unregister gatt server ->
 BT on -> register gatt server -> crash
[Cause & Measure] After BT disabled, gatt server is not deinitialized properly.

Change-Id: Iadc0fb7764a9d87f8e22824233e404a248f130e7

5 years agoMerge "Fixed the descriptor write send response" into tizen accepted/tizen/unified/20190214.060730 submit/tizen/20190214.004027
Pyun DoHyun [Thu, 14 Feb 2019 00:38:37 +0000 (00:38 +0000)]
Merge "Fixed the descriptor write send response" into tizen

5 years agoFixed the descriptor write send response 94/199594/1
Amit Purwar [Wed, 13 Feb 2019 07:14:02 +0000 (12:44 +0530)]
Fixed the descriptor write send response

Change-Id: I803b2c389872294e475caab40bb1d15b6aaf2cb8
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoFix own_prefix tag duplication issue 99/199499/1
Wootak Jung [Tue, 12 Feb 2019 07:21:10 +0000 (16:21 +0900)]
Fix own_prefix tag duplication issue

In case of org.frwk.gatt_service, owner is different depend on
 gatt relay feature. So, I provide a new conf file for where
 gatt relay feature is not in used.

Change-Id: I3a9bb38afe6d49afd701351a9f19213246eee341

5 years agoMerge "Fixed the unicast address for send indication" into tizen accepted/tizen/unified/20190212.084048 submit/tizen/20190211.065813 submit/tizen/20190211.100729
Pyun DoHyun [Mon, 11 Feb 2019 06:57:05 +0000 (06:57 +0000)]
Merge "Fixed the unicast address for send indication" into tizen

5 years agoMerge "Fixed NotifyAcquired property for gatt indication" into tizen
Pyun DoHyun [Mon, 11 Feb 2019 06:57:00 +0000 (06:57 +0000)]
Merge "Fixed NotifyAcquired property for gatt indication" into tizen

5 years agoMerge "Fixed the WriteAcquired property for char write" into tizen
Pyun DoHyun [Mon, 11 Feb 2019 06:56:57 +0000 (06:56 +0000)]
Merge "Fixed the WriteAcquired property for char write" into tizen

5 years agoFixed the unicast address for send indication 92/199392/1
Amit Purwar [Mon, 11 Feb 2019 06:42:05 +0000 (12:12 +0530)]
Fixed the unicast address for send indication

Change-Id: I1308b4d80080b5f98920d7a45c5e959a5cc316b5
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoMerge "Fix for unlimited attepmts to write to socket" into tizen
Pyun DoHyun [Thu, 7 Feb 2019 23:33:52 +0000 (23:33 +0000)]
Merge "Fix for unlimited attepmts to write to socket" into tizen

5 years agoFix for unlimited attepmts to write to socket 30/199130/2
Sudipto [Fri, 1 Feb 2019 11:14:43 +0000 (16:44 +0530)]
Fix for unlimited attepmts to write to socket

Change-Id: Id90bebe5d40f1ac599d996e3e2da66217391a9eb
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
5 years agoFix dbus connection to shared from private 10/199210/1 accepted/tizen/unified/20190208.061633 submit/tizen/20190207.084653
Wootak Jung [Thu, 7 Feb 2019 07:47:03 +0000 (16:47 +0900)]
Fix dbus connection to shared from private

Shared connection should be used because rfcomm interface was registered
 on shared connection not private. Otherwise, dbus rejection is occured
 because dbus policy is only applied on shared connection not private.

Change-Id: I49ca31b06deeec8c9092fd99342d22d0b9290229

5 years agoFixed NotifyAcquired property for gatt indication 64/199164/2
Amit Purwar [Wed, 6 Feb 2019 11:34:39 +0000 (17:04 +0530)]
Fixed NotifyAcquired property for gatt indication

Change-Id: I995f79d0964acf6f8c2c0caa62361c58b046eb54
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoFixed the WriteAcquired property for char write 07/199107/1
Amit Purwar [Mon, 4 Feb 2019 06:32:06 +0000 (12:02 +0530)]
Fixed the WriteAcquired property for char write

Change-Id: Ic49087d5c6a6efc45c102a4d5224e8e5eef3eb31
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoAdd -Wall -Werror build option for bluez hal 11/199011/1
DoHyun Pyun [Fri, 1 Feb 2019 00:26:24 +0000 (09:26 +0900)]
Add -Wall -Werror build option for bluez hal

Change-Id: Ieb22a7a158a47fb45a468832f2fd3e878cc251c2
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoFix the warning errors 10/199010/1
DoHyun Pyun [Fri, 1 Feb 2019 00:26:01 +0000 (09:26 +0900)]
Fix the warning errors

Change-Id: Ib1bb16613a744e730a724de0556fbe69e3a72468
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoMerge "cleanup of acquire notification data for stop notify" into tizen accepted/tizen/unified/20190201.061316 submit/tizen/20190131.063750
Pyun DoHyun [Thu, 31 Jan 2019 06:37:24 +0000 (06:37 +0000)]
Merge "cleanup of acquire notification data for stop notify" into tizen

5 years agoMerge "Handle ACL Disconnect Reason" into tizen
Pyun DoHyun [Wed, 30 Jan 2019 23:34:55 +0000 (23:34 +0000)]
Merge "Handle ACL Disconnect Reason" into tizen

5 years agocleanup of acquire notification data for stop notify 45/198845/1
Amit Purwar [Wed, 30 Jan 2019 09:00:31 +0000 (14:30 +0530)]
cleanup of acquire notification data for stop notify

Change-Id: I75cb3a0edbd159789695cc8c16ae659cc246c5bf
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoHandle ACL Disconnect Reason 27/198827/1
Anupam Roy [Wed, 30 Jan 2019 06:24:58 +0000 (11:54 +0530)]
Handle ACL Disconnect Reason

Following events are Bluez HAL specific
 - Disconnect due to Remote Host
 - Disconnect due to Local Host

Change-Id: I8199847a3cad9040ec1b91ce13f89c773748e8b2
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
5 years agoReduce the indentation and complexity for AVRCP function 16/198816/1
DoHyun Pyun [Wed, 30 Jan 2019 04:07:51 +0000 (13:07 +0900)]
Reduce the indentation and complexity for AVRCP function

Change-Id: I8bc516ced5d8e1632772df1d715b52a6423b51eb
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoSupport in AVRCPT controller commands for multiple controllers 15/198515/2
Avichal [Fri, 25 Jan 2019 05:45:31 +0000 (14:45 +0900)]
Support in AVRCPT controller commands for multiple controllers

Change-Id: I8e913da0bfa6e118c640603d588a9e88b1e08297
Signed-off-by: Avichal <avichal.a@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoMerge "A2DP profile multiple source support" into tizen
Pyun DoHyun [Wed, 30 Jan 2019 01:05:46 +0000 (01:05 +0000)]
Merge "A2DP profile multiple source support" into tizen

5 years agoMerge "Fixed disable notification for acquire notification" into tizen accepted/tizen/unified/20190129.064355 submit/tizen/20190129.000858
Pyun DoHyun [Tue, 29 Jan 2019 00:07:54 +0000 (00:07 +0000)]
Merge "Fixed disable notification for acquire notification" into tizen

5 years agoMerge "fixed gatt server notification event for acquire notify" into tizen
Pyun DoHyun [Tue, 29 Jan 2019 00:07:50 +0000 (00:07 +0000)]
Merge "fixed gatt server notification event for acquire notify" into tizen

5 years agoFixed disable notification for acquire notification 10/198610/3
Amit Purwar [Mon, 28 Jan 2019 05:19:15 +0000 (10:49 +0530)]
Fixed disable notification for acquire notification

Change-Id: I8b870f29ec3c71d6a0b75e915307b76e57d33ad7
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoA2DP profile multiple source support 59/196359/5
Avichal [Thu, 27 Dec 2018 14:23:58 +0000 (19:53 +0530)]
A2DP profile multiple source support

Added Support multiple a2dp and avrctp connections.

Change-Id: I50d4ba897042648afc35a59d91e8e61c3b2ac91e
Signed-off-by: Avichal <avichal.a@samsung.com>
5 years agoFix dbus policies 18/198518/2
Wootak Jung [Fri, 25 Jan 2019 06:01:07 +0000 (15:01 +0900)]
Fix dbus policies

If unknown process owns these well-known name, unexpected deny can be occured.
So, subdivide deny policy.

Change-Id: I8e6cc73d80d60d348e2b510cabc77c73a6cb32ca

5 years agofixed gatt server notification event for acquire notify 51/198451/1
Amit Purwar [Thu, 24 Jan 2019 13:22:41 +0000 (18:52 +0530)]
fixed gatt server notification event for acquire notify

Change-Id: I2b99788b188b3df5f4e64c2966fb1a64bf7ab0ca
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
5 years agoRemove unnecessary connection getting functions 61/198261/2 submit/tizen/20190124.075029 submit/tizen/20190128.005753
Wootak Jung [Wed, 23 Jan 2019 04:57:50 +0000 (13:57 +0900)]
Remove unnecessary connection getting functions

Remove duplicated function _bt_gdbus_init_system_gconn()
Remove duplicated function __get_gdbus_connection()
Rename _bt_gdbus_get_system_gconn() to _bt_get_system_private_conn()
Rename _bt_init_system_gdbus_conn() to _bt_get_system_shared_conn()
Add 'static' keyword for static functions

Change-Id: I85571703b1c9a74365c83dc9d701cb418963ae59

5 years agoReturn errors without retry if bond info. already exists or it's in progress 94/198194/1 accepted/tizen/unified/20190128.061620 submit/tizen/20190123.050251
Deokhyun Kim [Tue, 22 Jan 2019 07:38:49 +0000 (16:38 +0900)]
Return errors without retry if bond info. already exists or it's in progress

  If create_bond is called in case GATT is connected and it's already bonded,
  then bond info. is removed and GATT is disconnected unexpectedly.

Change-Id: I078da398322f68522e427c7b7f18a8fd8e229f91
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
5 years agoApply send_destination_prefix policy#3 78/198178/1 submit/tizen_5.0/20190118.024626
Wootak Jung [Tue, 22 Jan 2019 05:29:20 +0000 (14:29 +0900)]
Apply send_destination_prefix policy#3

Change rfcomm connection from private to shared

Change-Id: I59924564c134a7d4f7ea13a4c25ffd41345792d8

5 years agoMerge "Enable FD based GATT client data transfer" into tizen
Pyun DoHyun [Tue, 22 Jan 2019 04:17:49 +0000 (04:17 +0000)]
Merge "Enable FD based GATT client data transfer" into tizen

5 years agoApply send_destination_prefix policy#2 28/198128/4
Wootak Jung [Mon, 21 Jan 2019 07:39:49 +0000 (16:39 +0900)]
Apply send_destination_prefix policy#2

gdbus closing logic is not needed anymore

Change-Id: If529a348bee88dfe413fd936fcf07296eb6ae8d0

5 years agoEnable FD based GATT client data transfer 62/198162/1
DoHyun Pyun [Tue, 22 Jan 2019 00:23:18 +0000 (09:23 +0900)]
Enable FD based GATT client data transfer

Change-Id: I35837791ee06c598d53dcc984f46b787dfb41f55
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoApply send_destination_prefix policy#1 06/198106/3
Wootak Jung [Mon, 21 Jan 2019 02:13:06 +0000 (11:13 +0900)]
Apply send_destination_prefix policy#1

default deny/allow options are needed for policy checker

Change-Id: I1feac171c04fc7ec8f63a68a9499149d8c5a9528

5 years agoFix the bug for the OPP server progress callback's file name 59/197659/1 accepted/tizen/unified/20190116.060558 submit/tizen/20190115.054612
DoHyun Pyun [Tue, 15 Jan 2019 05:02:46 +0000 (14:02 +0900)]
Fix the bug for the OPP server progress callback's file name

Change-Id: I3113a1e669304c559580ae0962b67f2ae67f4991
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoAdd new method to disconnect device 86/197186/1 accepted/tizen/unified/20190115.055940 submit/tizen/20190111.043317 submit/tizen/20190114.060943
Deokhyun Kim [Thu, 10 Jan 2019 07:20:01 +0000 (16:20 +0900)]
Add new method to disconnect device

Change-Id: Ia0dd37ce4cd13b2666c3e8f6f112ed0b8321d4b6
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
5 years agoFix svace issue(40981) 63/197163/1
Deokhyun Kim [Thu, 10 Jan 2019 05:04:31 +0000 (14:04 +0900)]
Fix svace issue(40981)

Change-Id: I2fa8b274e275a8aa949c274016b2ba8cfa6c7acb
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
5 years agoMerge "Improve efficiency of using g_array_index" into tizen
Pyun DoHyun [Wed, 2 Jan 2019 07:05:55 +0000 (07:05 +0000)]
Merge "Improve efficiency of using g_array_index" into tizen

5 years agoEnable the connection request event for custom obex server 21/196521/1 accepted/tizen/unified/20190103.061728 submit/tizen/20190102.044100
DoHyun Pyun [Wed, 2 Jan 2019 04:04:55 +0000 (13:04 +0900)]
Enable the connection request event for custom obex server

Change-Id: Id4a07fa2018cfd5eba778e0655bf6292b560cbbb
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoImprove efficiency of using g_array_index 03/196503/1
Deokhyun Kim [Wed, 2 Jan 2019 02:02:30 +0000 (11:02 +0900)]
Improve efficiency of using g_array_index

Change-Id: Ia2c56e65d5900f67d0089290663cfb0c95bb6a85
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
5 years agoCorrect the privilege check logic for MTU size APIs 19/196219/1
Seungyoun Ju [Wed, 26 Dec 2018 09:20:07 +0000 (18:20 +0900)]
Correct the privilege check logic for MTU size APIs

Change-Id: I509d0967b16b9ca17a978ecffc914184b744557d

5 years agogatt-service : Fix some minor bugs 18/196218/1
Seungyoun Ju [Wed, 26 Dec 2018 09:11:17 +0000 (18:11 +0900)]
gatt-service : Fix some minor bugs

[Problem] init -> register service -> deinit -> init -> register service
-> start server : service is not added.
There are some warning about reference to invalid GOBJECT.
[Cause & Measure] Remove pending count. Unref GOBJECT after check of
validation.

Change-Id: I4829505ebac3e3c0668aa2a386de3085163d0b8d

5 years agoFix invalid read 17/196217/1
Seungyoun Ju [Fri, 14 Dec 2018 06:32:25 +0000 (15:32 +0900)]
Fix invalid read

[Problem] There is invalid read report from valgrind
[Cause & Measure] The node was accessed after it was freed. This patch
 frees current node after moving to the next node so that invalid read
 issue has been resolved.

Change-Id: I15eae8c16c8f215aee30fd33ac8f3aadea73b4eb

5 years agoImprove inefficiency 70/195870/2
Deokhyun Kim [Wed, 19 Dec 2018 05:02:48 +0000 (14:02 +0900)]
Improve inefficiency

Change-Id: Icd2b33c68d384680e24eec64de9256efb60c1084
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
5 years agoFix dlog format error 81/195681/2 accepted/tizen/unified/20181218.063056 submit/tizen/20181217.091427
DoHyun Pyun [Mon, 17 Dec 2018 08:04:48 +0000 (17:04 +0900)]
Fix dlog format error

Change-Id: I1c1fcaf6f78e4a0946c86adbdc456b6439f5e395
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoCorrect the privilege check logic for MTU size APIs 64/195364/1
DoHyun Pyun [Thu, 13 Dec 2018 01:43:58 +0000 (10:43 +0900)]
Correct the privilege check logic for MTU size APIs

Change-Id: I14b3e825cfb04691efed9c3fea847d7dfe59d82b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoModify dbus policies 21/194121/2 accepted/tizen/unified/20181210.152220 submit/tizen/20181210.003120
Wootak Jung [Thu, 29 Nov 2018 07:30:43 +0000 (16:30 +0900)]
Modify dbus policies

- Remove org.projectx.bt_event policy
- Apply default deny for org.projectx.bluetooth.share
- Add send_member for org.tizen.csd.Call.Instance

Change-Id: Ia50f24d807b0f180bcd74f02886f28cc57474d5e