platform/core/api/bluetooth.git
6 years agoEnable GATT relay feature 90/166390/1 submit/tizen/20180110.041217 submit/tizen/20180111.051222
DoHyun Pyun [Wed, 10 Jan 2018 04:14:11 +0000 (13:14 +0900)]
Enable GATT relay feature

Change-Id: I1a8e044a252c7f7d6bdce4cdc03fb307e52965f9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years ago [bluetooth] bt_unit_test changes for IPSP Support in TizenNext 31/163631/3
Abhishek Chandra [Tue, 12 Dec 2017 11:58:01 +0000 (17:28 +0530)]
 [bluetooth] bt_unit_test changes for IPSP Support in TizenNext

 Following IPSP functions support has been added through this patch
    1) IPSP intailize
    2) IPSP deinitailize
    3) IPSP connect
    4) IPSP disconnect
    5) Callbacks and Event handling for IPSP

Change-Id: I5746265bb3eeec090054bfce75c577c7b2dc918e
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
6 years agoFix TC fail issue in multi ADV senario 09/163009/1
DoHyun Pyun [Thu, 7 Dec 2017 01:52:38 +0000 (10:52 +0900)]
Fix TC fail issue in multi ADV senario

Change-Id: I443748754ed8322a5106bf55ab51596a30c048ba
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix the prevent issues 43/162743/1 accepted/tizen/unified/20171207.070146 submit/tizen/20171206.015028
DoHyun Pyun [Tue, 5 Dec 2017 06:44:43 +0000 (15:44 +0900)]
Fix the prevent issues

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

Change-Id: I60759a6c5973644f7b7622324c65bdae4f918e4f
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoAdd new bluetooth features (OOB, GATT Server / Client) 10/162510/1
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: Ie1e8ac313158218ac8c34ad2b866a20e25420a1b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoAdd "not supported" check logic in the device API 11/161211/1
DoHyun Pyun [Wed, 22 Nov 2017 06:49:33 +0000 (15:49 +0900)]
Add "not supported" check logic in the device API

Change-Id: I5e4ba80900f03aa48bcb022aae544725ee16e905
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoGATT: Fix segmentation fault while using GATT RELAY feature 60/157460/2
Anupam Roy [Tue, 24 Oct 2017 12:34:37 +0000 (18:04 +0530)]
GATT: Fix segmentation fault while using GATT RELAY feature

bluetooth_gatt_set_descriptor_value() and bluetooth_gatt_register_service()
functions are to be used only in GATT DIRECT method.
These were wrongly placed inside GATT RELAY feature. Hence removed.
bluetooth_gatt_register_service() method was missed in GATT DIRECT method.

Change-Id: Ic8306e29069d34d429d57e5224fc5e88b1f8aba9
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
6 years agoFix the API reference error for PBAP client 89/156289/1
DoHyun Pyun [Wed, 18 Oct 2017 02:36:12 +0000 (11:36 +0900)]
Fix the API reference error for PBAP client

Change-Id: Ic965054f0a05d8ea21bf45d4575d714d9bff3e0c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix the svace issues 27/156127/1 accepted/tizen/unified/20171018.062438 submit/tizen/20171017.074221
DoHyun Pyun [Tue, 17 Oct 2017 07:39:33 +0000 (16:39 +0900)]
Fix the svace issues

Change-Id: I1dcfb8bcc689e8aec6c42452f522b83dcdda42dc
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix the crash issue in OTP manual testcase 54/155154/1
DoHyun Pyun [Thu, 12 Oct 2017 05:45:14 +0000 (14:45 +0900)]
Fix the crash issue in OTP manual testcase

Change-Id: I8a167f3ce953f8c4e4bc0d387be90de2812a0eb9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix the svace major issues 85/153585/1 accepted/tizen/unified/20171010.063745 submit/tizen/20171010.004335
DoHyun Pyun [Fri, 29 Sep 2017 00:50:57 +0000 (09:50 +0900)]
Fix the svace major issues

Change-Id: Ie98b199946c1b3e66ee7180c4b45b30ed7524930
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix the build error for x86_64 75/153075/1
DoHyun Pyun [Thu, 28 Sep 2017 01:57:30 +0000 (10:57 +0900)]
Fix the build error for x86_64

Change-Id: I5ab19de55fe1c5eb1fa55733b15bcb11ffa53f6a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix the prevent issues 79/152679/1
DoHyun Pyun [Wed, 27 Sep 2017 01:23:25 +0000 (10:23 +0900)]
Fix the prevent issues

Change-Id: Ifd8168fd03ceeb4a0cb76dcdf8d49158bd1de8a1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoAdd the GATT Relay feature for the dual stack adaptation 76/151276/3
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: I3b9d6efd865e8b72e91e6cbe86bb3a1817a5515a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoNULL assertion in g_ascii_strcasecmp 98/151498/4
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: I2f3702d4067c88fb1c36307642dd4dd1d0e40dbc
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
6 years agoMerge "SVACE Fixes" into tizen
Pyun DoHyun [Tue, 12 Sep 2017 10:34:22 +0000 (10:34 +0000)]
Merge "SVACE Fixes" into tizen

6 years agoSVACE Fixes 14/149114/6
Anupam Roy [Mon, 11 Sep 2017 12:38:20 +0000 (18:08 +0530)]
SVACE Fixes

ID's: 252909, 258247, 258248, 258249

Change-Id: I2047d86323c95d58610a71446b727f8375d0147b
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
6 years agoFix : GATT client services are not updated 97/149497/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>
6 years agoFix memory corruption 96/149496/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>
6 years agoFix tizen coding style errors and warnings 17/149317/1 accepted/tizen/unified/20170915.185023 submit/tizen/20170912.093658
DoHyun Pyun [Tue, 12 Sep 2017 05:34:15 +0000 (14:34 +0900)]
Fix tizen coding style errors and warnings

Change-Id: Ia82b0ab5149a020ea9880c6e77212c96bffcb8ce
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoApply tizen 3.0 based product patchsets 02/148102/1 accepted/tizen/unified/20170908.061944 submit/tizen/20170906.230917
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: I56eff14e0a9afc6fbac6e3d8b914d2846be99ad0
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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

7 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>
7 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>
7 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>
7 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>
7 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

7 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>
7 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

7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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

7 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>
7 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>
7 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>
7 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

7 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>
7 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

7 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>
7 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

7 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>
7 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>
7 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

7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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)

7 years agoMerge "Defragment CAPI for Profiles (1/2)" into tizen
Pyun DoHyun [Mon, 5 Dec 2016 05:30:02 +0000 (21:30 -0800)]
Merge "Defragment CAPI for Profiles (1/2)" into tizen

7 years agoAdd the proximity function into TV profile 29/102129/1 submit/tizen/20161205.050350
DoHyun Pyun [Mon, 5 Dec 2016 01:10:18 +0000 (10:10 +0900)]
Add the proximity function into TV profile

Change-Id: I14b66113b5d376a2da779df03eaacc7c883abd95
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoRemove Profile Build Dependency: do it at runtime 22/101822/2
MyungJoo Ham [Fri, 2 Dec 2016 07:52:04 +0000 (16:52 +0900)]
Remove Profile Build Dependency: do it at runtime

- This is for Tizen 4.0.

  : Tizen 4.0 Configurability and Build Blocks require
  to remove all profile-depending build options in spec files.
  (No More profile macros)

- It is recommended to distinguish features/profiles at runtime.
 unless it incurs too much overhead, which requires you to
 create multiple binaries and subpackages.

- If you intent not to have capi-network-bluetooth-test.rpm in
 TV profile, please create a JIRA-TRE issue of package removal,
 not %if TV; test fiels; #endif.

Change-Id: I2d80c4745202c028ca5c2a2f1662933c60d38b33
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agoDefragment CAPI for Profiles (1/2) 18/101518/7
MyungJoo Ham [Thu, 1 Dec 2016 09:58:35 +0000 (18:58 +0900)]
Defragment CAPI for Profiles (1/2)

- For easier review, I didn't merge the files at the (1/2) patch.
 They will be merged in a following patch (2/2)

- This is for Tizen 4.0 Configurability / Building Blocks
  (Fragmentation of CAPI is a blocking issue)

- @ SDK (yongheon.shin@samsung.com): please confirm that this "merged"
  CAPI header (sync_manager.h) is going to be filetered for SDK rootstraping
  so that Tizen APP developers won't be able to see MOBILE-only APIs in
  WEARABLE development.

- CC'ed API (hobum.kwon@samsung.com) to notify what's going on for CAPI
  fragmentation.

Change-Id: I0e5814f1de867ff082dc7908d35bca8f0909426e
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agoDefragment CAPI for Profiles (2/2) 34/101534/6
MyungJoo Ham [Thu, 1 Dec 2016 10:28:12 +0000 (19:28 +0900)]
Defragment CAPI for Profiles (2/2)

- This is for Tizen 4.0 Configurability / Building Blocks
  (Fragmentation of CAPI is a blocking issue)

- @ SDK (yongheon.shin@samsung.com): please confirm that this "merged"
  CAPI header (sync_manager.h) is going to be filetered for SDK rootstraping
  so that Tizen APP developers won't be able to see MOBILE-only APIs in
  WEARABLE development.

- CC'ed API (hobum.kwon@samsung.com) to notify what's going on for CAPI
  fragmentation.

ps. Another commit that resolves profile-build-dependency will follow soon.

Change-Id: I4b17e6da604ac6b8001a1d36e52961fa025b31bb
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agoBuild Error Fix. 42/101742/1
MyungJoo Ham [Fri, 2 Dec 2016 05:45:23 +0000 (14:45 +0900)]
Build Error Fix.

Commit of:
committer Pyun DoHyun <dh79.pyun@samsung.com>
Wed, 30 Nov 2016 09:59:01 +0900 (16:59 -0800)
commit e56a4b463b1ed862135a6a5b81f7d5f33b33a588

Created build errors. In order to stability commit
https://review.tizen.org/gerrit/#/c/101518/
and
https://review.tizen.org/gerrit/#/c/101534
, I'm fixing this.

Change-Id: Ib011383578c38cecb3be2acfb74c5790acb881f3
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>