platform/core/connectivity/bluetooth-frwk.git
4 years agoApply send_type="method_call" to dbus default deny 97/236097/1
Deokhyun Kim [Fri, 29 May 2020 05:35:14 +0000 (14:35 +0900)]
Apply send_type="method_call" to dbus default deny

Change-Id: I147fd51dff0691b8ed4629d86a3dcb5410e5589d
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoUse g_strdup to avoid double free 96/236096/1
Deokhyun Kim [Thu, 11 Jun 2020 09:18:59 +0000 (18:18 +0900)]
Use g_strdup to avoid double free

Change-Id: If591f112b1deb63a6c7433e6eda646ccef3696a9
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoFix: Handle the duplicated gatt descriptor 44/235944/1 submit/tizen/20200611.012128 submit/tizen/20200612.041013
injun.yang [Wed, 10 Jun 2020 00:22:45 +0000 (09:22 +0900)]
Fix: Handle the duplicated gatt descriptor

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

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

[Problem] Duplicated gatt event occured for a same uuid.
[Cause & Measure] descriptor duplicated on list. Check the path before adding it.
[Checking Method] Service browsing

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

Change-Id: I897a7a6d4cebd06162159222ed3606b3fa4f5c64
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoRemove __INTEGRATE_GATT_INFO__ feature 99/235899/3
Wootak Jung [Thu, 11 Jun 2020 01:09:28 +0000 (10:09 +0900)]
Remove __INTEGRATE_GATT_INFO__ feature

Easy Setup scenario not supported

Change-Id: Ie9e19de45f5b551de32561d74c865b44c5ceeab0
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoFix bt-service crash issue on testhub 94/235894/1
Wootak Jung [Thu, 11 Jun 2020 00:24:11 +0000 (09:24 +0900)]
Fix bt-service crash issue on testhub

user_data will be freed in _bt_free_info_from_invocation_list

Change-Id: I43b84fd007ae7786d6b14140109a969736a04059
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoMerge "Implement get_att_mtu logic in hal gatt client" into tizen accepted/tizen/unified/20200610.015607 submit/tizen/20200609.024649
Pyun DoHyun [Tue, 9 Jun 2020 02:34:22 +0000 (02:34 +0000)]
Merge "Implement get_att_mtu logic in hal gatt client" into tizen

4 years agoImplement get_att_mtu logic in hal gatt client 92/235592/1
Wootak Jung [Mon, 8 Jun 2020 02:44:32 +0000 (11:44 +0900)]
Implement get_att_mtu logic in hal gatt client

Change-Id: I8013154244497fe471fc6ce6ba63b2495c7b16d4
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoDisallow HFP multi connection 88/235388/1
Sangki Park [Thu, 21 May 2020 07:11:29 +0000 (16:11 +0900)]
Disallow HFP multi connection

Change-Id: I56e07cd917601a4ea486026389fd1f99827edf84
Signed-off-by: Sangki Park <sangki79.park@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoApply memory limit to 30M and recovery logic 73/235373/1
Deokhyun Kim [Tue, 2 Jun 2020 06:33:47 +0000 (15:33 +0900)]
Apply memory limit to 30M and recovery logic

 - Restart bt-service by SIGKILL even if mem usage exceeds 30M
 - Recover bt even if bt has been activated without bt-service

Change-Id: Ib325fd770c85f8545324674b0b77dd07be0a8604
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoFix mem leak 71/235371/1
Deokhyun Kim [Tue, 2 Jun 2020 10:47:15 +0000 (19:47 +0900)]
Fix mem leak

Change-Id: I3da1dfa1b14811b00d82afaa5880173fd03edd49
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoFix human error 66/235366/1
injun.yang [Fri, 29 May 2020 04:38:05 +0000 (13:38 +0900)]
Fix human error

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

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

[Problem]
[Cause & Measure]
[Checking Method]

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

Change-Id: I0d27b3fd2a583e807c5c2076f42290271a04b3ac
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoFix the memory leak 64/235364/1
injun.yang [Fri, 29 May 2020 04:19:23 +0000 (13:19 +0900)]
Fix the memory leak

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

[Issue#] P200528-00621
[Request] Internal
[Occurrence Version] N/A

[Problem] memory leak
[Cause & Measure] leak
[Checking Method] basic test

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

Change-Id: I04a8bb10165a908042e66d86fc2307ac614f0cc7
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoApply headset connection logic. 63/235363/1
Deokhyun Kim [Thu, 28 May 2020 09:30:53 +0000 (18:30 +0900)]
Apply headset connection logic.

[Model] Noblesse
[BinType] AP
[Customer] OPEN

[Issue#] P200528-02767
[Request] PLM
[Occurrence Version] ATE6

[Problem] A2DP is not connected when connecting to carkit. HF is connected only.
[Cause & Measure] Carkit does not connect A2DP
[Checking Method] Apply headset connection logic. If carkit does not connect
  A2DP for 3 seconds after HFP is connected, then try to connect A2DP.

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

Change-Id: Id37522dece69a5efa0b60f9c1a9d7e764f05456d
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoRemove bt-core dbus retry count, and change timeout from 2S to 10S 49/235349/1
Deokhyun Kim [Wed, 27 May 2020 10:14:05 +0000 (19:14 +0900)]
Remove bt-core dbus retry count, and change timeout from 2S to 10S

Change-Id: Id99aa3904a6a26d5acd88b8e021070cc9128e169
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoSimplify the logic to manage invocation list 48/235348/1
Deokhyun Kim [Tue, 26 May 2020 09:23:47 +0000 (18:23 +0900)]
Simplify the logic to manage invocation list

Change-Id: Ic7df672381bd027f977e4e0f0306d59381f58654
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoFix glib error 43/235343/1
injun.yang [Tue, 2 Jun 2020 06:29:32 +0000 (15:29 +0900)]
Fix glib error

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

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

[Problem] gvairant type is wrong
[Cause & Measure] change the type
[Checking Method]

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

Change-Id: I10960fa5e65b812318282e67f1f4ddf8ba488183
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoFix the memory leak 42/235342/1
injun.yang [Tue, 2 Jun 2020 04:56:47 +0000 (13:56 +0900)]
Fix the memory leak

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

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

[Problem] memory leak on gatt connection
[Cause & Measure] release memory
[Checking Method]

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

Change-Id: Id1268133170c202d2342f076d8302140c2e5ef0e
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoFix the svace issue - MEMORY LEAK 20/235320/1 accepted/tizen/unified/20200605.020512 submit/tizen/20200604.003952
DoHyun Pyun [Wed, 3 Jun 2020 23:53:15 +0000 (08:53 +0900)]
Fix the svace issue - MEMORY LEAK

Change-Id: Id407c2e5d9c6925f24198da9359ec3fdd54be8bc
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd converting function to bt error from oal status 60/234360/4
Wootak Jung [Tue, 26 May 2020 01:25:57 +0000 (10:25 +0900)]
Add converting function to bt error from oal status

Change-Id: Idab6e37fdca38d00254fb7b82d5fa7ec3d79594b
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoApply LE OOB pairing related patchsets: 03/234703/2
Wootak Jung [Thu, 28 May 2020 06:00:38 +0000 (15:00 +0900)]
Apply LE OOB pairing related patchsets:

1. Fix: LE OOB pairing failed
2. Keep LE oob data to reduce NFC OOB pairing failure
3. Move the poistion to set OOB data with random address
4. Fix: LE OOB pairing fail after Flight mode

Change-Id: I096a25e267dd675bb72e9f0f3436868894d4638f
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoHandling G_IO_STATUS_AGAIN for rfcomm client 75/234275/2 accepted/tizen/unified/20200529.124350 submit/tizen/20200527.022320
injun.yang [Wed, 20 May 2020 09:28:32 +0000 (18:28 +0900)]
Handling G_IO_STATUS_AGAIN for rfcomm client

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

[Issue#] P200520-00225
[Request] Internal
[Occurrence Version] N/A

[Problem] G_IO_STATUS_AGAIN repeated
[Cause & Measure] if G_IO_STATUS_AGAIN repeated then close socket
[Checking Method] n/a

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

Change-Id: I11d4218e6a3c75136bd792dae8edd05e5dd00841
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoAdd BTFW name to permanent logs 74/234274/2
Deokhyun Kim [Tue, 19 May 2020 06:14:59 +0000 (15:14 +0900)]
Add BTFW name to permanent logs

Change-Id: I32f83dc6525b6f32ec9f3f7a938fa463eb49eebd
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoFix rfcomm disconnected event not occured issue 20/234020/1
Wootak Jung [Thu, 21 May 2020 06:20:45 +0000 (15:20 +0900)]
Fix rfcomm disconnected event not occured issue

In case rfcomm disconnect operation is done on server side,
disconnected event is not occured on client side because
registration connection and unregistration connection are
different.

If shared connection was in used for registration, shared
connection also should be used for unregistration. Otherwise,
each owner name will be different.

For example,
Owner name of shared connection - :1.219
Owner name of private connection - :1.218

Change-Id: I44a08fda3618f94e674ab09fb189181e720b9226
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoIntegrate list of client/server info to conn info list 72/233872/2
Wootak Jung [Wed, 20 May 2020 01:16:35 +0000 (10:16 +0900)]
Integrate list of client/server info to conn info list

Change-Id: I999a6ab8d82d1d5908315f6d296f78a28471ea29
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoStart enable timer when enabling adapter 59/233459/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20200522.160129 accepted/tizen/5.5/unified/wearable/hotfix/20201027.114814 submit/tizen_5.5/20200520.040942 submit/tizen_5.5_wearable_hotfix/20201026.184303
Wootak Jung [Fri, 15 May 2020 02:13:55 +0000 (11:13 +0900)]
Start enable timer when enabling adapter

Change-Id: Id6ed4665f57ec8b4578935de6b4f73b1956ee6c5
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoNot retry bonding even though bond fails 27/233327/1
Deokhyun Kim [Thu, 23 Apr 2020 04:39:57 +0000 (13:39 +0900)]
Not retry bonding even though bond fails

Change-Id: I4060d2d9d838951f222107e5c26689ea4924d992
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoSend remote address when launching bt syspopup 24/233324/2
Deokhyun Kim [Thu, 7 May 2020 01:00:08 +0000 (10:00 +0900)]
Send remote address when launching bt syspopup

[Model] Noblesse
[BinType] AP
[Customer] OPEN

[Issue#] P200506-04378
[Request] PLM
[Occurrence Version] ATD9

[Problem] OOB pairing popup disappears right after launching
[Cause & Measure] OOB popup is terminated due to the repetation of BLE
  connection that is not related for the real connection
  Terminate OOB popup only for the connection event for the real connection.
[Checking Method]

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

Change-Id: I7b9375a4549dfe17e0a6aa2cf0244ce272fef7cb
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoFix : Unable to get HFP AG connection status 23/233323/1
injun.yang [Tue, 12 May 2020 01:21:17 +0000 (10:21 +0900)]
Fix : Unable to get HFP AG connection status

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

[Issue#] P200508-03915
[Request] Internal
[Occurrence Version] N/A

[Problem] AG connection status is always false.
[Cause & Measure] Not implemented.
[Checking Method] Auto switching on GM

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

Change-Id: I9b2b25124200f7cccdde9717881e6d87a3fc2c16

4 years agoMerge "Fix removed event not occur issue while removing each service" into tizen
Pyun DoHyun [Tue, 12 May 2020 01:51:43 +0000 (01:51 +0000)]
Merge "Fix removed event not occur issue while removing each service" into tizen

4 years agoMerge "Fix ASAN build error" into tizen
Pyun DoHyun [Tue, 12 May 2020 01:51:40 +0000 (01:51 +0000)]
Merge "Fix ASAN build error" into tizen

4 years agoFix ASAN build error 49/233049/3
DoHyun Pyun [Mon, 11 May 2020 23:00:22 +0000 (08:00 +0900)]
Fix ASAN build error

This patchset resolves 'stringop-overflow' and
'maybe-uninitialized' build error for ASAN

Change-Id: I8fafd8dec17e9df1eae7c220f8984754e20327a2
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix removed event not occur issue while removing each service 10/233010/2
Wootak Jung [Mon, 11 May 2020 08:12:14 +0000 (17:12 +0900)]
Fix removed event not occur issue while removing each service

InterfacesRemoved signal should be sent to "/com/%d" not "/".
Fix wrong interface name to DBus.ObjectManager from Dbus.Objectmanager

Change-Id: I14b1184b66229160c57908c4a8b7ccf2b904a5d0
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoRemove instance_id check logic in adding conn info function 54/232954/1
Wootak Jung [Fri, 8 May 2020 02:01:55 +0000 (11:01 +0900)]
Remove instance_id check logic in adding conn info function

If empty gatt connected event is occured, do not check instance_id
in adding connection info in gattc list

Change-Id: I556a817013f734b867de14409571f5910f8f82d8

4 years agoFix gatt write response not occur issue 24/232624/1
Wootak Jung [Thu, 7 May 2020 01:10:06 +0000 (10:10 +0900)]
Fix gatt write response not occur issue

Change-Id: I0cc327771908030e5c3f529cc525c76f5d25fef8
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoRemove privacy log 99/232499/1 accepted/tizen/unified/20200508.045025 submit/tizen/20200507.063043
injun.yang [Fri, 24 Apr 2020 08:00:28 +0000 (17:00 +0900)]
Remove privacy log

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

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

[Problem]
[Cause & Measure]
[Checking Method]

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

Change-Id: I80b1553606b62bff0dbd042a5a9cb9575a92e861
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoCode clean up 97/232497/1
injun.yang [Fri, 6 Mar 2020 05:23:31 +0000 (14:23 +0900)]
Code clean up

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

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

[Problem] redundatn debug message
[Cause & Measure] code clean up
[Checking Method] n/a

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

Change-Id: I71c0f93c9cf917baa354a9920749ca69dfe2c1d7
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoMerge "Fix: advertisinog stopped suddenly" into tizen submit/tizen/20200506.041322
Pyun DoHyun [Wed, 6 May 2020 03:46:31 +0000 (03:46 +0000)]
Merge "Fix: advertisinog stopped suddenly" into tizen

4 years agoMerge "Remove the duplicated service from gatt_list_service" into tizen
Pyun DoHyun [Wed, 6 May 2020 03:46:27 +0000 (03:46 +0000)]
Merge "Remove the duplicated service from gatt_list_service" into tizen

4 years agoMerge "Fix gatt connected event not occured issue" into tizen
Pyun DoHyun [Wed, 6 May 2020 03:45:58 +0000 (03:45 +0000)]
Merge "Fix gatt connected event not occured issue" into tizen

4 years agoFix: advertisinog stopped suddenly 94/232494/1
injun.yang [Wed, 6 May 2020 01:16:50 +0000 (10:16 +0900)]
Fix: advertisinog stopped suddenly

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

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

[Problem] Advertising stopped suddenly
[Cause & Measure] Comparison code is wrong.
[Checking Method] n/a

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

Change-Id: Ifac82672ed7c178e496e775160b5ec7704f481b5
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoRemove the duplicated service from gatt_list_service 93/232493/1
injun.yang [Mon, 4 May 2020 11:35:57 +0000 (20:35 +0900)]
Remove the duplicated service from gatt_list_service

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

[Issue#] P200428-01509
[Request] Internal
[Occurrence Version] N/A

[Problem] bt-service access to the removed GATT service to get service information
[Cause & Measure] Whenever client app registered, duplicated service added to gatt_list_serice.
 Eventhough GATT service removed from server, all of the duplicated service is not removed from the list.
 So gatt_list_service should have a unique service for each device.
[Checking Method] n/a

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

Change-Id: If7898b33a572f4b446b04b5d788c6360c3e8fbab
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoFix gatt connected event not occured issue 18/232218/2
Wootak Jung [Wed, 6 May 2020 01:44:05 +0000 (10:44 +0900)]
Fix gatt connected event not occured issue

gatt connected event should be occured even if no gatt instance

Change-Id: I4ec975acde7113e7a4f0aa3d4cf97d26dc992dcf
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoFix bt-service crash issue in testhub 69/232469/1
DoHyun Pyun [Tue, 5 May 2020 22:48:20 +0000 (07:48 +0900)]
Fix bt-service crash issue in testhub

Double free problem is occured into le scanner app termination
function. So this patchset adds the condition to fix it.

Change-Id: Ie76ed72ce6333bd5a0aea84dd9756b7eb4edb042
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix the svace issue - FALL_THROUGH 50/232050/1 accepted/tizen/unified/20200429.032853 submit/tizen/20200428.021553
DoHyun Pyun [Tue, 28 Apr 2020 02:04:11 +0000 (11:04 +0900)]
Fix the svace issue - FALL_THROUGH

Change-Id: I5f64558ff89ba1a66806758a2e14a74646c725e4
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAVRPC position notify problem 07/232007/1
Sangki Park [Mon, 27 Apr 2020 08:35:39 +0000 (17:35 +0900)]
AVRPC position notify problem

[Model] Nobel
[BinType] AP
[Customer] ALL

[Issue#] PLM
[Request] P200424-06552
[Occurrence Version] N/A

[Problem] Bt-frwk send same song position every seconds
[Cause & Measure] wrong operation
[Checking Method] start music play

[Team] Bluetooth
[Developer] Sangki Park
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I7776d51b01d9e45d01f9a2569dd2f1d153d01a5c

4 years agoAdd data type to hid_device_reply_to_report 10/231510/1
Deokhyun Kim [Tue, 21 Apr 2020 07:08:12 +0000 (16:08 +0900)]
Add data type to hid_device_reply_to_report

Change-Id: I43b4ade45c96be75575b11406db1b680cb3d6c6d
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoFix : log twisted regardless time sequence 09/231509/1
injun.yang [Mon, 2 Mar 2020 02:01:58 +0000 (11:01 +0900)]
Fix : log twisted regardless time sequence

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

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

[Problem] log sequence wrong
[Cause & Measure] Modify logging method
[Checking Method] n/a

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

Change-Id: I76876630d4b61fa28a6c69a7afc1fadfe180429b
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoMove profile connected devices logic to hal 57/231457/2
Wootak Jung [Wed, 22 Apr 2020 05:09:55 +0000 (14:09 +0900)]
Move profile connected devices logic to hal

Change-Id: I518eb49613eb5494b99629eeed1fdbe42716561d
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoMerge "Fix the incorrect Tx / Rx data size issue" into tizen accepted/tizen/unified/20200423.054511 submit/tizen/20200422.010605
Pyun DoHyun [Wed, 22 Apr 2020 00:55:05 +0000 (00:55 +0000)]
Merge "Fix the incorrect Tx / Rx data size issue" into tizen

4 years agoFix the incorrect Tx / Rx data size issue 84/231284/2
DoHyun Pyun [Tue, 21 Apr 2020 04:07:31 +0000 (13:07 +0900)]
Fix the incorrect Tx / Rx data size issue

Change-Id: I0974085995400365bd27569d0f9c82a218f59de9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Return ALREADY_CONNECT ERROR if device is already paired" into tizen
Pyun DoHyun [Tue, 21 Apr 2020 01:18:29 +0000 (01:18 +0000)]
Merge "Return ALREADY_CONNECT ERROR if device is already paired" into tizen

4 years agoFix GATT service changed event not coming issue 82/231182/1
Wootak Jung [Mon, 20 Apr 2020 00:56:19 +0000 (09:56 +0900)]
Fix GATT service changed event not coming issue

Change-Id: I25a31503e7a511756c39dbba31494b933fcd2e0c

4 years agoReturn ALREADY_CONNECT ERROR if device is already paired 64/230864/3
himanshu [Wed, 15 Apr 2020 08:36:42 +0000 (14:06 +0530)]
Return ALREADY_CONNECT ERROR if device is already paired

Change-Id: I1ff5ec86191059d740cba14b19f2eef0e42ff8a6
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoFix wrong index usage issue 35/230935/1
Wootak Jung [Thu, 16 Apr 2020 05:54:15 +0000 (14:54 +0900)]
Fix wrong index usage issue

service removed event is not occured when server app is terminated
in case array index of numapps is mismatched with instance id

Change-Id: Ieaac786792f1adf01d1d1e45e78d31ddcca03f1c

4 years agoReturn NOT_PAIRED error in case the device is not paired 51/230751/1
Deokhyun Kim [Fri, 10 Apr 2020 08:34:38 +0000 (17:34 +0900)]
Return NOT_PAIRED error in case the device is not paired

Change-Id: Iddcf19eab8854f12d7ad6981025c229d740e91d4
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoNot try to unbond in case the device is not paired 50/230750/1
Deokhyun Kim [Fri, 10 Apr 2020 08:00:57 +0000 (17:00 +0900)]
Not try to unbond in case the device is not paired

Change-Id: Ifd81edf481569e000708c25332d52141d2f826c0
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoAdd audio type converting function to debug 65/230465/2 accepted/tizen/unified/20200414.135759 submit/tizen/20200410.064409
Wootak Jung [Thu, 9 Apr 2020 08:20:27 +0000 (17:20 +0900)]
Add audio type converting function to debug

Change-Id: I6facec76215195842b97d5175da54f57ab03bf3a
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoMerge "Update the RFCOMM client connection information" into tizen
Pyun DoHyun [Fri, 10 Apr 2020 01:09:54 +0000 (01:09 +0000)]
Merge "Update the RFCOMM client connection information" into tizen

4 years agoUpdate the RFCOMM client connection information 52/230152/3
DoHyun Pyun [Wed, 8 Apr 2020 07:07:29 +0000 (16:07 +0900)]
Update the RFCOMM client connection information

Change-Id: Ief091e60d094bc277daad306f3cce906a1607931
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix : profile UUID mismatch 38/230238/1
Sangki Park [Fri, 3 Apr 2020 01:58:02 +0000 (10:58 +0900)]
Fix : profile UUID mismatch

[Model] ALL
[BinType] AP
[Customer] ALL

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

[Problem] N/A
[Cause & Measure] N/A
[Checking Method] N/A

[Team] Bluetooth
[Developer] Sangki Park
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I0cbad849f37762b89ea156e0b25f925562dce4a7

4 years agoFix : connection replace failure 37/230237/1
Sangki Park [Wed, 8 Apr 2020 10:36:02 +0000 (19:36 +0900)]
Fix : connection replace failure

[Model] ALL
[BinType] AP
[Customer] ALL

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

[Problem] connection replace failure
[Cause & Measure] Fixed
[Checking Method]
 (Pre-condition) Connect HFP and A2DP with Headset_A
  - try to connect to Headset_B
  - expected : HFP and A2DP should be connected with Headset_B
  - problem : HFP connection with Headset_B , A2DP connection with Headset_A

[Team] Bluetooth
[Developer] Sangki Park
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I5f16c67428dce8b68fd960f85e64456ae3e90d8a

4 years agoFix osp_server unregister issue 23/230123/2
Wootak Jung [Wed, 8 Apr 2020 05:48:49 +0000 (14:48 +0900)]
Fix osp_server unregister issue

osp_server is not removed if app terminated

issue scenario:
rfcomm server create & listen > connected > server app termination
> new rfcomm server create & listen > try to connect > failed

Change-Id: I573bae5bafb94959cf5799c6be0f51b84d9576b3
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoAdd HfBatteryLevelChanged event 07/230007/3 accepted/tizen/unified/20200409.083629 submit/tizen/20200408.035538
Deokhyun Kim [Tue, 7 Apr 2020 05:37:31 +0000 (14:37 +0900)]
Add HfBatteryLevelChanged event

Change-Id: I7daabc5f5f54215a3bf42910363ae0c2bee0981f
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoIncrease the session timeout value 81/229881/2
DoHyun Pyun [Mon, 6 Apr 2020 07:46:06 +0000 (16:46 +0900)]
Increase the session timeout value

The battery monitor increases the duration to read
information from 3 minutes to 10 minutes. So the
timeout value also need to increase.

Change-Id: Ibf9d62cbf7ba637c80f389c63faf07298ef244eb
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoUpdate the RFCOMM server connection information 43/229843/3
DoHyun Pyun [Mon, 6 Apr 2020 02:44:42 +0000 (11:44 +0900)]
Update the RFCOMM server connection information

When we use the RFCOMM direct method, the server
socket's connection is requested to bt-api direclty.
So bt-service does not know the information.

Change-Id: I3f541ad7a08d5d580783aa84b4c48760e0a0a198
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd GVariant unreference logic 17/229817/1
Wootak Jung [Mon, 6 Apr 2020 00:17:12 +0000 (09:17 +0900)]
Add GVariant unreference logic

Change-Id: I7c5ceeef0114915c4140ae13a2527f21fc27c672

4 years agoFix the crash 00/229700/1 accepted/tizen/unified/20200406.133118 submit/tizen/20200405.220144
injun.yang [Fri, 3 Apr 2020 02:34:10 +0000 (11:34 +0900)]
Fix the crash

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

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

[Problem]
[Cause & Measure]
[Checking Method]

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

Change-Id: I2801a6b168701151c7755be549977cac3439f410
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd the session timer to handle the exception case 95/229695/1
DoHyun Pyun [Fri, 3 Apr 2020 02:12:52 +0000 (11:12 +0900)]
Add the session timer to handle the exception case

After starting session if 'data read function' is not
called, the session's data is continously increasing.
So it is possible to excced the limit of the data size.

Change-Id: I3a9d3b9ffcc43f78b28f9abc492347de0ecce2cb
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Fix the memory leak in app battery info" into tizen
Pyun DoHyun [Fri, 3 Apr 2020 01:18:40 +0000 (01:18 +0000)]
Merge "Fix the memory leak in app battery info" into tizen

4 years agoFix the memory leak in app battery info 88/229688/1
DoHyun Pyun [Fri, 3 Apr 2020 00:35:25 +0000 (09:35 +0900)]
Fix the memory leak in app battery info

Change-Id: I7feadb193a18bbaa932d7e48f0373715d4eef78e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "NULL initialization to prevent invalid mem access" into tizen
Wootak Jung [Thu, 2 Apr 2020 06:22:03 +0000 (06:22 +0000)]
Merge "NULL initialization to prevent invalid mem access" into tizen

4 years agoNULL initialization to prevent invalid mem access 88/229588/1
Deokhyun Kim [Thu, 2 Apr 2020 06:09:43 +0000 (15:09 +0900)]
NULL initialization to prevent invalid mem access

Change-Id: I017703a931ebf7439edaf944221370091b87afb1
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
4 years agoFix bt-service crash issue 36/229536/4 accepted/tizen/unified/20200403.034541 submit/tizen/20200402.035805
DoHyun Pyun [Wed, 1 Apr 2020 23:01:10 +0000 (08:01 +0900)]
Fix bt-service crash issue

There are some cases that current_session_data is
NULL. This patchset adds the prevent code for
crashing issue.

Change-Id: I7931b35f2202f54cba48ab2c826d0785987f18e7
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd GATT data batching 62/229262/1 accepted/tizen/unified/20200402.155604 submit/tizen/20200401.080249
Deokhyun Kim [Mon, 13 Jan 2020 11:29:57 +0000 (20:29 +0900)]
Add GATT data batching

Change-Id: Ia8219206cf109e0c177fbfa3a2527fd95258641e

4 years agoChange gatt_servers to gslist from array 35/229135/4
Wootak Jung [Fri, 27 Mar 2020 02:02:32 +0000 (11:02 +0900)]
Change gatt_servers to gslist from array

Change-Id: I1bd03900a0db5667901ad38b3e526a2d8dbe2b4e

4 years agoMerge "Use milisec unit instead of sec for power duration" into tizen accepted/tizen/5.5/unified/20200331.180229 submit/tizen_5.5/20200330.044545 submit/tizen_5.5/20200331.041325
Pyun DoHyun [Mon, 30 Mar 2020 02:37:16 +0000 (02:37 +0000)]
Merge "Use milisec unit instead of sec for power duration" into tizen

4 years agoMerge "Invoke HAL_DISCOVERY_STATE_STOPPED event once" into tizen
Pyun DoHyun [Mon, 30 Mar 2020 02:37:13 +0000 (02:37 +0000)]
Merge "Invoke HAL_DISCOVERY_STATE_STOPPED event once" into tizen

4 years agoMerge "code clean up" into tizen
Pyun DoHyun [Mon, 30 Mar 2020 02:28:06 +0000 (02:28 +0000)]
Merge "code clean up" into tizen

4 years agoMerge "Specify the sender(org.bluez or org.bluez.obex) on subscribe to receive only...
Pyun DoHyun [Mon, 30 Mar 2020 02:28:04 +0000 (02:28 +0000)]
Merge "Specify the sender(org.bluez or org.bluez.obex) on subscribe to receive only necessary PropertiesChanged signals." into tizen

4 years agoMerge "Specify the sender(org.bluez) on subscribe to receive only necessary Propertie...
Pyun DoHyun [Mon, 30 Mar 2020 02:28:01 +0000 (02:28 +0000)]
Merge "Specify the sender(org.bluez) on subscribe to receive only necessary PropertiesChanged signals." into tizen

4 years agoMerge "Fix : Adv malfunction on multiple LE connection" into tizen
Pyun DoHyun [Mon, 30 Mar 2020 02:27:58 +0000 (02:27 +0000)]
Merge "Fix : Adv malfunction on multiple LE connection" into tizen

4 years agoMerge "Code clean up" into tizen
Pyun DoHyun [Mon, 30 Mar 2020 02:27:54 +0000 (02:27 +0000)]
Merge "Code clean up" into tizen

4 years agocode clean up 21/229121/1
injun.yang [Tue, 17 Mar 2020 05:24:44 +0000 (14:24 +0900)]
code clean up

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

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

[Problem]
[Cause & Measure]
[Checking Method]

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

Change-Id: If39a447c4bc75ca4053c6b316743138c0a92fb16

4 years agoSpecify the sender(org.bluez or org.bluez.obex) on subscribe to receive only necessar... 20/229120/1
Deokhyun Kim [Wed, 25 Mar 2020 08:06:48 +0000 (17:06 +0900)]
Specify the sender(org.bluez or org.bluez.obex) on subscribe to receive only necessary PropertiesChanged signals.

Change-Id: I2ccbf14553bd5bb643d393056f0fd757e9a9bbed
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoSpecify the sender(org.bluez) on subscribe to receive only necessary PropertiesChange... 19/229119/1
Deokhyun Kim [Wed, 25 Mar 2020 05:23:44 +0000 (14:23 +0900)]
Specify the sender(org.bluez) on subscribe to receive only necessary PropertiesChanged signals.

Change-Id: I1b8c5be7d0555f285ebac3dbc97ed8cc0897281d
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoFix : Adv malfunction on multiple LE connection 18/229118/1
injun.yang [Wed, 25 Mar 2020 07:03:00 +0000 (16:03 +0900)]
Fix : Adv malfunction on multiple LE connection

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

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

[Problem] When multiple LE connection existed, unable to connect iOS GM.
[Cause & Measure] After le disconnection, Kernel start standard advertising.
 It make ANCS connection again.
[Checking Method] Connect with LE device > ANCS connection > GM launch >
 weconn start role switching >  ANCS connected again

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

Change-Id: Iea238ebb1a08a2313c49f418bcc4c9abb04956e3

4 years agoCode clean up 17/229117/1
Wootak Jung [Mon, 30 Mar 2020 02:12:55 +0000 (11:12 +0900)]
Code clean up

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

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

[Problem]
[Cause & Measure]
[Checking Method]

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

Change-Id: I357ffd7e4932832809c72633757bfb4fea193df0

4 years agoUse milisec unit instead of sec for power duration 10/229110/1
DoHyun Pyun [Mon, 30 Mar 2020 01:55:15 +0000 (10:55 +0900)]
Use milisec unit instead of sec for power duration

Change-Id: I7b927116fe0173d9d2affe2d90da204ee360364b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoInvoke HAL_DISCOVERY_STATE_STOPPED event once 04/229104/2
DoHyun Pyun [Mon, 30 Mar 2020 00:55:06 +0000 (09:55 +0900)]
Invoke HAL_DISCOVERY_STATE_STOPPED event once

When the user calls the cancel discovery API, the
HAL_DISCOVERY_STATE_STOPPED event called twice.
This patchset resolves this issue.

Change-Id: Id7610da8209edf34a1205cced9fad1f18ee67c9f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoInclude the scan time for each app into battery info 30/228830/5
DoHyun Pyun [Wed, 25 Mar 2020 06:17:59 +0000 (15:17 +0900)]
Include the scan time for each app into battery info

Change-Id: Id34f800ca402b73958cc9bbd7e8856f71b4d62f4
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd the Rx / Tx / idle time in the battery monitor 29/228829/1
DoHyun Pyun [Tue, 24 Mar 2020 07:19:24 +0000 (16:19 +0900)]
Add the Rx / Tx / idle time in the battery monitor

Change-Id: I353a31a7fff7279e98bfb8f3c0d7c25985073ebc
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoModify the privilege for battry RX / TX function 94/228394/2
DoHyun Pyun [Sun, 22 Mar 2020 22:33:09 +0000 (07:33 +0900)]
Modify the privilege for battry RX / TX function

Change-Id: I6a266850321e0a90cfeba0905f0a2d6773ed67e1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoUse the local state for battery monitor state 93/228393/5
DoHyun Pyun [Sun, 22 Mar 2020 23:20:17 +0000 (08:20 +0900)]
Use the local state for battery monitor state

Change-Id: I0fe1d00eed7d030f5af836aa0b0018439e7422c0
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Fix wrong av disconnected event sending issue" into tizen submit/tizen/20200323.004911
Pyun DoHyun [Mon, 23 Mar 2020 03:42:46 +0000 (03:42 +0000)]
Merge "Fix wrong av disconnected event sending issue" into tizen

4 years agoMerge "Fix conn_id conflict issue between client and server hal" into tizen
Pyun DoHyun [Mon, 23 Mar 2020 03:42:44 +0000 (03:42 +0000)]
Merge "Fix conn_id conflict issue between client and server hal" into tizen

4 years agoFix wrong av disconnected event sending issue 06/228406/1
Wootak Jung [Mon, 16 Mar 2020 03:39:31 +0000 (12:39 +0900)]
Fix wrong av disconnected event sending issue

Change-Id: I6606d9814262c2f98ee5accf08b3cd84e17aeb2c

4 years agoFix conn_id conflict issue between client and server hal 02/228402/1
Wootak Jung [Thu, 19 Mar 2020 07:43:34 +0000 (16:43 +0900)]
Fix conn_id conflict issue between client and server hal

Change-Id: I73ee4b3675a0a4c4215c3247f3ebdd0a43fab0b9

4 years agoFix the coverity issue (Resource leak) 96/228396/2 accepted/tizen/5.5/unified/20200323.173147 submit/tizen_5.5/20200323.010455
DoHyun Pyun [Mon, 23 Mar 2020 00:15:22 +0000 (09:15 +0900)]
Fix the coverity issue (Resource leak)

Change-Id: I94e04b563a9fa7af11e0c6c49ff115f987d9270e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoModify RFCOMM data recording logic for battery monitor 52/226952/9
Sudipto [Fri, 6 Mar 2020 12:59:31 +0000 (18:29 +0530)]
Modify RFCOMM data recording logic for battery monitor

Change-Id: Ibfead518de5880ea5804e05d95605ffa016fa36f
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years agoFix list_gatt_info cleanup issue 82/228082/1
Wootak Jung [Thu, 19 Mar 2020 03:08:28 +0000 (12:08 +0900)]
Fix list_gatt_info cleanup issue

list_gatt_info should be removed in case of GATT SERVER DISCONNECTED
as well as GATT CLIENT DISCONNECTED

Change-Id: Ib8f7673716d26ac2733d54ebd24ffaca5438a92b