platform/core/api/bluetooth.git
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>
7 years agoFix build error 85/101485/1
Gowtham Anandha Babu [Wed, 30 Nov 2016 12:11:42 +0000 (17:41 +0530)]
Fix build error

Change-Id: I49f5aa9d71c22074e8cfec2f874d72cdbb518fcb
error: braces around scalar initializer.

7 years agohid: Fix uninitialized structure members 47/101047/1
Syam Sidhardhan [Mon, 28 Nov 2016 10:12:50 +0000 (15:42 +0530)]
hid: Fix uninitialized structure members

[Issue#] cppcheck automated tool reported error
[Problem] Uninitialized memory access reported
[Cause & Measure] Not initialized structure members
[Checking Method] cppcheck automated test tool for Tizen
[Team] Basic connection
[Developer] Syam Sidhardhan <s.syam@samsung.com>
[Solution company] Samsung

Change-Id: Idd470ebb3f82e0123ac96761ec57d8555db68db3

7 years agoFix svace 2.2 issues 74/100774/2
DoHyun Pyun [Tue, 29 Nov 2016 07:33:42 +0000 (16:33 +0900)]
Fix svace 2.2 issues

Change-Id: I342ae1a404bb13afc65ca8d891d1d88fa0477600
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoMerge "DPM: Handle the modifief bt-frwk API return values" into tizen
Pyun DoHyun [Wed, 30 Nov 2016 00:58:52 +0000 (16:58 -0800)]
Merge "DPM: Handle the modifief bt-frwk API return values" into tizen

7 years agoDPM: Handle the modifief bt-frwk API return values 87/100887/1
h.sandeep [Tue, 29 Nov 2016 11:55:15 +0000 (17:25 +0530)]
DPM: Handle the modifief bt-frwk API return values

Change-Id: I219ec4c043e8e94806ee1e98cbb7a138c10eb659
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoPXP: Modify APIs and Signal handle implementation 20/99920/7
h.sandeep [Thu, 24 Nov 2016 11:14:15 +0000 (16:44 +0530)]
PXP: Modify APIs and Signal handle implementation

1. Add Seperate APIs for Monitor and reporter role.
2. Add Sperate callback for proximity profile connection.
3. Add API to set scan filter for Proximity UUID

Change-Id: Ia733b9fa2758cc641ee5cfb5eb090cd8ecf4573b
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoRemove the scan filter supported check logic for the platform filter 78/99578/1 accepted/tizen/common/20161124.165957 accepted/tizen/common/20170111.155017 accepted/tizen/common/20170111.203234 accepted/tizen/ivi/20161123.232920 accepted/tizen/mobile/20161123.232822 accepted/tizen/tv/20161123.232840 accepted/tizen/wearable/20161123.232901 submit/tizen/20161123.084000 submit/tizen_common/20170111.150147 submit/tizen_common/20170111.202935
DoHyun Pyun [Wed, 23 Nov 2016 09:24:05 +0000 (18:24 +0900)]
Remove the scan filter supported check logic for the platform filter

Change-Id: Ic8488184a7c66111064ae1c55c57b2f4c227614f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoiBeacon: Modify ibeacon scan filter API parameters 66/99566/3
h.sandeep [Wed, 23 Nov 2016 05:51:04 +0000 (11:21 +0530)]
iBeacon: Modify ibeacon scan filter API parameters

Change-Id: I91aff1e6261d8f0c7a7f50632424320f69844019
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoThis change is not required. C# TC needs to be changed. 90/99290/2
Gowtham Anandha Babu [Tue, 22 Nov 2016 09:49:53 +0000 (01:49 -0800)]
This change is not required. C# TC needs to be changed.

Revert "[GATT] Fix to change write_type prop of charc"

This reverts commit 13d8aaeaf81732bd0504714c6da1dfb3235b05f7.

Change-Id: I8977d95b21a24ffa46e337299a1553a285d31010

7 years agoiBeacon: Fix naming convention. 40/99140/1 accepted/tizen/common/20161122.193014 accepted/tizen/ivi/20161123.000052 accepted/tizen/mobile/20161122.235954 accepted/tizen/tv/20161123.000021 accepted/tizen/wearable/20161123.000035 submit/tizen/20161122.051739
h.sandeep [Tue, 22 Nov 2016 04:34:12 +0000 (10:04 +0530)]
iBeacon: Fix naming convention.

Change-Id: I55e83cfc1a2606aa10224dc1fa6232a563594b02
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoMerge "[GATT] Fix to change write_type prop of charc" into tizen
Pyun DoHyun [Tue, 22 Nov 2016 00:39:18 +0000 (16:39 -0800)]
Merge "[GATT] Fix to change write_type prop of charc" into tizen

7 years agoFix the doxygen reference warning 64/99064/1
Hyuk Lee [Mon, 21 Nov 2016 23:26:53 +0000 (08:26 +0900)]
Fix the doxygen reference warning

Change-Id: Iaa91507920839f60f02fe9ea9b2ae6aeb0b88780
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
7 years ago[GATT] Fix to change write_type prop of charc 05/99005/1
Gowtham Anandha Babu [Mon, 21 Nov 2016 11:26:06 +0000 (16:56 +0530)]
[GATT] Fix to change write_type prop of charc

Update is not required if values are same
and vice-versa.

Change-Id: Ib6f35878e7d9483bd19c7e2eaa0c73e985d69ecd
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoFix: Build Errors for Wearable, TV, Mobile, IVI profiles. 49/98149/1 accepted/tizen/common/20161117.085256 accepted/tizen/common/20161118.090536 accepted/tizen/ivi/20161121.011959 accepted/tizen/mobile/20161121.011653 accepted/tizen/tv/20161121.011817 accepted/tizen/wearable/20161121.011907 submit/tizen/20161117.015745 submit/tizen/20161118.002314
h.sandeep [Wed, 16 Nov 2016 07:00:10 +0000 (12:30 +0530)]
Fix: Build Errors for Wearable, TV, Mobile, IVI profiles.

Fixed the error: unknown type name bt_hf_vendor_dep_at_cmd_s.

Change-Id: Ic5011842fac0a966779b05350467194ec4a6fd55
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoiBeacon: Add API to register iBeacon scan filter. 32/90932/10
h.sandeep [Wed, 5 Oct 2016 04:43:24 +0000 (10:13 +0530)]
iBeacon: Add API to register iBeacon scan filter.

1. Adds the API to register for ibeacon scan reports
2. Handles the iBeacon scan report events

Change-Id: I68f73bad3dec532ffdde8fa563fa771b0b62b32c
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoCode sync from 2.3 branch 89/97489/1 accepted/tizen/common/20161115.200458 submit/tizen/20161115.034359
Sangki Park [Fri, 11 Nov 2016 08:41:17 +0000 (17:41 +0900)]
Code sync from 2.3 branch

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

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

[Problem] Code sync from 2.3 branch
[Cause & Measure] N/A
[Checking Method] N/A

[Team] Basic connection
[Developer] Sangki Park
[Solution company] Samsung
[Change Type] Specific change

Change-Id: I7566caa9f320efbce4d26028309a75f438e402a7
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Conflicts:
src/bluetooth-common.c
Change-Id: I7566caa9f320efbce4d26028309a75f438e402a7

7 years agoWhen GATT client is destroyed, unset service changed watcher 24/97424/1
Seungyoun Ju [Mon, 1 Feb 2016 07:51:14 +0000 (16:51 +0900)]
When GATT client is destroyed, unset service changed watcher

Change-Id: Ie90820e7fab11434b7d874f0d8da40620e5a1cd9
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoAdd the bt_opp_get_transfer_progress internal API 64/97064/1
DoHyun Pyun [Fri, 11 Nov 2016 05:37:15 +0000 (14:37 +0900)]
Add the bt_opp_get_transfer_progress internal API

Change-Id: I973ba9091b47161b5b28873de6116fd30d36ec97
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoPXP: Add base code Proximity Profile 82/93582/7 accepted/tizen/common/20161110.190128 accepted/tizen/ivi/20161111.001144 accepted/tizen/mobile/20161111.001046 accepted/tizen/tv/20161111.001103 accepted/tizen/wearable/20161111.001125 submit/tizen/20161110.000647
h.sandeep [Tue, 25 Oct 2016 04:17:03 +0000 (09:47 +0530)]
PXP: Add base code Proximity Profile

Change-Id: Icab8d0a83ea0aeb21b8e9d9555608214a3e8ad45
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoAdd the type cast code for arm64 build 27/96027/1 accepted/tizen/ivi/20161108.001300 accepted/tizen/mobile/20161108.001158 accepted/tizen/tv/20161108.001232 accepted/tizen/wearable/20161108.001245 submit/tizen/20161107.085724
DoHyun Pyun [Mon, 7 Nov 2016 10:52:07 +0000 (19:52 +0900)]
Add the type cast code for arm64 build

Change-Id: Id0712f45512f3f0a0b585ebec4bd6990c8a0d284
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoAdd the hid custom event sending API to the internal header 18/95818/2
DoHyun Pyun [Mon, 7 Nov 2016 00:45:39 +0000 (09:45 +0900)]
Add the hid custom event sending API to the internal header

Change-Id: I43dfdd9f2be4087e6671df68891648754385c757
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoAdd internal APIs for the application's pairing procedure 16/95816/2
DoHyun Pyun [Mon, 7 Nov 2016 00:40:12 +0000 (09:40 +0900)]
Add internal APIs for the application's pairing procedure

Change-Id: I2f394c569713a310a91c7651a1ff1371ecb62994
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoMove audio gateway APIs from internal to extension header 13/95813/1
DoHyun Pyun [Mon, 7 Nov 2016 00:15:19 +0000 (09:15 +0900)]
Move audio gateway APIs from internal to extension header

Change-Id: I50dd9bc5a39b9444c99882436a6271930c5f74a3
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoMerge the code from private 09/95809/1
DoHyun Pyun [Thu, 3 Nov 2016 02:37:14 +0000 (11:37 +0900)]
Merge the code from private

branch:devel/bluetooth/master
=================================================
commit e1867146dceebc8550edb1431f40fe0c89d2353f
Author: Deokhyun Kim <dukan.kim@samsung.com>
Date:   Mon Oct 24 18:26:12 2016 +0900
==================================================

Change-Id: I3917b9d13076820f5aa7352649a9c9a81e32dda8
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoAdd the internal API to get the pbap connected status 01/93601/1 accepted/tizen/3.0/ivi/20161103.002130 accepted/tizen/3.0/mobile/20161103.002040 accepted/tizen/3.0/tv/20161103.002100 accepted/tizen/3.0/wearable/20161103.002116 submit/tizen_3.0/20161102.022329
DoHyun Pyun [Tue, 25 Oct 2016 05:11:22 +0000 (14:11 +0900)]
Add the internal API to get the pbap connected status

Change-Id: Ied719209bd17b9b9dd541d30852a62e590c0b6f5
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoAdd to check gatt support 56/92056/2
Taejin Woo [Thu, 13 Oct 2016 05:26:11 +0000 (14:26 +0900)]
Add to check gatt support

Change-Id: I52aa9f5492294e06e8230dcde0a1184fd720d835
Signed-off-by: Taejin Woo <tt.woo@samsung.com>
7 years agoCheck advertsing state 92/90992/1 accepted/tizen/3.0/ivi/20161011.053534 accepted/tizen/3.0/mobile/20161015.032740 accepted/tizen/3.0/tv/20161016.003502 accepted/tizen/3.0/wearable/20161015.081930 accepted/tizen/common/20161005.165617 accepted/tizen/ivi/20161006.075751 accepted/tizen/mobile/20161006.075708 accepted/tizen/tv/20161006.075723 accepted/tizen/wearable/20161006.075736 submit/tizen/20161005.091935 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000000 submit/tizen_3.0_ivi/20161010.000010 submit/tizen_3.0_mobile/20161015.000001 submit/tizen_3.0_tv/20161015.000000 submit/tizen_3.0_wearable/20161015.000001
Taejin Woo [Wed, 5 Oct 2016 08:46:56 +0000 (17:46 +0900)]
Check advertsing state

Change-Id: I4e9156bf035a14fb8c5804a07552141d86216cd4
Signed-off-by: Taejin Woo <tt.woo@samsung.com>
7 years agoFix the svace issue 29/90229/1 accepted/tizen/common/20160929.163305 accepted/tizen/ivi/20160930.001116 accepted/tizen/mobile/20160930.001108 accepted/tizen/tv/20160930.001113 accepted/tizen/wearable/20160930.001110 submit/tizen/20160929.061152
DoHyun Pyun [Thu, 29 Sep 2016 06:09:41 +0000 (15:09 +0900)]
Fix the svace issue

Change-Id: I0d5f4a3b202782248c2a77655b7345d068280196
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoRemove unused ipsp internal function 69/90069/1
DoHyun Pyun [Wed, 28 Sep 2016 07:33:04 +0000 (16:33 +0900)]
Remove unused ipsp internal function

Change-Id: If755e44aa5196a290dfee86d81f758c4f0e97e29
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoModify return of error handle 60/89960/1 accepted/tizen/common/20160928.164250 accepted/tizen/ivi/20160929.002005 accepted/tizen/mobile/20160929.001901 accepted/tizen/tv/20160929.001914 accepted/tizen/wearable/20160929.002041 submit/tizen/20160928.062430
Taejin Woo [Wed, 28 Sep 2016 01:31:13 +0000 (10:31 +0900)]
Modify return of error handle

Change-Id: I4ddb08c3c0bc681443459b758075b2d52f406265
Signed-off-by: Taejin Woo <tt.woo@samsung.com>
7 years agoFix the Svace issue 32/89532/1 accepted/tizen/common/20160926.154748 accepted/tizen/ivi/20160927.083811 accepted/tizen/mobile/20160927.074222 accepted/tizen/tv/20160927.084015 accepted/tizen/wearable/20160927.083841 submit/tizen/20160926.090601
Hyuk Lee [Mon, 26 Sep 2016 02:52:00 +0000 (11:52 +0900)]
Fix the Svace issue

- WGID : 48912

Change-Id: I17c4715064d6c2e45606ec818cd000534752d6d9
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
7 years agoFix native api reference warnings 58/89258/1 accepted/tizen/common/20160923.160938 accepted/tizen/ivi/20160927.020213 accepted/tizen/mobile/20160927.020110 accepted/tizen/tv/20160927.020148 accepted/tizen/wearable/20160927.020135 submit/tizen/20160923.081806
DoHyun Pyun [Fri, 23 Sep 2016 01:44:49 +0000 (10:44 +0900)]
Fix native api reference warnings

Change-Id: If9db28716017fec0154f439bb5b110e7f297f8c3
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoIncrease the package version 27/89127/1
DoHyun Pyun [Thu, 22 Sep 2016 09:22:44 +0000 (18:22 +0900)]
Increase the package version

Change-Id: Ic07b7c5efb2a248b0a4a492aaeea24778fafa93a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoAdd the get uuid name API into public native API 36/88436/6 accepted/tizen/common/20160922.120558 accepted/tizen/ivi/20160922.233145 accepted/tizen/mobile/20160922.233121 accepted/tizen/tv/20160922.233139 accepted/tizen/wearable/20160922.233131 submit/tizen/20160922.015934
DoHyun Pyun [Mon, 19 Sep 2016 05:35:12 +0000 (14:35 +0900)]
Add the get uuid name API into public native API

Change-Id: I03ec693515984055c3b9cff7072d54aa356841fc
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoMerge "Revert a internal API" into tizen
Pyun DoHyun [Thu, 22 Sep 2016 00:58:33 +0000 (17:58 -0700)]
Merge "Revert a internal API" into tizen

7 years agoRevert a internal API 07/89007/1
Taejin Woo [Wed, 21 Sep 2016 11:12:49 +0000 (20:12 +0900)]
Revert a internal API

Change-Id: Ida51834443c986398e26349b9a925a144f28a8a9
Signed-off-by: Taejin Woo <tt.woo@samsung.com>
7 years agoFix the internal UTC fail issue 45/88945/1
Hyuk Lee [Wed, 21 Sep 2016 07:17:24 +0000 (16:17 +0900)]
Fix the internal UTC fail issue

Change-Id: I58c4cfb439e12d975a0d83c40dc65a14bd8ca95d
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
7 years agoAdd MTU related APIs into internal header 46/88846/2
DoHyun Pyun [Wed, 21 Sep 2016 02:21:29 +0000 (11:21 +0900)]
Add MTU related APIs into internal header

Change-Id: I87575dfaaaf8568a131e2a021150ccf8a2798d87
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoAdd set LE mode APIs into public native API 25/88425/2
DoHyun Pyun [Mon, 19 Sep 2016 04:02:39 +0000 (13:02 +0900)]
Add set LE mode APIs into public native API

Change-Id: Iaae532130becad92c4e94c7e74afeab525f56130
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix tizen coding style errors and warnings 18/88418/1 accepted/tizen/common/20160921.161545 accepted/tizen/ivi/20160922.041625 accepted/tizen/mobile/20160922.041544 accepted/tizen/tv/20160922.041612 accepted/tizen/wearable/20160922.041603 submit/tizen/20160921.010208
DoHyun Pyun [Mon, 19 Sep 2016 01:57:43 +0000 (10:57 +0900)]
Fix tizen coding style errors and warnings

Change-Id: I6512abca2b2a19e29688ee82dfb7f2773398e4cd
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoAdd oob extended APIs in public native API 84/87184/3
DoHyun Pyun [Wed, 7 Sep 2016 00:45:27 +0000 (09:45 +0900)]
Add oob extended APIs in public native API

Change-Id: I28b08740dbee527bf0475fe7c7ed52ff233927fc
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoAdd gatt service changed callback APIs 90/87190/5
DoHyun Pyun [Wed, 7 Sep 2016 01:34:43 +0000 (10:34 +0900)]
Add gatt service changed callback APIs

Change-Id: I455f1e8015e1a09d57248db1be450344a012a5ca
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoAdd bt_device_set_profile_restricted definition for tv and wearable 99/87899/1 accepted/tizen/common/20160912.181425 accepted/tizen/ivi/20160913.041806 accepted/tizen/mobile/20160913.041713 accepted/tizen/tv/20160913.041726 accepted/tizen/wearable/20160913.041747 submit/tizen/20160912.055637
DoHyun Pyun [Mon, 12 Sep 2016 05:24:27 +0000 (14:24 +0900)]
Add bt_device_set_profile_restricted definition for tv and wearable

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