platform/core/connectivity/bluetooth-frwk.git
4 years agoFix the crash in CONTROLLER_ERROR event 34/227834/1
DoHyun Pyun [Mon, 16 Mar 2020 23:42:40 +0000 (08:42 +0900)]
Fix the crash in CONTROLLER_ERROR event

Change-Id: I859ef4bb74a2d36d3af7dafa6bd68c9506ccdc2b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoRemove unnecessary log 96/227596/1 submit/tizen/20200316.013847 submit/tizen_5.5/20200316.013922
DoHyun Pyun [Fri, 13 Mar 2020 04:52:38 +0000 (13:52 +0900)]
Remove unnecessary log

Change-Id: Ia3c927d89f6322e4a9200f6a57de04ff9940c308
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix the rfcomm server's callback issue 98/227498/6
DoHyun Pyun [Thu, 12 Mar 2020 07:24:21 +0000 (16:24 +0900)]
Fix the rfcomm server's callback issue

Because the last 1 byte of the path is missed,
bt-api did not find the server information.

Change-Id: Ifc9564736763b975d38fa5f7a750109c7a4f957b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoUse standard error code for ACL disconnection 29/227329/1
injun.yang [Wed, 11 Mar 2020 04:32:20 +0000 (13:32 +0900)]
Use standard error code for ACL disconnection

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

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

[Problem] Disconnection reason is not exact in bt-service
[Cause & Measure] Use standard error code in bt-service
[Checking Method] n/a

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

Change-Id: I8b3d36a9cc5cb67b087aa0585757f4863e9dd7d1

4 years agoAdd CONTROLLER_ERROR event on frwk 28/227328/1
Sangki Park [Tue, 10 Mar 2020 06:12:06 +0000 (15:12 +0900)]
Add CONTROLLER_ERROR event on frwk

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

[Issue#] N/A
[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: I0bee8fda427fd4a16a0de89c65f338ae422fd753

4 years agoFix 128-bit Servie UUID parsing issue 62/227262/1 accepted/tizen/unified/20200312.234412 submit/tizen/20200310.235006
Wootak Jung [Wed, 11 Mar 2020 04:31:01 +0000 (13:31 +0900)]
Fix 128-bit Servie UUID parsing issue

Change-Id: I96a53e0667f84d5136c6fc7c69631febd5657f4e

4 years agoFix the advertisement fail issue 52/227252/1 accepted/tizen/5.5/unified/20200312.234620 submit/tizen_5.5/20200311.040814
DoHyun Pyun [Wed, 11 Mar 2020 03:11:30 +0000 (12:11 +0900)]
Fix the advertisement fail issue

The comparision value for initial adv handle was wrong, this
patchset corrects the comparision value for adv handle.

Change-Id: I76abbec8972cdd6de2c8217620c0c95756a5b844
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoRemove cleanup logic before getting primary services 58/227158/1
Wootak Jung [Mon, 3 Feb 2020 08:43:04 +0000 (17:43 +0900)]
Remove cleanup logic before getting primary services

gatt list should not be freed while search result event is coming

Change-Id: I1630ddea38bdcb4bbfa32423d2d8565bb284ad64

4 years agoFix get_service_property timeout issue 56/227156/2
Wootak Jung [Wed, 5 Feb 2020 04:04:38 +0000 (13:04 +0900)]
Fix get_service_property timeout issue

Fix wrong memcmp logic

Change-Id: I1c3312c23af11dff218136843219e1530438dfba

4 years agoFix gatt client char value changed cb issue 42/227142/1
Wootak Jung [Tue, 10 Mar 2020 04:20:29 +0000 (13:20 +0900)]
Fix gatt client char value changed cb issue

gatt client char value changed cb setting failed on below scenario-
Server Connected > Add Thermometer Service(remote) > Client Create >
client char value changed cb > failed

Change-Id: Icf6dfeeeefb6fcc72c3bb82ee6eb0d88869af219

4 years agoFix : PSCAN is not disabled after ACL connected 29/227029/1
injun.yang [Mon, 9 Mar 2020 01:56:12 +0000 (10:56 +0900)]
Fix : PSCAN is not disabled after ACL connected

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

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

[Problem] pscan is not turned off after connected with remote device
[Cause & Measure] Kernel didn't control PSCAN since bt-service have request connectable mode to stack.
 So do not request connectable mode to handle pscan into kernel side.
[Checking Method] connect GM and check pscan status

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

Change-Id: Ia4252768f79661c3e6ec6243c0ebdd6a21b58fcc

4 years agoSupport the RPI3 target for TV profile 22/226722/1 accepted/tizen/unified/20200306.040253 submit/tizen/20200305.052643
DoHyun Pyun [Thu, 5 Mar 2020 05:21:05 +0000 (14:21 +0900)]
Support the RPI3 target for TV profile

We should support both RPI3 and XU3 target on TV
profile. For this, modify the logic to enable BT

Change-Id: Ice21987273438555519031e1f8b5bc61ab40ecb7
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Fix : GATT service changed event is not invoked" into tizen accepted/tizen/unified/20200305.123312 submit/tizen/20200304.063814
Pyun DoHyun [Wed, 4 Mar 2020 06:28:44 +0000 (06:28 +0000)]
Merge "Fix : GATT service changed event is not invoked" into tizen

4 years agoMerge "Handle service changed event" into tizen
Pyun DoHyun [Wed, 4 Mar 2020 06:28:41 +0000 (06:28 +0000)]
Merge "Handle service changed event" into tizen

4 years agoMerge "Remove server instance existence check logic in disconnected case" into tizen
Pyun DoHyun [Wed, 4 Mar 2020 06:28:38 +0000 (06:28 +0000)]
Merge "Remove server instance existence check logic in disconnected case" into tizen

4 years agoMerge "Fix server_instance not found issue" into tizen
Pyun DoHyun [Wed, 4 Mar 2020 06:28:35 +0000 (06:28 +0000)]
Merge "Fix server_instance not found issue" into tizen

4 years agoFix : GATT service changed event is not invoked 07/226607/1
injun.yang [Wed, 4 Mar 2020 02:40:42 +0000 (11:40 +0900)]
Fix : GATT service changed event is not invoked

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

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

[Problem] gatt service changed event is not invoked
[Cause & Measure] gatt connection status is not updated on GATT server role
[Checking Method] LE connected as slave (ANCS connection) > Launch iOG GM

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

Change-Id: I0721b59693d94869d16c272bc671d035f4b4fcc6

4 years agoHandle service changed event 06/226606/1
injun.yang [Thu, 6 Feb 2020 09:05:00 +0000 (18:05 +0900)]
Handle service changed event

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

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

[Problem] Before GATT connected, service changed event invoked.
[Cause & Measure] Ignore GattServiceAdded event before GATT connection completed.
[Checking Method] n/a

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

Change-Id: I830ba2f702b2a29d9ad381447855e54dd7c98881

4 years agoRemove server instance existence check logic in disconnected case 71/226571/1
Wootak Jung [Tue, 3 Mar 2020 06:50:52 +0000 (15:50 +0900)]
Remove server instance existence check logic in disconnected case

If stop-adv request is comming before disconnected, event if
server_instance is removed, gatt_client_info_list is not removed.

This issue causes that CONNECTED event is not occured on below scenario:
Start-Adv > Connected > [Stop-Adv > Disconnected] > Start-Adv > Connected
                       ([Disconnected > Stop-Adv] is no problem.)

In last connected step, server_instance and gatt_client_info_list are
exsiting. So, connected event is not delivered to service layer.

Change-Id: I940b3e0e6d75c6ad4315fcac40f1af6f3ef612ee

4 years agoFix server_instance not found issue 70/226570/1
Wootak Jung [Mon, 2 Mar 2020 04:32:06 +0000 (13:32 +0900)]
Fix server_instance not found issue

advertising will be failed if gatt client is registered in advance

Change-Id: I963623f6da9857aa774d9fde2e4a0446be223030

4 years agoFix addr_type not set issue on scan result cb 00/226100/1 accepted/tizen/unified/20200302.125816 submit/tizen/20200302.000010
Wootak Jung [Thu, 27 Feb 2020 01:12:06 +0000 (10:12 +0900)]
Fix addr_type not set issue on scan result cb

Change-Id: I995d151ed1c40eb27332e59f4bb3139f294f8107

4 years agoFix adv data mixed issue in case total length is under 31 99/226099/1
Wootak Jung [Tue, 25 Feb 2020 04:36:14 +0000 (13:36 +0900)]
Fix adv data mixed issue in case total length is under 31

Change-Id: I74d0fba65810c23c6ddc760513aed8619c101166

4 years agoFix the AVRCP path miss-matching problem 53/225953/1 submit/tizen/20200226.220348
DoHyun Pyun [Tue, 25 Feb 2020 22:52:24 +0000 (07:52 +0900)]
Fix the AVRCP path miss-matching problem

Change-Id: Ibb934dc88605e1066b700254c708c2b16be78ffa
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Move the volume changed event path from AVRCP to HEADSET" into tizen
Pyun DoHyun [Tue, 25 Feb 2020 01:57:25 +0000 (01:57 +0000)]
Merge "Move the volume changed event path from AVRCP to HEADSET" into tizen

4 years agoMerge "Fix Memory Leak: The default gatt-client is not freed" into tizen
Pyun DoHyun [Tue, 25 Feb 2020 01:57:05 +0000 (01:57 +0000)]
Merge "Fix Memory Leak: The default gatt-client is not freed" into tizen

4 years agoMerge "Fix Memory Leak: Incorrect deallocator used." into tizen
Pyun DoHyun [Tue, 25 Feb 2020 01:57:01 +0000 (01:57 +0000)]
Merge "Fix Memory Leak: Incorrect deallocator used." into tizen

4 years agoMerge "Fix Memory Leak: Memory not deallocated." into tizen
Pyun DoHyun [Tue, 25 Feb 2020 01:56:55 +0000 (01:56 +0000)]
Merge "Fix Memory Leak: Memory not deallocated." into tizen

4 years agoMerge "Fix memory Leak: Incorrect deallocator used" into tizen
Pyun DoHyun [Tue, 25 Feb 2020 01:56:52 +0000 (01:56 +0000)]
Merge "Fix memory Leak: Incorrect deallocator used" into tizen

4 years agoMerge "Fix: Memory Leak in HAL layer." into tizen
Pyun DoHyun [Tue, 25 Feb 2020 01:56:45 +0000 (01:56 +0000)]
Merge "Fix: Memory Leak in HAL layer." into tizen

4 years agoMerge "Set a readout notification of tts when AV connected" into tizen
Pyun DoHyun [Tue, 25 Feb 2020 01:56:29 +0000 (01:56 +0000)]
Merge "Set a readout notification of tts when AV connected" into tizen

4 years agoHandle gatt auto connection 24/225824/1
injun.yang [Mon, 24 Feb 2020 08:07:33 +0000 (17:07 +0900)]
Handle gatt auto connection

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

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

[Problem] Invoke dbus timeout error regardless gatt connection status
[Cause & Measure] Reply dbus request to application
[Checking Method] background gatt auto connection

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

Change-Id: Id409c86bd8cc8103e6c25305a5841d95a6243ce2

4 years agoMove the volume changed event path from AVRCP to HEADSET 20/225820/1
DoHyun Pyun [Mon, 24 Feb 2020 08:29:13 +0000 (17:29 +0900)]
Move the volume changed event path from AVRCP to HEADSET

Change-Id: Ideeef3a37674f0cd42cd38a2c1b62463d07a930f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix Memory Leak: The default gatt-client is not freed 81/225781/1
himanshu [Mon, 24 Feb 2020 09:32:51 +0000 (15:02 +0530)]
Fix Memory Leak: The default gatt-client is not freed

Change-Id: I24510c410897d85ed25dd2d650113ac857a45b57
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoFix Memory Leak: Incorrect deallocator used. 80/225780/1
himanshu [Wed, 19 Feb 2020 05:12:18 +0000 (10:42 +0530)]
Fix Memory Leak: Incorrect deallocator used.

The g_slist_free_full() in _bt_device_handle_adapter_state
should be provided with a custom function for proper
deallocation.

Change-Id: Ie250973cb8c736dad85133affe61c3d0c1b0f1e1
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoFix Memory Leak: Memory not deallocated. 79/225779/1
himanshu [Mon, 24 Feb 2020 06:52:57 +0000 (12:22 +0530)]
Fix Memory Leak: Memory not deallocated.

The memory created by g_strdup(object_path)
in the __bt_hal_extract_adapter_path is not
freed.

Change-Id: I677b88200fb10e5ab2883fe063865efff54bd2ea
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoFix memory Leak: Incorrect deallocator used 78/225778/1
himanshu [Mon, 24 Feb 2020 06:36:11 +0000 (12:06 +0530)]
Fix memory Leak: Incorrect deallocator used

The uuid_value should be freed with g_strfreev()
instead of g_free()

Change-Id: Ib9bbadd6e7a0215dd9742be1ce88346c84f2feb9
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoFix: Memory Leak in HAL layer. 77/225777/1
himanshu [Wed, 19 Feb 2020 13:30:59 +0000 (19:00 +0530)]
Fix: Memory Leak in HAL layer.

Change-Id: Ib55dbe3b0fa3aa91eb3fd3d8bbb41365b457c5ef
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoSet a readout notification of tts when AV connected 23/225723/1
Deokhyun Kim [Mon, 24 Feb 2020 06:53:35 +0000 (15:53 +0900)]
Set a readout notification of tts when AV connected

Change-Id: Ib8a505ad4ef39f6268a4c55738768f32c1879e5c
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoMerge branch 'tizen' into tizen_5.5 53/225553/1 accepted/tizen/5.5/unified/20200225.060724 submit/tizen_5.5/20200224.010855
DoHyun Pyun [Fri, 21 Feb 2020 01:57:59 +0000 (10:57 +0900)]
Merge branch 'tizen' into tizen_5.5

Change-Id: I328cf27e0cbd8f2cd4140d2ed534fe100fe4e551

4 years agoNot disable adapter in factory test mode 87/225487/1 accepted/tizen/unified/20200225.224405 submit/tizen/20200224.010814 submit/tizen/20200225.003033
Deokhyun Kim [Wed, 12 Feb 2020 08:57:31 +0000 (17:57 +0900)]
Not disable adapter in factory test mode

Change-Id: I439f5687812055a90dd4f39f9d8959aead22fc80
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoIgnore vconfkey value change for AVC mode on 75/225475/1
DoHyun Pyun [Thu, 20 Feb 2020 06:57:45 +0000 (15:57 +0900)]
Ignore vconfkey value change for AVC mode on

Change-Id: I30a3dd331aa5755fb30f8847f198a42db5fe1e36
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoImplement the event handling logic for AVC 18/225318/2 submit/tizen/20200220.012925
DoHyun Pyun [Wed, 19 Feb 2020 05:32:46 +0000 (14:32 +0900)]
Implement the event handling logic for AVC

Change-Id: I399c0f1e1aba91b95e5cded35c42f7ff5d507a5a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoImplement set / get volume logic from transport 39/225239/5
DoHyun Pyun [Tue, 18 Feb 2020 09:21:04 +0000 (18:21 +0900)]
Implement set / get volume logic from transport

Change-Id: I7b801240e57f715186737fe7aea89f1be4ce5029
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Implement User AVC mode handling logic" into tizen
Pyun DoHyun [Tue, 18 Feb 2020 09:10:45 +0000 (09:10 +0000)]
Merge "Implement User AVC mode handling logic" into tizen

4 years agoDisconnect RFCOMM & return false in case g_io_channel returns G_IO_STATUS_EOF 17/224917/2
Deokhyun Kim [Fri, 14 Feb 2020 05:51:53 +0000 (14:51 +0900)]
Disconnect RFCOMM & return false in case g_io_channel returns G_IO_STATUS_EOF

// Repeats infinitely
02-14 11:48:12.591+0900 E/BLUETOOTH_FRWK_API(P 4373, T 4373): bt-rfcomm-client.c: __client_data_received_cb(353) > IO Channel read is failed with 2
02-14 11:48:13.667+0900 E/BLUETOOTH_FRWK_API(P 4373, T 4373): bt-rfcomm-client.c: __client_data_received_cb(353) > IO Channel read is failed with 2
...........
02-14 11:48:24.251+0900 E/BLUETOOTH_FRWK_API(P 4373, T 4373): bt-rfcomm-client.c: __client_data_received_cb(353) > IO Channel read is failed with 2
02-14 11:48:24.251+0900 E/BLUETOOTH_FRWK_API(P 4373, T 4373): bt-rfcomm-client.c: __client_data_received_cb(353) > IO Channel read is failed with 2

Change-Id: Ifb630b340a8eabbe4781239b580e9242c99bf899
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoGenerate btsnoop file into log dump 67/225167/3
injun.yang [Tue, 28 Jan 2020 10:17:07 +0000 (19:17 +0900)]
Generate btsnoop file into log dump

[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: I760bc6be281fc4e51d98e5c055fac652420eb19c

4 years agoImplement User AVC mode handling logic 55/225155/2
DoHyun Pyun [Tue, 18 Feb 2020 01:07:16 +0000 (10:07 +0900)]
Implement User AVC mode handling logic

Change-Id: I9375d17a6309ea30dcef6effd9ae0a64e7ae269d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd interfaces for BT AVC feature with pulseaudio 69/225069/3
DoHyun Pyun [Mon, 17 Feb 2020 06:30:56 +0000 (15:30 +0900)]
Add interfaces for BT AVC feature with pulseaudio

Change-Id: I6e7ab1fb128fbd1d95ba0a772e8c7cf75861b15c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Fix the coverity issue (Dereference after null check)" into tizen submit/tizen/20200217.053214
Pyun DoHyun [Mon, 17 Feb 2020 05:23:08 +0000 (05:23 +0000)]
Merge "Fix the coverity issue (Dereference after null check)" into tizen

4 years agoMerge "Add interfaces for BT AVC feature (AVRCP Target)" into tizen
Pyun DoHyun [Mon, 17 Feb 2020 05:22:31 +0000 (05:22 +0000)]
Merge "Add interfaces for BT AVC feature (AVRCP Target)" into tizen

4 years agoFix the coverity issue (Dereference after null check) 38/225038/1
DoHyun Pyun [Mon, 17 Feb 2020 02:42:16 +0000 (11:42 +0900)]
Fix the coverity issue (Dereference after null check)

Change-Id: I99343dfbc3c349302dfe2db63741fd1062d3b8e7
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Fix alloc free mismatch coverty issue in bt-otp" into tizen
Pyun DoHyun [Mon, 17 Feb 2020 01:01:29 +0000 (01:01 +0000)]
Merge "Fix alloc free mismatch coverty issue in bt-otp" into tizen

4 years agoFix alloc free mismatch coverty issue in bt-otp 65/224865/2
Sudipto [Thu, 13 Feb 2020 13:22:35 +0000 (18:52 +0530)]
Fix alloc free mismatch coverty issue in bt-otp

Change-Id: If2eaa7e71fa044712a4fdc6b1dc0b5499a612c37
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years agoAdd interfaces for BT AVC feature (AVRCP Target) 21/224921/4
DoHyun Pyun [Fri, 14 Feb 2020 06:08:53 +0000 (15:08 +0900)]
Add interfaces for BT AVC feature (AVRCP Target)

Change-Id: Id45c2c61b4ec917edd9ca5f53e46e81d34756e6e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Fix coverty issues in gatt" into tizen submit/tizen/20200214.001348
Pyun DoHyun [Thu, 13 Feb 2020 23:54:49 +0000 (23:54 +0000)]
Merge "Fix coverty issues in gatt" into tizen

4 years agoMerge "Fix coverty issue in gatt-client" into tizen
Pyun DoHyun [Thu, 13 Feb 2020 23:54:30 +0000 (23:54 +0000)]
Merge "Fix coverty issue in gatt-client" into tizen

4 years agoFix coverty issues in gatt 64/224864/1
Sudipto [Thu, 13 Feb 2020 13:13:42 +0000 (18:43 +0530)]
Fix coverty issues in gatt

Change-Id: If60ddc47a87c93883d79be1e4e73080f923c70ca
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years agoFix coverty issue in gatt-client 54/224854/1
Sudipto [Thu, 13 Feb 2020 12:37:39 +0000 (18:07 +0530)]
Fix coverty issue in gatt-client

Change-Id: I075579e5d8511cc1b654723be0484e7f6e2331ca
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years agoFix coverity issue : unchecked return value 70/224870/1
himanshu [Thu, 13 Feb 2020 12:33:31 +0000 (18:03 +0530)]
Fix coverity issue : unchecked return value

Return value of __bt_call_systemact_service
was not checked.

Change-Id: I6c9bccd246a43f5901036e10c292b92e8f13eb05
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoResolve memory leak in OTP 46/224646/4
Amit Purwar [Wed, 12 Feb 2020 05:54:04 +0000 (11:24 +0530)]
Resolve memory leak in OTP

Resolve memory leak related to g_variant_iter_loop

Change-Id: I7b5f04c36f326a32a2b88ca5cbcf5689fc0e8af4
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoResolve memory leak in bt-service 45/224645/4
Amit Purwar [Wed, 12 Feb 2020 05:52:24 +0000 (11:22 +0530)]
Resolve memory leak in bt-service

Resolve memory leak related to g_variant_iter_loop

Change-Id: I41e4c54f20d723789d1c2ad1e422ac32b573921c
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoResolve memory leak in bt-service-adaptation 44/224644/3
Amit Purwar [Wed, 12 Feb 2020 05:50:05 +0000 (11:20 +0530)]
Resolve memory leak in bt-service-adaptation

Resolve memory leak related to g_variant_iter_loop

Change-Id: Ie74e24d80146551a6e830dacbcbda8b7c516f85a
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoMerge "Resolve memory leak in HAL" into tizen
Pyun DoHyun [Thu, 13 Feb 2020 01:52:04 +0000 (01:52 +0000)]
Merge "Resolve memory leak in HAL" into tizen

4 years agoMerge "Remove flight mode implementation from core and add it to bt-service" into...
Pyun DoHyun [Wed, 12 Feb 2020 08:14:42 +0000 (08:14 +0000)]
Merge "Remove flight mode implementation from core and add it to bt-service" into tizen

4 years agoResolve memory leak in HAL 43/224643/2
Amit Purwar [Wed, 12 Feb 2020 05:46:02 +0000 (11:16 +0530)]
Resolve memory leak in HAL

Resolve memory leak related to g_variant_iter_loop

Change-Id: I3cc22a404a3c12a52c1b12b342c515e9674ee465
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoRemove flight mode implementation from core and add it to bt-service 73/224373/5
Sudipto [Mon, 10 Feb 2020 06:29:04 +0000 (11:59 +0530)]
Remove flight mode implementation from core and add it to bt-service

Change-Id: I856539d5e36c11a0e02e6ff9ada8078c2848ebff
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years agoCode clean up for debug message 83/224583/1
injun.yang [Fri, 7 Feb 2020 02:15:43 +0000 (11:15 +0900)]
Code clean up for debug message

Change-Id: Iffa256dfa4950fdd967daf10e2fc0614b6a2bfad
Signed-off-by: injun.yang <injun.yang@samsung.com>
4 years agoAdapt bt_device_get_id_address API into BT-HAL framework 95/224295/4
himanshu [Fri, 7 Feb 2020 11:38:07 +0000 (17:08 +0530)]
Adapt bt_device_get_id_address API into BT-HAL framework

Change-Id: I40a822320d719f7da6c8312ff90158c98b9d0884
Signed-off-by: himanshu <h.himanshu@samsung.com>
4 years agoFix memory leak in bt-api for g_variant_iter_loop 93/224293/2
Amit Purwar [Fri, 7 Feb 2020 11:51:36 +0000 (17:21 +0530)]
Fix memory leak in bt-api for g_variant_iter_loop

Change-Id: I4ac3e7f1f862b47d7c4737e69d856000315e32b4
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoSeperate GATT unregister instance function 18/224118/5
DoHyun Pyun [Thu, 6 Feb 2020 09:19:52 +0000 (18:19 +0900)]
Seperate GATT unregister instance function

If client ID has the same value with server ID, then
the abnormal unregisteration can be occured. This patchset
prevents that issue.

Change-Id: Idaf156848587d1c7bd75fc697445804065fbedb0
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix the instance id's miss-matching issue 61/224061/6
DoHyun Pyun [Thu, 6 Feb 2020 05:23:38 +0000 (14:23 +0900)]
Fix the instance id's miss-matching issue

Change-Id: I65e2592927aacb2b95c2b51531c44fdc1a21092a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoHandle GATT client app's termination 60/224060/7
DoHyun Pyun [Thu, 6 Feb 2020 05:01:13 +0000 (14:01 +0900)]
Handle GATT client app's termination

Change-Id: Ic209290e0b935df315d178409d12838507a0ca2f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix dereference of NULL issue 85/224185/2 accepted/tizen/unified/20200210.131841 submit/tizen/20200207.062602
DoHyun Pyun [Fri, 7 Feb 2020 03:55:04 +0000 (12:55 +0900)]
Fix dereference of NULL issue

Issues was reported by a static analyzer.

Change-Id: If99919b3da86b6d09675120fa9ee1d6607290f6d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd service added event handling logic 13/224213/1
Wootak Jung [Fri, 7 Feb 2020 04:37:07 +0000 (13:37 +0900)]
Add service added event handling logic

Add added service in list

Change-Id: I1bcb6795d8207a6b415ccfb99a70a578fb4eb874

4 years agoAdd service removed event handling logic 12/224212/1
Wootak Jung [Thu, 6 Feb 2020 06:21:06 +0000 (15:21 +0900)]
Add service removed event handling logic

Remove removed service in list

Change-Id: Ib6aab419ef4bd26a52a377a51b527852c8986e82

4 years agoFix wrong memory references and leaks 72/224172/1
Semun Lee [Fri, 7 Feb 2020 01:35:40 +0000 (10:35 +0900)]
Fix wrong memory references and leaks

Issues was reported by a static analyzer.

Change-Id: I83a8f7f481099a3f0fb8ea6be41f4134a10eba34
Signed-off-by: Semun Lee <semun.lee@samsung.com>
4 years agoMerge "Not enable BT on booting time in factory mode" into tizen
Pyun DoHyun [Thu, 6 Feb 2020 05:28:57 +0000 (05:28 +0000)]
Merge "Not enable BT on booting time in factory mode" into tizen

4 years agoMerge "Fix Memory Leaks" into tizen accepted/tizen/unified/20200207.122437 submit/tizen/20200205.074113
Pyun DoHyun [Thu, 6 Feb 2020 00:51:39 +0000 (00:51 +0000)]
Merge "Fix Memory Leaks" into tizen

4 years agoFix Memory Leaks 06/224006/1
Anupam Roy [Wed, 5 Feb 2020 10:51:21 +0000 (16:21 +0530)]
Fix Memory Leaks

- Removed unused memory allocation for GATT char property conversion
- Use g_variant_unref() for GVariant* data received in g_varaint_get()

Change-Id: I387928f184010765410e1f6312c54c7be7cd60fe
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
4 years agoNot enable BT on booting time in factory mode 35/223935/3
Deokhyun Kim [Wed, 5 Feb 2020 06:12:15 +0000 (15:12 +0900)]
Not enable BT on booting time in factory mode

Change-Id: Iae2ea70769807e527d55175aff808d033f2833b4
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoInvoke error result when PBAP request fails 30/223930/2
Deokhyun Kim [Wed, 5 Feb 2020 06:02:37 +0000 (15:02 +0900)]
Invoke error result when PBAP request fails

Change-Id: Ieeb75fe23ac206ad207e93674c01bc1bb172e8c8
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
4 years agoDisable HTTP proxy feature 31/223831/1 submit/tizen/20200203.160801
DoHyun Pyun [Tue, 4 Feb 2020 08:03:22 +0000 (17:03 +0900)]
Disable HTTP proxy feature

Change-Id: I10117b7ef87ac24fecc9f98261e45210c0498739
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoRemove redundant debug message 94/223794/1
injun.yang [Tue, 28 Jan 2020 08:09:32 +0000 (17:09 +0900)]
Remove redundant debug message

Change-Id: I407609671b339894131b505e41ab8d7dbac8e347
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoCode clean up 93/223793/1
injun.yang [Thu, 23 Jan 2020 06:14:43 +0000 (15:14 +0900)]
Code clean up

Change-Id: I9209247bbb8492a00879aa1e96ea22f62143025b
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Fix the LE scan filter malfunction" into tizen
Pyun DoHyun [Tue, 4 Feb 2020 01:17:37 +0000 (01:17 +0000)]
Merge "Fix the LE scan filter malfunction" into tizen

4 years agoMerge "Add NULL check logic" into tizen
Pyun DoHyun [Tue, 4 Feb 2020 01:17:28 +0000 (01:17 +0000)]
Merge "Add NULL check logic" into tizen

4 years agoFix the LE scan filter malfunction 66/223766/1
injun.yang [Tue, 4 Feb 2020 00:59:05 +0000 (09:59 +0900)]
Fix the LE scan filter malfunction

Change-Id: I0372a8e1d8cbe89da582805ce74b62f18da6eb35
Signed-off-by: injun.yang <injun.yang@samsung.com>
4 years agoAdd NULL check logic 52/223752/1
Wootak Jung [Tue, 4 Feb 2020 00:37:55 +0000 (09:37 +0900)]
Add NULL check logic

Change-Id: Idb1f39396bc35bdc36205a8d5d8b5ef86d944aad

4 years agoFix iterator free issue in avrcp_control_parse_properties 07/223707/1
Amit Purwar [Mon, 3 Feb 2020 06:26:22 +0000 (11:56 +0530)]
Fix iterator free issue in avrcp_control_parse_properties

Change-Id: Ied37f254cc061735a795bdd06d781e758fa06e13
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
4 years agoFix BT enable issue on XU3 TV profile 69/223369/1 accepted/tizen/unified/20200130.215032 submit/tizen/20200129.235732
DoHyun Pyun [Wed, 29 Jan 2020 06:18:36 +0000 (15:18 +0900)]
Fix BT enable issue on XU3 TV profile

Change-Id: I3cb7e00890057a354032365ff34c0b3deb2c8902
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoMerge "Fix svace issue" into tizen accepted/tizen/unified/20200130.214622 submit/tizen/20200129.034507
Pyun DoHyun [Tue, 28 Jan 2020 06:03:15 +0000 (06:03 +0000)]
Merge "Fix svace issue" into tizen

4 years agoMerge "Modify the logic of bonding with LE type" into tizen
Pyun DoHyun [Tue, 28 Jan 2020 06:03:12 +0000 (06:03 +0000)]
Merge "Modify the logic of bonding with LE type" into tizen

4 years agoMerge "Fix connection info duplication issue" into tizen
Pyun DoHyun [Tue, 28 Jan 2020 06:03:08 +0000 (06:03 +0000)]
Merge "Fix connection info duplication issue" into tizen

4 years agoMerge "Fix gslist index mismatch issue" into tizen
Pyun DoHyun [Tue, 28 Jan 2020 06:03:05 +0000 (06:03 +0000)]
Merge "Fix gslist index mismatch issue" into tizen

4 years agoMerge "Fix GATT service list not update issue" into tizen
Pyun DoHyun [Tue, 28 Jan 2020 06:03:02 +0000 (06:03 +0000)]
Merge "Fix GATT service list not update issue" into tizen

4 years agoMerge "Modify GATT search service result event handling logic" into tizen
Pyun DoHyun [Tue, 28 Jan 2020 06:02:59 +0000 (06:02 +0000)]
Merge "Modify GATT search service result event handling logic" into tizen

4 years agoMerge "Modify gattc info free functions" into tizen
Pyun DoHyun [Tue, 28 Jan 2020 06:02:56 +0000 (06:02 +0000)]
Merge "Modify gattc info free functions" into tizen

4 years agoMerge "Implement GATT Service changed event handling logic" into tizen
Pyun DoHyun [Tue, 28 Jan 2020 06:02:52 +0000 (06:02 +0000)]
Merge "Implement GATT Service changed event handling logic" into tizen

4 years agoMerge "Fix iOS GM connection issue" into tizen
Pyun DoHyun [Tue, 28 Jan 2020 06:02:47 +0000 (06:02 +0000)]
Merge "Fix iOS GM connection issue" into tizen

4 years agoFix the build error for execv function 65/223265/1 accepted/tizen/unified/20200129.022658 submit/tizen/20200127.235706
DoHyun Pyun [Tue, 28 Jan 2020 06:06:48 +0000 (15:06 +0900)]
Fix the build error for execv function

error: argument 2 null where non-null expected [-Werror=nonnull]

Change-Id: I52334cd5f2fa1655031c1cc1745948e163caba94
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>