platform/core/api/bluetooth.git
6 years agoFix the prevent issues 18/196618/1 accepted/tizen_4.0_unified accepted/tizen/4.0/unified/20190103.235207 submit/tizen_4.0/20190103.044435
DoHyun Pyun [Thu, 3 Jan 2019 04:14:41 +0000 (13:14 +0900)]
Fix the prevent issues

Change-Id: Ie3516c9b7a84f965442f7c851c93bb5271ba0f40
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoAdd @MOBILE_ONLY tag for mobile only APIs to hide on Wearable API reference 16/173516/1 accepted/tizen/4.0/unified/20180329.125145 submit/tizen_4.0/20180328.084945
Wootak Jung [Thu, 22 Mar 2018 06:16:47 +0000 (15:16 +0900)]
Add @MOBILE_ONLY tag for mobile only APIs to hide on Wearable API reference

Change-Id: Iacfe4b1078a2ead65bfd2aea9f37a808fafe2d65

7 years agoFix : AVRCP common API error 79/173479/1
Sangki Park [Mon, 19 Mar 2018 09:48:38 +0000 (18:48 +0900)]
Fix : AVRCP common API error

The API bt_avrcp_set_play_status_changed_cb() returns
"Not supported" error if the project supports AVRCP controller only.

This kinds of AVRCP APIs shuould be work if CONTROLLER feature is
defined only.

Change-Id: I9bbca080cce0da8f956dee7b541ccb82b7278a52
Signed-off-by: Sangki Park <sangki79.park@samsung.com>
7 years agoFix native API reference errors 77/171577/1
DoHyun Pyun [Tue, 6 Mar 2018 02:18:11 +0000 (11:18 +0900)]
Fix native API reference errors

Change-Id: Ibdd6fea94544b72c362052f48e4a05742d6133bd
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoUse strtoul instead of strtol to prevent overflow. 01/171401/1
Deokhyun Kim [Fri, 2 Mar 2018 10:52:48 +0000 (19:52 +0900)]
Use strtoul instead of strtol to prevent overflow.

Change-Id: Iec6735db888f9c9ce4f5ef650381608f08953ca7
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
7 years agoRemove redundant code 65/170865/1
injun.yang [Fri, 23 Feb 2018 02:08:52 +0000 (11:08 +0900)]
Remove redundant code

Change-Id: I982da86ab480c4bd75d3923b8d80fbb0d255ce09

7 years agoFix : GATT service is not registered 85/170485/1
injun.yang [Tue, 20 Feb 2018 08:10:19 +0000 (17:10 +0900)]
Fix : GATT service is not registered

Change-Id: I8fa782c830f96f84d9032ffd65883c43dec26a88

7 years agoAdd HFP HF APIs on bluetooth_internal 95/164995/1 accepted/tizen/4.0/unified/20180111.051107 submit/tizen_4.0/20180108.000053 submit/tizen_4.0/20180108.235143 tizen_4.0.IoT.p2_release
Sangki Park [Fri, 22 Dec 2017 05:59:50 +0000 (14:59 +0900)]
Add HFP HF APIs on bluetooth_internal

int bt_hf_request_call_status_info_list(void)
int bt_hf_is_inband_ringtone_supported(bool *supported)

Change-Id: I832acd24f74280b37b16e54082b7622a931b3cee
Signed-off-by: Sangki Park <sangki79.park@samsung.com>
7 years agoAdd the inhouse APIs for AVRCP control volume up / down 83/164183/1
DoHyun Pyun [Mon, 18 Dec 2017 01:35:10 +0000 (10:35 +0900)]
Add the inhouse APIs for AVRCP control volume up / down

Change-Id: Ia5bd9eff0d389215a75005629d9a243a68a7caf1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix return value error of bt_socket_create_rfcomm_ex() 69/163369/1
Deokhyun Kim [Mon, 11 Dec 2017 00:36:02 +0000 (09:36 +0900)]
Fix return value error of bt_socket_create_rfcomm_ex()

Change-Id: I01019394088299dd329ba5880be8b58aa3afca05
Signer-off-by: Deokhyun Kim <dukan.kim@samsung.com>
7 years agoFix TC fail issue in multi ADV senario 08/163008/1 accepted/tizen/4.0/unified/20171208.061643 submit/tizen_4.0/20171207.051213
DoHyun Pyun [Thu, 7 Dec 2017 01:52:38 +0000 (10:52 +0900)]
Fix TC fail issue in multi ADV senario

Change-Id: I8bf8de730ec8fdd5c75d87f65ec1a71316902755
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix the prevent issues 40/162740/1 accepted/tizen/4.0/unified/20171206.140410 submit/tizen_4.0/20171206.014815
DoHyun Pyun [Tue, 5 Dec 2017 06:44:43 +0000 (15:44 +0900)]
Fix the prevent issues

Change-Id: I1881cf8fe387ef461a0f49677e43b4d1a7b06550
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoAdd "not supported" check logic in the device API 10/161210/1 accepted/tizen/4.0/unified/20171124.063545 submit/tizen_4.0/20171122.070346
DoHyun Pyun [Wed, 22 Nov 2017 06:49:33 +0000 (15:49 +0900)]
Add "not supported" check logic in the device API

Change-Id: I790ad6a41109d9a29ba5a4c3ac4e4ffddd208d31
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoUse device_address instead of bluetooth_hid_request_t 17/157517/2
Deokhyun Kim [Thu, 26 Oct 2017 10:30:14 +0000 (19:30 +0900)]
Use device_address instead of bluetooth_hid_request_t

Change-Id: Idc0fc244a66b6c2de088840d447c20fb293e80b7
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
7 years agoAdd new bluetooth features (OOB, GATT Server / Client) 65/156565/3 accepted/tizen/4.0/unified/20171020.092411 submit/tizen_4.0/20171020.010157 tizen_4.0.m2_release
DoHyun Pyun [Thu, 19 Oct 2017 02:35:40 +0000 (11:35 +0900)]
Add new bluetooth features (OOB, GATT Server / Client)

Total 3 features are added related with OOB, GATT Server,
and GATT Client.
tizen.org/feature/network.bluetooth.oob
tizen.org/feature/network.bluetooth.le.gatt.server
tizen.org/feature/network.bluetooth.le.gatt.client

Change-Id: I349745e52ed10dfaa7df59f46bc7ab900bb329db
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix the API reference error for PBAP client 85/156285/1
DoHyun Pyun [Wed, 18 Oct 2017 02:36:12 +0000 (11:36 +0900)]
Fix the API reference error for PBAP client

Change-Id: I4ca874e4bddf1b511c7fba78a714f9ba9122f547
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix the svace issues 26/156126/1 accepted/tizen/4.0/unified/20171018.060749 submit/tizen_4.0/20171017.074237
DoHyun Pyun [Tue, 17 Oct 2017 07:39:33 +0000 (16:39 +0900)]
Fix the svace issues

Change-Id: Ib865ea321709bb0e93b8098380836ea886d5c41c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix the crash issue in OTP manual testcase 03/155103/1 accepted/tizen/4.0/unified/20171017.211455 submit/tizen_4.0/20171016.011411
DoHyun Pyun [Thu, 12 Oct 2017 05:45:14 +0000 (14:45 +0900)]
Fix the crash issue in OTP manual testcase

Change-Id: I767113f01ede106b6a99b8ab85a97acc3f9721bb
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix the svace major issues 63/153563/2 accepted/tizen/4.0/unified/20170929.080710 submit/tizen_4.0/20170929.021712 tizen_4.0.IoT.p1_release
DoHyun Pyun [Fri, 29 Sep 2017 00:50:57 +0000 (09:50 +0900)]
Fix the svace major issues

Change-Id: Ifef1ced81393b79fc57f09bc3e97da2e8751cbb4
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix the build error for x86_64 74/153074/1 submit/tizen_4.0/20170928.081624
DoHyun Pyun [Thu, 28 Sep 2017 01:57:30 +0000 (10:57 +0900)]
Fix the build error for x86_64

Change-Id: I441fa5fa4c4fea7dc194a192507182b50c1842d2
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix the prevent issues 78/152678/1 submit/tizen_4.0/20170927.034808
DoHyun Pyun [Wed, 27 Sep 2017 01:23:25 +0000 (10:23 +0900)]
Fix the prevent issues

Change-Id: Ie2c4e834e35cdc04a301801b961e7ceb3f130c43
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoAdd the GATT Relay feature for the dual stack adaptation 61/151561/2 accepted/tizen/4.0/unified/20170922.195438 submit/tizen_4.0/20170922.014023
DoHyun Pyun [Wed, 20 Sep 2017 09:25:13 +0000 (18:25 +0900)]
Add the GATT Relay feature for the dual stack adaptation

Change-Id: If7830aacb1f45d725616d06216af51ee8452b32b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoNULL assertion in g_ascii_strcasecmp 71/151571/1
Abhishek Chandra [Thu, 21 Sep 2017 05:21:15 +0000 (10:51 +0530)]
NULL assertion in g_ascii_strcasecmp

[Problem]Seeker remote address is resetted to
NULL if GATT connect is failed ,which causes
seeker object to remain in the Seeker list and
can never be destroyed as remote address is null .
Next time ,while finding seeker .
g_ascii_strcasecmp is called with NULL remote address,
causing it to assert.

[Causes & Measure] Removed remote address setting
to NULL and guarded code in case of NULL being
passed to strcmp.

[Checking Method] UT

Change-Id: I04c475c9316ac04437d3ea0bc096e3da346ba421
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoSVACE Fixes 15/149515/1 accepted/tizen/4.0/unified/20170915.201249 submit/tizen_4.0/20170914.075053
Anupam Roy [Mon, 11 Sep 2017 12:38:20 +0000 (18:08 +0530)]
SVACE Fixes

ID's: 252909, 258247, 258248, 258249

Change-Id: I563ecfbec21f9b44799a45c38cee13359d7a1fd3
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix tizen coding style errors and warnings 18/149318/2
DoHyun Pyun [Tue, 12 Sep 2017 05:34:15 +0000 (14:34 +0900)]
Fix tizen coding style errors and warnings

Change-Id: I7cffe680ddad51ab44550b881beeca22e0e4f50d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoApply tizen 3.0 based product patchsets 03/148103/2
DoHyun Pyun [Wed, 6 Sep 2017 23:10:46 +0000 (08:10 +0900)]
Apply tizen 3.0 based product patchsets

--------------------------------------------------
commit b1f1e05c0d97e98479b60a435eabb3419d23387d
Author: Deokhyun Kim <dukan.kim@samsung.com>
Date:   Wed Aug 30 14:33:26 2017 +0900

Change API name from bt_device_get_ida() to bt_device_get_id_address()
---------------------------------------------------

Change-Id: Ieb9d5e7ad8692bdc6e5db9116f00f0aec1c1d8c7
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix : GATT client services are not updated 17/149417/1
Seungyoun Ju [Thu, 7 Sep 2017 11:28:33 +0000 (20:28 +0900)]
Fix : GATT client services are not updated

If GATT client handle is created during service discovery, some services
could not be imported. But there is no logic to refresh services once
discovery is done. This patch set a flag of services_discovered to false
if importing one of services is failed. So that, when service discovery
is done, it imports again services.

Change-Id: I366c09ed208e11b47423b034d01e288e09c1c0a7
Signed-off-by: Seungyoun Ju <sy39.ju@samsung.com>
7 years agoFix memory corruption 14/149414/1
Seungyoun Ju [Wed, 29 Mar 2017 10:29:19 +0000 (19:29 +0900)]
Fix memory corruption

Already freed memory is accessed and is tried to free again.
It causes memory corruption so that at the next time glib memory use,
crash happens.

[Valgrind]
==918== Invalid free() / delete / delete[] / realloc()
==918==    at 0x483403C: free (vg_replace_malloc.c:469)
==918==    by 0x4D03467: g_free (gmem.c:252)
==918==    by 0x4D10BBB: g_slice_free_chain_with_offset (gslice.c:1206)
==918==    by 0x49A1C79: _bt_gatt_client_update_services (bluetooth-gatt.c:199)
==918==    by 0x498D691: __bt_event_proxy (bluetooth-common.c:1783)
==918==    by 0x68E0959: _bt_common_event_cb (bt-common.c:139)
==918==    by 0x6901B6D: __bt_device_event_filter (bt-event-handler.c:708)
==918==    by 0x48F9661: emit_signal_instance_in_idle_cb (gdbusconnection.c:3665)
==918==    by 0x4CFDFCD: g_idle_dispatch (gmain.c:4657)
==918==    by 0x4CFF7A7: g_main_context_dispatch (gmain.c:2539)
==918==    by 0x4C1FCA5: _ecore_glib_select (ecore_glib.c:171)
==918==    by 0x4C1AB4D: _ecore_main_select (ecore_main.c:1466)
==918==    by 0x4C1B5A5: _ecore_main_loop_iterate_internal (ecore_main.c:1894)
==918==    by 0x4C1B877: ecore_main_loop_begin (ecore_main.c:956)
==918==    by 0x10CA95: main (main.c:117)
==918==  Address 0x95f72b0 is 0 bytes inside a block of size 8 free'd
==918==    at 0x483403C: free (vg_replace_malloc.c:469)
==918==    by 0x4D03467: g_free (gmem.c:252)
==918==    by 0x4D1115B: g_slist_remove (gslist.c:425)
==918==    by 0x49A02D1: bt_gatt_service_destroy (bluetooth-gatt.c:937)
==918==    by 0x4D113E7: g_slist_foreach (gslist.c:840)
==918==    by 0x4D113F9: g_slist_free_full (gslist.c:177)
==918==    by 0x49A1C79: _bt_gatt_client_update_services (bluetooth-gatt.c:199)
==918==    by 0x498D691: __bt_event_proxy (bluetooth-common.c:1783)
==918==    by 0x68E0959: _bt_common_event_cb (bt-common.c:139)
==918==    by 0x6901B6D: __bt_device_event_filter (bt-event-handler.c:708)
==918==    by 0x48F9661: emit_signal_instance_in_idle_cb (gdbusconnection.c:3665)
==918==    by 0x4CFDFCD: g_idle_dispatch (gmain.c:4657)
==918==    by 0x4CFF7A7: g_main_context_dispatch (gmain.c:2539)
==918==    by 0x4C1FCA5: _ecore_glib_select (ecore_glib.c:171)
==918==    by 0x4C1AB4D: _ecore_main_select (ecore_main.c:1466)
==918==    by 0x4C1B5A5: _ecore_main_loop_iterate_internal (ecore_main.c:1894)
==918==    by 0x4C1B877: ecore_main_loop_begin (ecore_main.c:956)
==918==    by 0x10CA95: main (main.c:117)

Change-Id: Ie89cdf0f23a86f128c56254aea3e707cb84e4351
Signed-off-by: Seungyoun Ju <sy39.ju@samsung.com>
7 years agoFix the build error 87/144887/1 accepted/tizen/4.0/unified/20170828.224442 accepted/tizen/unified/20170822.112958 submit/tizen/20170818.052446 submit/tizen_4.0/20170828.110001
DoHyun Pyun [Fri, 18 Aug 2017 00:21:04 +0000 (09:21 +0900)]
Fix the build error

Change-Id: I9751b8ddd483963b9b4a2c03fe2665c2b45821f8
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix parameter order 82/144282/1
injun.yang [Wed, 16 Aug 2017 06:44:59 +0000 (15:44 +0900)]
Fix parameter order

Change-Id: I4e2fcd72606c00322c25f6a8a614a823b98754ef
Signed-off-by: injun.yang <injun.yang@samsung.com>
7 years agoDebug message cleanup 50/144250/1
injun.yang [Wed, 16 Aug 2017 05:19:16 +0000 (14:19 +0900)]
Debug message cleanup

Change-Id: I96efd109ee0bfe45da05f86ec77fdb35d92dd167
Signed-off-by: injun.yang <injun.yang@samsung.com>
7 years agoApply Tizen3.0 Gatt client product patch 87/142987/1 accepted/tizen/unified/20170809.135136 accepted/tizen/unified/20170811.021135 submit/tizen/20170808.231821 submit/tizen/20170809.230017
h.sandeep [Tue, 8 Aug 2017 06:31:06 +0000 (12:01 +0530)]
Apply Tizen3.0 Gatt client product patch

===============================================
 commit 4a721c92d78ddb62650f596a4af26637db60a36e
 Author: Seungyoun Ju <sy39.ju@samsung.com>
 Date:   Wed Apr 26 18:03:40 2017 +0900
     Fix : Simultaneous GATT client requests are failed
===============================================

Change-Id: Ifc3012d97c68c8bdcc14a7b1a1ab1cb4441253b6
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoApply tizen 3.0 based product patchsets 90/142690/2 accepted/tizen/unified/20170808.171417 submit/tizen/20170808.020532
DoHyun Pyun [Mon, 7 Aug 2017 04:55:42 +0000 (13:55 +0900)]
Apply tizen 3.0 based product patchsets

-------------------------------------------------
commit 4479eac5ecd1d64e09b39d8451522da9f9b335cd
Author: Deokhyun Kim <dukan.kim@samsung.com>
Date:   Fri Jul 14 18:59:19 2017 +0900

    Fix parameter order
-------------------------------------------------

Change-Id: If6142828b69022b36df961920c6163cc55c89b1a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years ago[OTP] Add support for service changed indication 04/142104/1
Gowtham Anandha Babu [Wed, 2 Aug 2017 12:07:45 +0000 (17:37 +0530)]
[OTP] Add support for service changed indication

Change-Id: I2a0fe7d3e26904f4d11dbe6a5dc5af0b9a81d199
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years ago[OTP] Add Object Changed Characteristics implementation 33/141633/1
Gowtham Anandha Babu [Tue, 1 Aug 2017 07:24:40 +0000 (12:54 +0530)]
[OTP] Add Object Changed Characteristics implementation

Refactor OTP Client code.

Change-Id: Iabdd5a4bee810a936b74f582404a3d1ce56c7faf
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years ago[GATT] Fix ATT application ecode 26/140726/2
Gowtham Anandha Babu [Wed, 26 Jul 2017 07:06:30 +0000 (12:36 +0530)]
[GATT] Fix ATT application ecode

1) Add error codes defined in Common Profile and
Service Error Code descriptions (see Supplement to the
Bluetooth Core Specification, sections 1.2 and 2).

2) Seperate out OTP specific application ecode.

Change-Id: I63113596ee74f86b6dc721048a193f5296b4f0fb
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years ago[GATT Server] Delivery the specific error code to central device 16/140616/1 accepted/tizen/4.0/unified/20170816.013913 accepted/tizen/4.0/unified/20170816.020257 accepted/tizen/unified/20170727.190509 submit/tizen/20170725.234514 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
Gowtham Anandha Babu [Tue, 25 Jul 2017 14:59:59 +0000 (20:29 +0530)]
[GATT Server] Delivery the specific error code to central device

[Problem] Unalbe to pass application error code to central device
[Cause & Measure] Pass the specific error code to central device
[Checking Method] Reponse with the specific error to central device

Change-Id: I169fa6456ad3421029868209c1df7850a2e5104f
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoFix static analysis tool warnings 17/140017/1
Atul Rai [Fri, 21 Jul 2017 10:31:59 +0000 (16:01 +0530)]
Fix static analysis tool warnings

Change-Id: I35071e0f9564961610f5a4e924ab5ae8336ce20f
Signed-off-by: Atul Rai <a.rai@samsung.com>
7 years ago[GATT Client] Delivery ATT error code to higher layer 78/139378/5 accepted/tizen/unified/20170721.201850 submit/tizen/20170721.013619
Gowtham Anandha Babu [Tue, 18 Jul 2017 13:35:50 +0000 (19:05 +0530)]
[GATT Client] Delivery ATT error code to higher layer

[Problem] ATT error code is not passed to application.

[Cause & Measure] GATT application need to know ATT
error code to handling error case. Specially application
error code defined by a higher layer specification.

[Checking Method] GATT error handling

Change-Id: Ic7c8f14f107dd65bae925c2e424b3bd71e04f8b8
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoFix the routine checking a parameter 'buttons'. 23/138623/1 accepted/tizen/unified/20170713.153740 submit/tizen/20170713.052302
DoHyun Pyun [Thu, 13 Jul 2017 04:51:31 +0000 (13:51 +0900)]
Fix the routine checking a parameter 'buttons'.

The value of 'buttons' can be 0(BUTTON_NONE) and combined each other.

Change-Id: Ia9ccecb83a9b375c62fd8daa9047fef3c6d1aeda
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoMerge "[OTP] Fix PTS fail cases" into tizen accepted/tizen/unified/20170711.180537 submit/tizen/20170710.052629
Pyun DoHyun [Thu, 29 Jun 2017 23:07:51 +0000 (23:07 +0000)]
Merge "[OTP] Fix PTS fail cases" into tizen

7 years ago[OTP] Fix PTS fail cases 10/136410/1
Gowtham Anandha Babu [Thu, 29 Jun 2017 09:59:04 +0000 (15:29 +0530)]
[OTP] Fix PTS fail cases

Change-Id: I823eac40ecadc62a1b5f4a8aeaaa76d1457fa091
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoMerge "Add the SetAbsoluteVolume internal API for AVRCP controller" into tizen
Pyun DoHyun [Wed, 28 Jun 2017 00:07:00 +0000 (00:07 +0000)]
Merge "Add the SetAbsoluteVolume internal API for AVRCP controller" into tizen

7 years agoAdd the SetAbsoluteVolume internal API for AVRCP controller 51/135851/1
Hyuk Lee [Tue, 27 Jun 2017 05:09:50 +0000 (14:09 +0900)]
Add the SetAbsoluteVolume internal API for AVRCP controller

Change-Id: Ie4362694983e5e8d93f3652bcbd68964519ac0f7
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
7 years ago[OTP] Expose Object Delete API 04/135604/1
Gowtham Anandha Babu [Fri, 23 Jun 2017 09:26:15 +0000 (14:56 +0530)]
[OTP] Expose Object Delete API

Change-Id: I9bdc093e89b15299258233ba47df9bc5baf547df
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years ago[OTP] Expose Object Execute API 44/134944/3
Gowtham Anandha Babu [Tue, 20 Jun 2017 10:13:50 +0000 (15:43 +0530)]
[OTP] Expose Object Execute API

Change-Id: If7ebdbad5a59d3b7ce7310c5ecb178f20791298f
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoMerge "[OTP] Expose Object Write API" into tizen
Pyun DoHyun [Tue, 20 Jun 2017 07:13:16 +0000 (07:13 +0000)]
Merge "[OTP] Expose Object Write API" into tizen

7 years ago[OTP] Expose Object Write API 27/134627/5
Gowtham Anandha Babu [Mon, 19 Jun 2017 13:30:09 +0000 (19:00 +0530)]
[OTP] Expose Object Write API

Change-Id: Ife975cdd71cd6021ed4cfa450c21891b10d6b321
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoFix unwanted check logic before g_free() 73/134273/4
Syam Sidhardhan [Thu, 15 Jun 2017 15:13:25 +0000 (20:43 +0530)]
Fix unwanted check logic before g_free()

g_free() internally validate the pointer

Change-Id: I7eb07198c65e79dfb9282445fd8625651fc120fc
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
8 years agosrc: Fix invalid return check for g_malloc 72/134272/1
Syam Sidhardhan [Thu, 15 Jun 2017 15:07:34 +0000 (20:37 +0530)]
src: Fix invalid return check for g_malloc

if params are correct, g_malloc*() will always return
a valid pointer, otherwise it will assert.

Change-Id: Ia2140202e8bce62a527af2fa8596d0e3e4e42c9b
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
8 years agogatt: proximity: Fix mismatching allocation and deallocation 71/134271/1
Syam Sidhardhan [Thu, 15 Jun 2017 14:27:19 +0000 (19:57 +0530)]
gatt: proximity: Fix mismatching allocation and deallocation

As per the glib documentation, the memory allocated using the glib
api's needs to be freed using corresponding glib free api's and not
libc api's, otherwise undefined behaviour can happen. This is because
the libc allocation and glib allocation uses different memory pools.
Similarly for libc api's.

Change-Id: I502ca5f143417c2ce4acf12e47b317d5339a48c1
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
8 years agocommon: Fix memory leak 70/134270/1
Syam Sidhardhan [Thu, 15 Jun 2017 14:22:34 +0000 (19:52 +0530)]
common: Fix memory leak

We have to free the allocated memory.

Change-Id: I040d3e0d57fa7967a5e4e3f456ec936b9f1f2ba2
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
8 years ago[OTP] Expose Object Create API 07/133807/2
Gowtham Anandha Babu [Tue, 13 Jun 2017 10:33:28 +0000 (16:03 +0530)]
[OTP] Expose Object Create API

Change-Id: Ie344d4b176889b1acb99dfea234ece1c5b337621
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
8 years ago[OTP] Expose Object Select API 02/132802/3 accepted/tizen/unified/20170613.194511 submit/tizen/20170613.061617
Gowtham Anandha Babu [Wed, 7 Jun 2017 15:04:47 +0000 (20:34 +0530)]
[OTP] Expose Object Select API

Change-Id: I7cb2de1136ddf7f681f2744ac31eed8c947bc4ea
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
8 years ago[OTP] Fix to track ongoing APIs 80/132680/2
Gowtham Anandha Babu [Wed, 7 Jun 2017 06:32:56 +0000 (12:02 +0530)]
[OTP] Fix to track ongoing APIs

Change-Id: Ic5e59a0f12f5f6b0c0ab45eb0ea96bcac7dd9307
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
8 years ago[OTP] Fix Object Read logic 23/131523/2
Gowtham Anandha Babu [Mon, 29 May 2017 13:41:03 +0000 (19:11 +0530)]
[OTP] Fix Object Read logic

Change-Id: Iac4e6ca7593e6127ba100fbf3ae49a80f1ac90f2
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
8 years agoMerge "[OTP] Expose APIs for read object contents" into tizen
Pyun DoHyun [Mon, 29 May 2017 03:46:32 +0000 (03:46 +0000)]
Merge "[OTP] Expose APIs for read object contents" into tizen

8 years ago[OTP] Expose APIs for read object contents 83/130883/2
Gowtham Anandha Babu [Wed, 24 May 2017 08:23:15 +0000 (13:53 +0530)]
[OTP] Expose APIs for read object contents

Change-Id: I2011fc945b6f4e0ce859b34d8ea95a519d5526cc
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
8 years agoRemove the package dependency about capi-appfw-application 71/130571/1 submit/tizen/20170523.010304
DoHyun Pyun [Tue, 23 May 2017 04:05:00 +0000 (13:05 +0900)]
Remove the package dependency about capi-appfw-application

Change-Id: Ic3e34ae08f8b2a7056d50ec1750ac3e5b40a52d9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years ago[Bluetooth][OTP-Client] Expose object browsing APIs 36/128836/5
Gowtham Anandha Babu [Thu, 11 May 2017 13:47:41 +0000 (19:17 +0530)]
[Bluetooth][OTP-Client] Expose object browsing APIs

1) With this API, otp-client application can discover
   all remote object(s).

Change-Id: I026e4f9b527df9551dfaf3ba85271102a9d9c505
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
8 years agoFix the Native API reference error 01/130301/1 submit/tizen/20170522.012704
DoHyun Pyun [Mon, 22 May 2017 01:22:21 +0000 (10:22 +0900)]
Fix the Native API reference error

Change-Id: I1768444aa48322586cb0544123d9d667418a659f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoMerge "Add the comment for excluding line coverage" into tizen
Pyun DoHyun [Fri, 12 May 2017 07:06:47 +0000 (07:06 +0000)]
Merge "Add the comment for excluding line coverage" into tizen

8 years agoAdd the comment for excluding line coverage 00/128900/1
Hyuk Lee [Fri, 12 May 2017 04:18:11 +0000 (13:18 +0900)]
Add the comment for excluding line coverage

Change-Id: I9a04a35b7a7ae771cc7b37c39f272081c63fe9a4
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
8 years agoMerge "[Bluetooth][OTP-Client] Expose OTP client APIs" into tizen
Pyun DoHyun [Thu, 11 May 2017 07:27:56 +0000 (07:27 +0000)]
Merge "[Bluetooth][OTP-Client] Expose OTP client APIs" into tizen

8 years agoInclude the glib header in the internal type header 57/128457/1 accepted/tizen/unified/20170510.183159 submit/tizen/20170510.055613 tizen_4.0.m1_release
DoHyun Pyun [Wed, 10 May 2017 05:48:19 +0000 (14:48 +0900)]
Include the glib header in the internal type header

Change-Id: I6267eaf34402d57fc60cd088cc2266691fe5d81e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoFix the svace issue (WGID:212366, 212388) 33/128133/2 accepted/tizen/unified/20170508.153105 submit/tizen/20170508.015850
Hyuk Lee [Mon, 8 May 2017 01:06:29 +0000 (10:06 +0900)]
Fix the svace issue (WGID:212366, 212388)

Change-Id: I38b2ad423fb851cb33b6d12a044abf0964a1bc8e
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
8 years ago[Bluetooth][OTP-Client] Expose OTP client APIs 66/127966/2
Gowtham Anandha Babu [Tue, 2 May 2017 15:58:21 +0000 (21:28 +0530)]
[Bluetooth][OTP-Client] Expose OTP client APIs

Exposed below mentioned APIs for OTP client:
1) Create client
2) Destroy client
3) Set client connection state changed callback
4) Unset client connection state changed callback
5) Client connect
6) Client disconnect

Change-Id: Ief69c8838d096fa8d98514e54ecf8674310641b8
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
8 years agoModify the IPSP feature support check 75/127575/1 submit/tizen/20170428.023145
Hyuk Lee [Fri, 28 Apr 2017 02:20:27 +0000 (11:20 +0900)]
Modify the IPSP feature support check

Change-Id: Ic25b75fee70e8df26247fa555276bacba20ec670
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
8 years agoChange sscanf to strtol function 91/127491/2 accepted/tizen/unified/20170428.033210 submit/tizen/20170428.004210
Hyuk Lee [Thu, 27 Apr 2017 11:55:48 +0000 (20:55 +0900)]
Change sscanf to strtol function

Change-Id: I539194a1b8338ec66b4f7704d6145d241092125a
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
8 years agoModify the GATT write requested callback 16/126616/1
Hyuk Lee [Mon, 24 Apr 2017 09:53:49 +0000 (18:53 +0900)]
Modify the GATT write requested callback

Change-Id: Id03978b732e038c2c51ef47d89787dff106be823
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
8 years agoMerge "Remove the privilege description for bt_gatt_client_get_att_mtu" into tizen accepted/tizen/unified/20170418.072728 submit/tizen/20170418.011550
DoHyun Pyun [Mon, 17 Apr 2017 04:24:51 +0000 (21:24 -0700)]
Merge "Remove the privilege description for bt_gatt_client_get_att_mtu" into tizen

8 years agoRemove the privilege description for bt_gatt_client_get_att_mtu 11/124911/1
DoHyun Pyun [Thu, 13 Apr 2017 04:25:04 +0000 (13:25 +0900)]
Remove the privilege description for bt_gatt_client_get_att_mtu

Bluetooth public getter APIs don't have the specific privilge.
Because it will not be effect on the system behavior. So remove the
privilege description in bluetooth.h file.

Change-Id: I8743708e010b1861bac206510bf820aa2215a6a9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoAdd the internal API for LE OOB pairing 08/124908/1
DoHyun Pyun [Thu, 13 Apr 2017 04:20:59 +0000 (13:20 +0900)]
Add the internal API for LE OOB pairing

For LE OOB pairing, we need to set the remote device's LE address type
and 256 hash and 256 randomizer.

Change-Id: Ic84ef752ccd8c97c3eedfbb66947ea6e38b4f95d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years ago[Bluetooth][OTP] Add APIs for OTP server role 55/121655/4
Gowtham Anandha Babu [Tue, 28 Mar 2017 10:33:05 +0000 (16:03 +0530)]
[Bluetooth][OTP] Add APIs for OTP server role

Change-Id: I8114a4e5816185bc97553b8ca4d8bcbcc7e10273
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
8 years agoMerge "Publish GATT MTU Exchange APIs to Native public API" into tizen accepted/tizen/unified/20170410.155703 submit/tizen/20170410.040751
DoHyun Pyun [Thu, 6 Apr 2017 07:54:50 +0000 (00:54 -0700)]
Merge "Publish GATT MTU Exchange APIs to Native public API" into tizen

8 years agoPublish IPSP APIs to Native public API 34/118134/7
Lee Hyuk [Thu, 6 Apr 2017 01:48:44 +0000 (10:48 +0900)]
Publish IPSP APIs to Native public API

Change-Id: Idd37dce8650e4d146f67703cf53ff972c1bc0a07
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
8 years agoMerge "Add the IPSP feature in doc.h" into tizen
Pyun DoHyun [Thu, 6 Apr 2017 00:33:01 +0000 (17:33 -0700)]
Merge "Add the IPSP feature in doc.h" into tizen

8 years agoPublish GATT MTU Exchange APIs to Native public API 82/119882/13
DoHyun Pyun [Mon, 20 Mar 2017 10:57:05 +0000 (19:57 +0900)]
Publish GATT MTU Exchange APIs to Native public API

Change-Id: Id1a134752e8c383a5d307ecffd89c48b5b803b19
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoMerge "A2DP role change CAPI implementation" into tizen
Pyun DoHyun [Wed, 5 Apr 2017 06:11:28 +0000 (23:11 -0700)]
Merge "A2DP role change CAPI implementation" into tizen

8 years agoFix SVACE issue 183840 03/123103/2
Atul Rai [Tue, 4 Apr 2017 10:25:16 +0000 (15:55 +0530)]
Fix SVACE issue 183840

This patch amends the upper limit for TDS buffer length,
while checking for Out of range values.

Change-Id: I9f4581e14a6a03be2864c8b431dc53a01a835231
Signed-off-by: Atul Rai <a.rai@samsung.com>
8 years agoA2DP role change CAPI implementation 54/122954/2
Abhishek Chandra [Tue, 4 Apr 2017 05:31:04 +0000 (11:01 +0530)]
A2DP role change CAPI implementation

Change-Id: Ib0a5b5ab07cad2206d2b2b1c792f24e15689f902
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
8 years agoMerge "Fix typo errors" into tizen
DoHyun Pyun [Tue, 4 Apr 2017 08:11:27 +0000 (01:11 -0700)]
Merge "Fix typo errors" into tizen

8 years agoFix typo errors 22/123022/1
DoHyun Pyun [Tue, 4 Apr 2017 07:42:51 +0000 (16:42 +0900)]
Fix typo errors

Change-Id: I0a7936d14c8cc67fbb0ff74b8c8d52a462ab3dde
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoPublish LE scan filtering APIs to Native public API 65/117365/18
DoHyun Pyun [Mon, 6 Mar 2017 01:07:29 +0000 (10:07 +0900)]
Publish LE scan filtering APIs to Native public API

Change-Id: I2c442c7f3ca3554029f112b952903a0ec2dfb8f5
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoFix the svace issue (11726, 176047, 183477) 75/122975/2 submit/tizen/20170404.073146
DoHyun Pyun [Tue, 4 Apr 2017 04:48:29 +0000 (13:48 +0900)]
Fix the svace issue (11726, 176047, 183477)

Change-Id: Ia399f87f8d869f18afe7fef883dfea36a891b9e8
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoAdd the IPSP feature in doc.h 48/118148/3
Lee Hyuk [Thu, 9 Mar 2017 04:21:30 +0000 (13:21 +0900)]
Add the IPSP feature in doc.h

Change-Id: I60a486b77594da4eed4ab9af9699208d4ad8fa1a
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
8 years agoModify the install path for license file 20/121120/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170327.142927 accepted/tizen/ivi/20170328.054925 accepted/tizen/mobile/20170328.054759 accepted/tizen/tv/20170328.054846 accepted/tizen/unified/20170328.054944 accepted/tizen/wearable/20170328.054906 submit/tizen/20170327.075259
DoHyun Pyun [Mon, 27 Mar 2017 07:10:22 +0000 (16:10 +0900)]
Modify the install path for license file

Change-Id: I1432e52513bffb2e251c788a1cbee385c7fa516a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoFix the crash issue during LE discovery 31/119331/2 accepted/tizen/common/20170316.161945 accepted/tizen/ivi/20170316.222741 accepted/tizen/mobile/20170316.222656 accepted/tizen/tv/20170316.222710 accepted/tizen/unified/20170316.222758 accepted/tizen/wearable/20170316.222725 submit/tizen/20170316.103054
DoHyun Pyun [Thu, 16 Mar 2017 10:28:06 +0000 (19:28 +0900)]
Fix the crash issue during LE discovery

Change-Id: Ifcb0d41a63b50949e62ab5ec5be20d4734851f73
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoPXP: Update the API description/documentation 56/118056/3
h.sandeep [Wed, 8 Mar 2017 11:52:06 +0000 (17:22 +0530)]
PXP: Update the API description/documentation

Change-Id: I2cf840e599aae4a448e22829692551f8f10fed37
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
8 years agoAdd the documentation for IPSP internal APIs 61/117961/1
DoHyun Pyun [Wed, 8 Mar 2017 06:43:31 +0000 (15:43 +0900)]
Add the documentation for IPSP internal APIs

Change-Id: I09d9302cff0449c477e8d1ba01d84c139ca6a082
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoAdd missing function definitions for Native internal APIs 20/117420/2 accepted/tizen/common/20170306.165231 accepted/tizen/ivi/20170306.222601 accepted/tizen/mobile/20170306.222534 accepted/tizen/tv/20170306.222547 accepted/tizen/unified/20170309.031633 accepted/tizen/wearable/20170306.222555 submit/tizen/20170306.073437 submit/tizen_unified/20170308.100404
DoHyun Pyun [Mon, 6 Mar 2017 05:00:37 +0000 (14:00 +0900)]
Add missing function definitions for Native internal APIs

Change-Id: Iaf930104fcccc912b8574c94599e244285bf5571
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoMove the ibeacon scan result structure to internal header 61/117361/1
DoHyun Pyun [Mon, 6 Mar 2017 00:57:08 +0000 (09:57 +0900)]
Move the ibeacon scan result structure to internal header

Change-Id: I23b62fd3bf7f0e5f239cea599982f9c9c32d0e21
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoAdd missing internal APIs for hf profile 89/116089/1 accepted/tizen/common/20170303.090555 accepted/tizen/ivi/20170302.121709 accepted/tizen/mobile/20170302.121206 accepted/tizen/tv/20170302.121505 accepted/tizen/wearable/20170302.121552 submit/tizen/20170302.014914
DoHyun Pyun [Thu, 23 Feb 2017 01:57:49 +0000 (10:57 +0900)]
Add missing internal APIs for hf profile

Change-Id: Ife53bfdcecaf991c11905008aea413fb263d79c6
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoFix memory leak (SVACE Id: 176026) 71/116071/1
Atul Rai [Wed, 22 Feb 2017 05:14:12 +0000 (10:44 +0530)]
Fix memory leak (SVACE Id: 176026)

Change-Id: Ife900d1265a0331a59f9a3d4293cdc3f3b3ab1b6
Signed-off-by: Atul Rai <a.rai@samsung.com>
8 years agoFixed SVACE issues (Id: 11726 168836 171554) 07/114307/1 submit/tizen/20170220.233016
Atul Rai [Fri, 10 Feb 2017 09:06:34 +0000 (14:36 +0530)]
Fixed SVACE issues (Id: 11726 168836 171554)

Change-Id: Ib8166f0e6a0996e55ebaf7d4e896faf4341de624
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoMerge latest tizen_3.0 bug fix codes 64/113264/1
DoHyun Pyun [Tue, 7 Feb 2017 05:17:16 +0000 (14:17 +0900)]
Merge latest tizen_3.0 bug fix codes

--------------------------------------------------
commit f426f42dde18b4629190022eb301e53ea215ab72
Author: Lee Hyuk <hyuk0512.lee@samsung.com>
Date:   Mon Feb 6 09:02:04 2017 +0900

    Revert "Fix the build fail for TV profile"
--------------------------------------------------

Change-Id: I0661eb19f7d88167caa7dfaadc207bcd0ef75e3f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years ago[BT CAPI] Update the version in capi spec file. 28/111628/1
Sudha Bheemanna [Mon, 23 Jan 2017 06:56:31 +0000 (12:26 +0530)]
[BT CAPI] Update the version in capi spec file.

Updated the version of capi for proper library linking.

Change-Id: I70b8783b757cee9943aeb1e054fee1fd83a61808
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
8 years agoFix the build error for GCC6 98/104298/1 submit/tizen/20161219.111502 submit/tizen/20170116.115935
DoHyun Pyun [Tue, 13 Dec 2016 04:47:25 +0000 (13:47 +0900)]
Fix the build error for GCC6

Change-Id: I92a5c244b3c6ca72a51d2dd4b770975237616b56
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoHPS: Assign SIG defined UUIDs for HPS attributes. 92/59492/3
h.sandeep [Tue, 16 Feb 2016 05:10:33 +0000 (10:40 +0530)]
HPS: Assign SIG defined UUIDs for HPS attributes.

Change-Id: I12d98b758c6ee7490a29381651caf036d527cc37
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
8 years agoMerge changes I2d80c474,I4b17e6da into tizen
Pyun DoHyun [Mon, 5 Dec 2016 05:30:34 +0000 (21:30 -0800)]
Merge changes I2d80c474,I4b17e6da into tizen

* changes:
  Remove Profile Build Dependency: do it at runtime
  Defragment CAPI for Profiles (2/2)