platform/core/connectivity/bluetooth-frwk.git
6 years agogatt client: Fix SIGABRT 68/163368/1 accepted/tizen_3.0_common accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable tizen_3.0 accepted/tizen/3.0/common/20171214.102437 accepted/tizen/3.0/mobile/20171214.091005 accepted/tizen/3.0/tv/20171214.091010 accepted/tizen/3.0/wearable/20171214.091015 submit/tizen_3.0/20171211.001202
Anupam Roy [Mon, 13 Nov 2017 12:35:02 +0000 (18:05 +0530)]
gatt client: Fix SIGABRT

JIRA Issue: http://suprem.sec.samsung.net/jira/browse/TSAM-14037

[Problem] Application terminates when GATT descriptor
          'WriteValue' API fails.
[Cause] In case of error in BlueZ DBUS API 'WriteValue', NULL
        is received in g_dbus_connection_call_finish() in gatt
        client. So, instead of returning after chekcing
        error value, code was trying to unref NULL value causing
        application to terminate abnormally.
[Measure] Return from GATT write descriptor callback, in case of error.
[Checking Method] Perform GATT desc 'WriteValue' using bt_unit_test.

Change-Id: Iadddd7084b1a76acb7667e77c4acf7e6a0a9a4f5
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
6 years agoRevert the previous SR commit for binary stabilization 67/163367/1
DoHyun Pyun [Mon, 11 Dec 2017 00:10:09 +0000 (09:10 +0900)]
Revert the previous SR commit for binary stabilization

Change-Id: Ia659d1a04857a515d9f880c0bc573a80e898844b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoUse Trusted Profiles instead of Restricted Profiles 35/163035/1
Biman Paul [Fri, 4 Aug 2017 14:09:20 +0000 (19:39 +0530)]
Use Trusted Profiles instead of Restricted Profiles

Trusted profiles and restricted profiles concept are similar.
Trusted profiles concept supports 3 states for each profile:
1. Unknown state: Let the user decide using authorization.
2. Blocked: Do not allow connection
3. Trusted: Always accept connection
In case of restricted profiles we only have Blocked and Trusted
states but Unknown state can be treated as Trusted because by
default, we should allow connection in case of Audio profiles.
We can remove Restricted Profiles implementation and this would
reduce redundant code.

Change-Id: Ib1b924d0d44cf3eeb07c9d43921e80054f1a8bfb
Signed-off-by: Biman Paul <biman.paul@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoRevert "Use Trusted Profiles instead of Restricted Profiles" 34/163034/1 submit/tizen_3.0/20171207.042038
DoHyun Pyun [Thu, 7 Dec 2017 04:19:17 +0000 (13:19 +0900)]
Revert "Use Trusted Profiles instead of Restricted Profiles"

This reverts commit 271615462822024cacfd279d7eb1970698fa80b7.

Change-Id: I2ddc8d55ae16d9f606f3c2d3e78be6a48b759105
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agogatt client: Fix SIGABRT 01/159901/2 submit/tizen_3.0/20171207.001107
Anupam Roy [Mon, 13 Nov 2017 12:35:02 +0000 (18:05 +0530)]
gatt client: Fix SIGABRT

JIRA Issue: http://suprem.sec.samsung.net/jira/browse/TSAM-14037

[Problem] Application terminates when GATT descriptor
          'WriteValue' API fails.
[Cause] In case of error in BlueZ DBUS API 'WriteValue', NULL
        is received in g_dbus_connection_call_finish() in gatt
        client. So, instead of returning after chekcing
        error value, code was trying to unref NULL value causing
        application to terminate abnormally.
[Measure] Return from GATT write descriptor callback, in case of error.
[Checking Method] Perform GATT desc 'WriteValue' using bt_unit_test.

Change-Id: I9fd230e091e5a16618c8d36ebbe94bafc768ef92
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
6 years agoFix SVace issue. 82/149382/1
Deokhyun Kim [Tue, 12 Sep 2017 06:53:46 +0000 (15:53 +0900)]
Fix SVace issue.

Change-Id: Ib071f1401b85fee060ee2623e0745d3e01c2b798
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoFix mem leak. 66/147066/1
Deokhyun Kim [Fri, 1 Sep 2017 01:16:27 +0000 (10:16 +0900)]
Fix mem leak.

Change-Id: If88259f0427864f518fd308b10e76c6d549fc5d7
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoFix SVace issue. 32/147032/1
Deokhyun Kim [Fri, 1 Sep 2017 00:15:48 +0000 (09:15 +0900)]
Fix SVace issue.

Change-Id: I7e378df32053d85e7a8998b946f1f30b58e4e5de
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoNo need to return dbus invocation. 71/146971/1
Deokhyun Kim [Thu, 31 Aug 2017 09:50:24 +0000 (18:50 +0900)]
No need to return dbus invocation.

Change-Id: Icd79f3e2843118ec0986291201f631d0316a7a51
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoFix privilege routine & vconf type for HID barcode feature. 94/145894/1
Deokhyun Kim [Thu, 24 Aug 2017 07:17:17 +0000 (16:17 +0900)]
Fix privilege routine & vconf type for HID barcode feature.

Change-Id: Iba852fc8c14def5d94e5b2bf4dd03b5c2784b480
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoMerge "Use Trusted Profiles instead of Restricted Profiles" into tizen_3.0
Pyun DoHyun [Mon, 14 Aug 2017 00:05:43 +0000 (00:05 +0000)]
Merge "Use Trusted Profiles instead of Restricted Profiles" into tizen_3.0

6 years agoUse Trusted Profiles instead of Restricted Profiles 12/143612/3
Biman Paul [Fri, 4 Aug 2017 14:09:20 +0000 (19:39 +0530)]
Use Trusted Profiles instead of Restricted Profiles

Trusted profiles and restricted profiles concept are similar.
Trusted profiles concept supports 3 states for each profile:
1. Unknown state: Let the user decide using authorization.
2. Blocked: Do not allow connection
3. Trusted: Always accept connection
In case of restricted profiles we only have Blocked and Trusted
states but Unknown state can be treated as Trusted because by
default, we should allow connection in case of Audio profiles.
We can remove Restricted Profiles implementation and this would
reduce redundant code.

Change-Id: Idd38fc74c2115d6cd913680c549f9129d4a91439
Signed-off-by: Biman Paul <biman.paul@samsung.com>
6 years agobt-service: Fix memory leak 30/143630/3
Syam Sidhardhan [Thu, 10 Aug 2017 16:23:18 +0000 (21:53 +0530)]
bt-service: Fix memory leak

Fix memory leak
bt-service-event-receiver.c:2345]: (error) Memory leak: param
bt-service-event-receiver.c:2345]: (error) Memory leak: ipsp_param
bt-service-event-receiver.c:2357]: (error) Memory leak: param
bt-service-event-receiver.c:2357]: (error) Memory leak: ipsp_param
+more

Change-Id: I64ca60cb979ad465727b714a29e0bbc2fc814259
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
6 years agoFix memory leak and few cosmetic changes for static tools 29/143629/2
Syam Sidhardhan [Mon, 31 Jul 2017 13:00:34 +0000 (18:30 +0530)]
Fix memory leak and few cosmetic changes for static tools

Static tools demands the code should handle all error cases.
Fix memory leak and static tools demands.

Change-Id: Idebd2ebf0222067da2acc796b19441a5cb0584f1
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
6 years agobt-service: dpm: Fix Uninitialized variables 28/143628/2
Syam Sidhardhan [Mon, 31 Jul 2017 09:17:34 +0000 (14:47 +0530)]
bt-service: dpm: Fix Uninitialized variables

Fix memory leak

[Problem] Fix uninitialized variable

[bt-service-dpm.c:177]: (error) Uninitialized variable: device_list
[bt-service-dpm.c:227]: (error) Uninitialized variable: device_list
[bt-service-dpm.c:222]: (error) Uninitialized variable: device_list
[bt-service-dpm.c:276]: (error) Uninitialized variable: device_list
+more

Change-Id: Iee9b8307fd8662b21f162a13c35b5379bc0ff817
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
6 years agobt_service: map: Fix proxy leak and double unref 27/143627/2
Syam Sidhardhan [Mon, 31 Jul 2017 09:07:36 +0000 (14:37 +0530)]
bt_service: map: Fix proxy leak and double unref

We need to unref the session proxy. We need to avoid double unref

(error) Memory leak: session_proxy
(error) Memory pointed to by 'value' is freed twice

Change-Id: I94324727ecdc1f586eacb8f785206098b2a648ad
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
6 years agobt-service: pbap: Fix invalid allocation and free 26/143626/2
Syam Sidhardhan [Mon, 31 Jul 2017 09:02:27 +0000 (14:32 +0530)]
bt-service: pbap: Fix invalid allocation and free

[Problem] Fix invalid free
[Cause & Measure]  (error) Mismatching allocation and deallocation: filters

Change-Id: Ia2efb236dc5af87cf07ad1a5298bdfb0eca1f321
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
6 years agohttp_proxy: Fix memory leak by remove unwanted code 25/143625/2
Syam Sidhardhan [Mon, 31 Jul 2017 08:59:16 +0000 (14:29 +0530)]
http_proxy: Fix memory leak by remove unwanted code

[Problem] Fix memory leak

Change-Id: I05d8fc5f8dce5db63ceed2d6e1759dad89d0c248
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
6 years agoMerge "Fix improper use of "GetAll" dbus method" into tizen_3.0
Pyun DoHyun [Tue, 8 Aug 2017 23:16:38 +0000 (23:16 +0000)]
Merge "Fix improper use of "GetAll" dbus method" into tizen_3.0

6 years agoFix improper use of "GetAll" dbus method 00/143000/3
Nagaraj D R [Thu, 20 Jul 2017 10:04:14 +0000 (15:34 +0530)]
Fix improper use of "GetAll" dbus method

Unnecessary use of "GetAll" dbus method on bluetoothd
interface where "Get" dbus method could have been used

Replace "GetAll" dbus method with "Get" in places
where only a particular property of a dbus object is required

Change-Id: Ib530de305f55d143395c647cadb1c8fb1c1c7254

6 years agoHandle the privilege permission error for agent methods 76/142976/1
DoHyun Pyun [Tue, 8 Aug 2017 04:55:51 +0000 (13:55 +0900)]
Handle the privilege permission error for agent methods

Change-Id: I5fda032c809bb777a99457e3e78bd55a9e3fbf1b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoCheck connectable when authorize for HID device is requested. 11/142511/1
Deokhyun Kim [Fri, 4 Aug 2017 06:03:10 +0000 (15:03 +0900)]
Check connectable when authorize for HID device is requested.

Change-Id: I84da0bc897abcfdb520b5cbc7e8108a818782b45
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoDisable adapter even though adapter is invalid. 10/142510/1
Deokhyun Kim [Fri, 4 Aug 2017 05:59:24 +0000 (14:59 +0900)]
Disable adapter even though adapter is invalid.

Change-Id: Idd1ad83b3e71534ba5b0f1f56c20c66b4ffa807e
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoFix : bt-service couldn't get DisableAdapter reply 09/142509/1
Deokhyun Kim [Fri, 4 Aug 2017 05:55:30 +0000 (14:55 +0900)]
Fix : bt-service couldn't get DisableAdapter reply

 bt-core is terminated too fastly so that there is no chance to get reply for
 bt-service. This patch terminates bt-core after default BT adapter is removed.
 It will guarantee that bt-service get the reply to method call. In case of
 bluetoothd crash, it will terminate with some delay instead of interface
 removed event.

Change-Id: I1c0e694c90cafa8d4bab9b36404a9416396505c2
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoRedesign HID register / unregister code 08/142508/1
Deokhyun Kim [Fri, 4 Aug 2017 05:44:48 +0000 (14:44 +0900)]
Redesign HID register / unregister code

Change-Id: I26f082749802a082bfb446e18a0a7c5600c8b042
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoFix for crash while pairing device 74/140274/1 accepted/tizen_3.0_ivi accepted/tizen/3.0/common/20170803.140337 accepted/tizen/3.0/ivi/20170803.010924 accepted/tizen/3.0/mobile/20170803.010849 accepted/tizen/3.0/tv/20170803.010901 accepted/tizen/3.0/wearable/20170803.010914 submit/tizen_3.0/20170801.063915
Sreeraj Mohan Kottapuzhackal [Mon, 24 Jul 2017 07:46:05 +0000 (13:16 +0530)]
Fix for crash while pairing device

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

[Issue#] P170315-03696
[Request] PLM
[Occurrence Version] All

[Problem] Crash observed while pairing
[Cause & Measure] Cause: SIGABRT due to invalid memory access
                  Measure: Avoiding invalid memory access
[Checking Method] Unit testing

[Team] Connectivity
[Developer] sreeraj.mk
[Solution company] Samsung
[Change Type] N/A

Change-Id: I1cb98a3de51bfbb63abb87da2c61a64ae6c457c9

6 years agoFix for "In Progress" error while media audio conn 73/140273/1
Sreeraj Mohan Kottapuzhackal [Mon, 24 Jul 2017 07:43:24 +0000 (13:13 +0530)]
Fix for "In Progress" error while media audio conn

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

[Issue#] PLM
[Request] P170221-05634, P170221-06954
[Occurrence Version] All

[Problem] Media audio connection request was returning "In Progress" error
[Cause & Measure] Cause: While a media audio connect returned with error,
and its req_info was already removed after HF connection. Then the device will
not be removed from connecting_list, thus returning error there after for each
connection request
                  Measure: The device must be removed from connecting_list
even if the req_info is NULL.
[Checking Method] Unit testing

[Team] Connectivity
[Developer] sreeraj.mk
[Solution company] Samsung
[Change Type] N/A

Change-Id: Ibdb62ae67e7430992980cf0f775fd78366d38bf8

6 years agoDisable adapter takes more time to disable 72/140272/1
Sreeraj Mohan Kottapuzhackal [Mon, 24 Jul 2017 07:01:47 +0000 (12:31 +0530)]
Disable adapter takes more time to disable

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

[Issue#] P170117-02987
[Request] PLM
[Occurrence Version] All

[Problem] Takes more than 4 seconds to disable adapter
[Cause & Measure] Cause: Profile level disconnection, device disconnection &
                  adapter disable was carried out sequentially. This process
                  takes time if more devices are connected at a time.
                  Measure: Profile disconnection is required only if LE
                  is enabled through adapter_enable_le
[Checking Method] Unit testing

[Team] Basic connection
[Developer] sreeraj.mk
[Solution company] Samsung
[Change Type] N/A

Change-Id: Ia2fd5afcb63c9e5d931e0689b7bd442b62bf9fcf

6 years agoAdd logs for device_name changed callback. 64/140264/1
Deokhyun Kim [Mon, 24 Jul 2017 08:48:47 +0000 (17:48 +0900)]
Add logs for device_name changed callback.

Change-Id: I63928008a6881e5be5065c5737e99743e65d7929
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoRemove function __bt_device_remote_connected_properties() 09/140009/1
Nagaraj D R [Fri, 21 Jul 2017 09:10:02 +0000 (14:40 +0530)]
Remove function __bt_device_remote_connected_properties()

Function __bt_device_remote_connected_properties is
intended to send event HID connected/disconnected
whenever a device is connected (not necessarily for HID)if remote
device supports HID.
Since we have different mechanism for recognizing
HID connection/disconnection,this function is no longer required

Change-Id: If5ba0fbcaad0182f44fd7da685474cc53146198a

6 years agoHID Device APIs return NOT_ENABLED error even if BT is disabled. 73/139573/2
Deokhyun Kim [Mon, 10 Jul 2017 07:58:46 +0000 (16:58 +0900)]
HID Device APIs return NOT_ENABLED error even if BT is disabled.

[Model] COMMON
[BinType] AP
[Customer] OPEN

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

[Problem] HID Device APIs return INTERNAL_ERROR instead of NOT_ENABLED.
[Cause & Measure] Return NOT_ENABLED error even if BT is disabled.
[Checking Method]

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

Change-Id: I13e941be623e3f8523ac7f8a619725d1b89e9543

6 years agoSupport GET_IDLE/SET_IDLE of HID Device. 70/139570/2
Deokhyun Kim [Thu, 13 Jul 2017 09:20:48 +0000 (18:20 +0900)]
Support GET_IDLE/SET_IDLE of HID Device.

[Model] COMMON
[BinType] AP
[Customer] OPEN

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

[Problem] Support GET_IDLE/SET_IDLE of HID Device.
[Cause & Measure]
[Checking Method]

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

Change-Id: Ief49fd848a824b44acf2552d080aa7e69322055b

6 years agoFix mem leak. 69/139569/2
Deokhyun Kim [Wed, 12 Jul 2017 09:42:55 +0000 (18:42 +0900)]
Fix mem leak.

[Model] COMMON
[BinType] AP
[Customer] OPEN

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

[Problem] Fix mem leak.
[Cause & Measure]
[Checking Method]

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

Change-Id: I9493a35fb86f4b54c52a10eec9bbeb36ff24b886

6 years agoMerge "tds: unsigned variable check less than zero" into tizen_3.0
Pyun DoHyun [Fri, 21 Jul 2017 01:31:51 +0000 (01:31 +0000)]
Merge "tds: unsigned variable check less than zero" into tizen_3.0

6 years agoMerge "Audio connect issue if 2 Headset already connected" into tizen_3.0
Pyun DoHyun [Fri, 21 Jul 2017 01:31:35 +0000 (01:31 +0000)]
Merge "Audio connect issue if 2 Headset already connected" into tizen_3.0

6 years agoNOT terminate bt-service when recovery timer exists. 65/139665/1
Deokhyun Kim [Thu, 20 Jul 2017 05:00:38 +0000 (14:00 +0900)]
NOT terminate bt-service when recovery timer exists.
bt-service is terminated before recovery callback is invoked even though
recovery timer exists. If recovery timer exists, then bt-service is NOT
terminated and wait for recovery callback.

Change-Id: I3f02398b32f2b7c8fd39f3167dbce43c29561241
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agotds: unsigned variable check less than zero 54/139554/1
Syam Sidhardhan [Wed, 19 Jul 2017 08:53:54 +0000 (14:23 +0530)]
tds: unsigned variable check less than zero

Sonarqube reported issue, unsigned int value was checked for less
than zero.

Change-Id: Icdfbb631c0f02a05bd275dc18a04f3a3b610708e

6 years agoAudio connect issue if 2 Headset already connected 24/139524/1
Biman Paul [Wed, 19 Jul 2017 06:43:14 +0000 (12:13 +0530)]
Audio connect issue if 2 Headset already connected

Unable to connect to 3rd headset if already connected to 2 headsets
(with one over HFP and other over A2DP)

Global variable which contains the connection request is getting freed
So free the global data when none of device is connected.

Change-Id: Ie01c72e0560183477a3f06455a765153f2f085ad

6 years agoFix mem leak. 22/139522/1
Deokhyun Kim [Wed, 19 Jul 2017 08:10:03 +0000 (17:10 +0900)]
Fix mem leak.

Change-Id: Idfe461d060344ddd333307ef34a10c12030a6e28
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoSupport GET_IDLE/SET_IDLE of HID Device. 21/139521/1
Deokhyun Kim [Wed, 19 Jul 2017 07:58:20 +0000 (16:58 +0900)]
Support GET_IDLE/SET_IDLE of HID Device.

Change-Id: I46054bd72531533fc9e2609cf484023ab34dab62
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoHID Device APIs return NOT_ENABLED error even if BT is disabled. 20/139520/1
Deokhyun Kim [Wed, 19 Jul 2017 07:55:16 +0000 (16:55 +0900)]
HID Device APIs return NOT_ENABLED error even if BT is disabled.

Change-Id: I9ee955168b7e5788a6b06c8ffb29b3cbc744c480
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years ago[bt-service] Fix SVACE issue 63/139463/1
Anurag Biradar [Wed, 19 Jul 2017 05:07:21 +0000 (10:37 +0530)]
[bt-service] Fix SVACE issue

WID 1698763 address is passed to a function after deallocating
WID 1708383 Double free of address variable

Don't free in error case, anyway it will be freed in dbus_return
goto label

Change-Id: Ieee9c498013ee31b06011288e5e803c91111edc3

6 years agobt-service: Disable BT if bluetoothd is terminated 60/139460/1
Anurag Biradar [Wed, 19 Jul 2017 04:58:38 +0000 (10:28 +0530)]
bt-service: Disable BT if bluetoothd is terminated

Not able to turn On BT from quick panel

When bluetoothd is terminated and bt-service state is activated then
bt-service is trying to do recover adapter and bt-service changed
state to ACTIVATING and it remain in that state itself.

When bluetoothd is crashed or killed than disable BT completely
instead of recovering the adapter.

Change-Id: Ie25ee80cdf1f89746c3fde18ce2fa9e4c4a54151

6 years agobt-service: Bluetooth is Turn ON on every boot 53/139453/1
Anurag Biradar [Wed, 19 Jul 2017 04:43:41 +0000 (10:13 +0530)]
bt-service: Bluetooth is Turn ON on every boot

Once BT_OFF_DUE_TO_TIMEOUT vconf is set it will never unset the vconf. So, on
each boot or bt-service launch bt is enabled even though BT was not enabled in
previous session

Before enabling BT during launch of bt-service, unset this vconf it is set

Change-Id: I34bebcca8ceeae21c9c972bef21371925b29ffba

6 years ago[bt-core] Fix FactoryTestMode method call 50/139450/1
Anurag Biradar [Wed, 19 Jul 2017 04:33:04 +0000 (10:03 +0530)]
[bt-core] Fix FactoryTestMode method call

bluetooth-testmode Application is not getting method reply for FactoryTestMode
methode call

bt-core was terminating itself before replying dbus method call

Change-Id: Ife0aabda0e4ecc9040b30271f8397b9d2749a919
Measure: terminate bt-core after replying to dbus method call

6 years ago[bt-audio] Fix dbus method reply for audio connect 47/139447/1
Anurag Biradar [Wed, 19 Jul 2017 04:10:50 +0000 (09:40 +0530)]
[bt-audio] Fix dbus method reply for audio connect

Application is showing as Connecting and never came back to
Disconnected or Connected state(Application didn't got dbus
reply for audio connect method call)

We were overwriting the global data which stores request id to which
we need to reply. Because of which bt-service will not able to reply
to dbus request. For Ex. Already Headset A is connected, Applications
sends connection request for Headset B, than bt-service initiates
disconnection for Headset A and Stores Headset B in global wait data.
And When Headset A's HFP profile is connected, Application sends
connection request for Headset C, than bt-service initiates disconnection
for Headset B and overwrite the global wait data with that of Headset C.

Measure: Before checking if any device is connected or not check first
if any device is in connecting state with type. If any device is in
connecting state than return IN_PROGRESS error no need to handle.

Change-Id: I1e721f2e2660274ecef2c3cf551377572e557b3b

6 years ago[httpproxy] Fix invalid memory write 05/138905/1
Anurag Biradar [Fri, 14 Jul 2017 06:37:47 +0000 (12:07 +0530)]
[httpproxy] Fix invalid memory write

[Problem] Invalid memory write when WriteValue follows offset of 10
and than update value from offset 6 with len of 2.

Consider first set char value is called by offset 10 and value length 2.
API Allocates memory of size (10+2) 12 bytes and when set char value is
called again with offset value of 6 and value length of 2.
API reallocates memory of size (6+2) 8 bytes. After allocating it
copies earlier 12 bytes but new allocated one is only of 8 bytes which
leads to memory corruption.

Measure: reallocate only when current value length can't hold requested
offset + value_length

Change-Id: I17eac3e5df5125894a0c74304e7328a85972c865

6 years agoFix SVace issue. 12/137212/2 accepted/tizen/3.0/common/20170719.081600 accepted/tizen/3.0/ivi/20170719.003638 accepted/tizen/3.0/mobile/20170719.003604 accepted/tizen/3.0/tv/20170719.003614 accepted/tizen/3.0/wearable/20170719.003626 submit/tizen_3.0/20170716.235230
Deokhyun Kim [Wed, 5 Jul 2017 02:04:31 +0000 (11:04 +0900)]
Fix SVace issue.

Change-Id: Ib3a04fa87032780368655d08abbc1a58ea8b8faf
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoMerge "Allow to use reserved slot for non-wearable devices." into tizen_3.0
Pyun DoHyun [Tue, 11 Jul 2017 00:08:36 +0000 (00:08 +0000)]
Merge "Allow to use reserved slot for non-wearable devices." into tizen_3.0

6 years agoMerge "Fix SVace issue." into tizen_3.0
Pyun DoHyun [Tue, 11 Jul 2017 00:08:28 +0000 (00:08 +0000)]
Merge "Fix SVace issue." into tizen_3.0

6 years agoAllow to use reserved slot for non-wearable devices. 63/136963/2
Deokhyun Kim [Tue, 4 Jul 2017 01:52:44 +0000 (10:52 +0900)]
Allow to use reserved slot for non-wearable devices.

Change-Id: Ibe4d17d98d7626505ed646f485815a810bcb7440
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoRefactoring GATT client service changed logic 58/136658/1
Seungyoun Ju [Thu, 22 Jun 2017 06:21:01 +0000 (15:21 +0900)]
Refactoring GATT client service changed logic

[Problem] N/A
[Cause & Measure]
 . Add helper function to convert address
 . Reduce an indentation
 . Fix memory leak
[Checking Method] Code review

Change-Id: I2be2c3c202c542b20b2f89614aa02b1f3fe7e731

6 years agoUse proper type for g_dbus_connection_signal_subscribe() 57/136657/1
Seungyoun Ju [Thu, 22 Jun 2017 04:35:17 +0000 (13:35 +0900)]
Use proper type for g_dbus_connection_signal_subscribe()

[Problem] g_dbus_connection_signal_subscribe() returns unsigned int for id.
 So -1 could be valid id. But it is used to check unsubscribing state.
[Cause & Measure] Change variable type for subscription id to unsigned
 int and 0 is used to check unsubscribing state.
[Checking Method] Code review

Change-Id: Iaa6b50ceb93d0e6c02d276440e2dad80504b0471

6 years agoFix : LE Connect d-bus method is not returned 56/136656/1
Seungyoun Ju [Wed, 21 Jun 2017 06:25:59 +0000 (15:25 +0900)]
Fix : LE Connect d-bus method is not returned

[Problem] While advertising is going on, if le connection is initiated
 to the device which doesn't have proxy (it means that the device neither
 be discovered once nor be paired), d-bus timeout happens in caller side.
[Cause & Measure] When le connection API is called in timer callback,
 there is no logic to reply to previous d-bus method call. This patch
 adds the logic to return the result in such a case.
[Checking Method] Try to connect to unknown LE device during advertising

Change-Id: Icbeba665eb749b84bc6bb35deeff09747c4a007a

6 years agoDon't unregister hold advertising information 55/136655/1
Seungyoun Ju [Wed, 21 Jun 2017 05:52:29 +0000 (14:52 +0900)]
Don't unregister hold advertising information

[Problem] Restarted advertising triggered by LE connection request
 doesn't have the information about sender and handle. It causes some
 malfunctions (e.g. Connect LE to out-of-range LE device twice. The
 second one is requested as Directed Advertising (Slave role request))
[Cause & Measure] Advertising information is flushed once it is stopped
 by LE connection request. So even though it is restarted by hold
 advertising logic, there is no sender / advertising handle information.
 It causes the next time hold advertising failed.
 This patch doesn't unregister hold state advertising slot. Because it
 will be used again after timer is expired. Or, once timer is cancelled,
 it will be unregistered properly.
[Checking Method] Connect LE to out-of-range LE device twice

Change-Id: Ia287da58204348f7deb06117654956bc2948f4e1

6 years agoGATT Client : Fix subscription state mis-matched 54/136654/1
Seungyoun Ju [Wed, 24 May 2017 12:42:31 +0000 (21:42 +0900)]
GATT Client : Fix subscription state mis-matched

[Problem] When BLE is not paired and StartNotify is called via
 bluetooth_gatt_watch_characteristics(), pairing procedure is started.
 We use 5 seconds dbus timeout in that API. So during pairing,
 bluetooth_gatt_watch_characteristics() call is failed.
 But after pairing is done, bluez starts notify procedure.
 So that, subscription is done but application side doesn't know it
 and callback is not set.
[Cause & Measure] Too short timeout is used. ATT transaction timeout is
 30 seconds. If it is over, ATT connection will be dropped. So until
 that, this API shall not be returned. If application needs to be
 returned immediately, it should ensure that both devices are paired
 before bluetooth_gatt_watch_characteristics() is called.
[Checking Method] Try to pair using
 bluetooth_gatt_watch_characteristics() -> Accept pairing request after
 5 seconds.

Change-Id: I3d34f85d0e45cb08039dad843190091e2eeeecc8

6 years agoFix SVace issue. 53/136253/1
Deokhyun Kim [Thu, 29 Jun 2017 01:25:31 +0000 (10:25 +0900)]
Fix SVace issue.

Change-Id: I3fd4d6557e4a1cfde753685f2df3375c07db52a4
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoRetry enabling adapter 3 times even if it timed out on booting time. 29/136129/1
Deokhyun Kim [Wed, 28 Jun 2017 07:17:39 +0000 (16:17 +0900)]
Retry enabling adapter 3 times even if it timed out on booting time.

Change-Id: I25906a618cd15fd9013b2da3f1e5f36c5ff883d1
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoFix : Null deference issue 87/135787/1
Seungyoun Ju [Tue, 20 Jun 2017 12:06:59 +0000 (21:06 +0900)]
Fix : Null deference issue

[Problem] If remote device is not connected but _bt_le_conn_update is
 called, crash happens.
[Cause & Measure] There is no connected device info. But it is
 deferenced. This patch checks NULL for connected device info.
[Checking Method] Try to update LE connection parameter to non-connected
 BLE device

Change-Id: Id4fe04ff17392585ec544bcd4f22e33ad5906820

6 years agoCheck whether dbus name is acquired normally. 82/135182/1
Deokhyun Kim [Wed, 21 Jun 2017 06:27:45 +0000 (15:27 +0900)]
Check whether dbus name is acquired normally.
  bt-service is terminated before dbus method is called,
  because dbus own_name is too delayed when system is busy.

Change-Id: Ifee0c6dd6aebfa385d1cd2b81c67753cfe28b891
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoHandling le connection interval 10/133410/1
Injun Yang [Mon, 12 Jun 2017 06:07:02 +0000 (15:07 +0900)]
Handling le connection interval

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

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

[Problem] Whenever several application set the le connection interval,
 it overwirted and affect on throughput
[Cause & Measure] Manage all demand and keep the minimum interval
[Checking Method] Set le connection interval

[Team] Basic Connection
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I1d0ed717741e29fc776c05ba357fdab1799bde3a

6 years agoFix the svace issue 74/133374/1
Injun Yang [Mon, 12 Jun 2017 04:00:48 +0000 (13:00 +0900)]
Fix the svace issue

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

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

[Problem] svace issue
[Cause & Measure] fix the code
[Checking Method] svace tool

[Team] Basic Connection
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I00babc2548a4100b0cb6fd72a9b0b783a7612a67

6 years agoRecovery logic optimization. 29/130329/1
Deokhyun Kim [Mon, 22 May 2017 04:21:50 +0000 (13:21 +0900)]
Recovery logic optimization.

 - bt-service controls recovery logic
 - bt-service tries recovery up to 3 times
 - bt-core does NOT wait for hci InterfaceRemoved event

Change-Id: Id2ee182bc877f100cc5c7b8b84d2d86eac9573cb
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoRedundant code optimization for GattService event 06/129106/1
Injun Yang [Mon, 15 May 2017 02:15:27 +0000 (11:15 +0900)]
Redundant code optimization for GattService event

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

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

[Problem] When below interface removed, check the unnecessary condition
org.bluez.GattDescriptor1
org.bluez.GattCharacteristic1
[Cause & Measure] When Characteristic or Descriptor is removed,
    checking watcher list is not required.
    Just check it for org.bluez.GattService1 interface
[Checking Method] Connection with iOS GM

[Team] Basic Connection
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: Id587ffe489526c75cdfd9192c721a03a3eebcd9d

6 years agoFix the build error for gatt client 84/127584/1 accepted/tizen/3.0/common/20170508.152944 accepted/tizen/3.0/ivi/20170508.050149 accepted/tizen/3.0/mobile/20170508.050103 accepted/tizen/3.0/tv/20170508.050121 accepted/tizen/3.0/wearable/20170508.050129 submit/tizen_3.0-common/20170508.080135 submit/tizen_3.0-common/20170508.081301 submit/tizen_3.0-common/20170508.091535 submit/tizen_3.0/20170428.003957 submit/tizen_3.0_common/20170508.091735
DoHyun Pyun [Fri, 28 Apr 2017 03:57:12 +0000 (12:57 +0900)]
Fix the build error for gatt client

Change-Id: Ie62ddc6d077ef07d8e5ce712e1f20ab703c6e040
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoFix : Simultaneous GATT client requests are failed 90/127190/2
Seungyoun Ju [Thu, 20 Apr 2017 12:36:37 +0000 (21:36 +0900)]
Fix : Simultaneous GATT client requests are failed

[Model] COMMON
[BinType] AP
[Customer] OPEN

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

[Problem] Actually read / write request for each other characteritsics and
 descriptors should be allowed. But current implementation doesn't consider
 that. So in progress error comes in that situation.
[Cause & Measure] There was only one callback for GATT client request.
 So once it is used by other request, new ones are failed until old one
 is completed.
 This patch makes each request's callback data be passed to dbus.
 So, once remote device's response comes and dbus call is returned,
 each callback data will be passed to above layer.
[Checking Method] Request GATT operation as client role using several
 characteristics and descriptors before one of them is responded.

[Team] Basic connection
[Developer] Seungyoun Ju
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I74eee1ad62df648fe36e805d06570327e5f2c1f8

7 years agoDisconnect service connection using object path 82/125382/2
Seungyoun Ju [Tue, 11 Apr 2017 09:20:17 +0000 (18:20 +0900)]
Disconnect service connection using object path

[Model] COMMON
[BinType] AP
[Customer] OPEN

[Issue#] P170328-03204
[Request] PLM
[Occurrence Version] R360XXE1CQC1

[Problem] RFCOMM socket is not disconnected when
 bt_socket_disconnect_rfcomm() is called.
[Cause & Measure] Bluez finds the service connection only using profile
 uuid. So when there are two service connections which have same uuid,
 wrong one could be selected. In order to select intended one, object
 path is required. New method call is added to Bluez to get object path
 for RFCOMM socket connection and this patch uses that method call.
[Checking Method] Make client / server RFCOMM connections using same
 uuid at the same time -> Disconnect server connection

[Team] Basic connection
[Developer] Seungyoun Ju
[Solution company] Samsung
[Change Type] Specification change

Change-Id: Ia139b43ff5d1bfc95af84256c6fea750e3eae817

7 years agoChange sscanf to strtol function for the secure coding 51/125451/1
DoHyun Pyun [Mon, 17 Apr 2017 08:37:21 +0000 (17:37 +0900)]
Change sscanf to strtol function for the secure coding

Change-Id: I665ed7d9ea04b9d861ac5d919eefe987925cf09f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix svace issue (168145) 07/122507/1 accepted/tizen/3.0/common/20170403.140220 accepted/tizen/3.0/ivi/20170403.054958 accepted/tizen/3.0/mobile/20170403.054842 accepted/tizen/3.0/tv/20170403.054926 accepted/tizen/3.0/wearable/20170403.054941 submit/tizen_3.0/20170403.000655
DoHyun Pyun [Mon, 3 Apr 2017 00:03:04 +0000 (09:03 +0900)]
Fix svace issue (168145)

Change-Id: I65108912c5672e74c5e913d88052ce3fe0a8d817
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoDisallow BT headset pairing for DPM mode 29/122129/1 accepted/tizen/3.0/ivi/20170403.021649 accepted/tizen/3.0/mobile/20170403.021445 accepted/tizen/3.0/tv/20170403.021600 accepted/tizen/3.0/wearable/20170403.021627 submit/tizen_3.0/20170330.083350
DoHyun Pyun [Thu, 30 Mar 2017 08:26:32 +0000 (17:26 +0900)]
Disallow BT headset pairing for DPM mode

Change-Id: I0e759fb6ba1e51ababe368f0b20a7f2dab9d4178
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix svace issues (183482, 185309) 52/121752/1 accepted/tizen/3.0/common/20170329.151512 accepted/tizen/3.0/ivi/20170329.085146 accepted/tizen/3.0/mobile/20170329.085043 accepted/tizen/3.0/tv/20170329.085119 accepted/tizen/3.0/wearable/20170329.085136 submit/tizen_3.0/20170329.002755
DoHyun Pyun [Wed, 29 Mar 2017 00:22:45 +0000 (09:22 +0900)]
Fix svace issues (183482, 185309)

Change-Id: I4656772ec2347fe5d866530b5df60763ad9ac72d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoRemove adapter_proxy unreference 26/121226/1
Sangki Park [Mon, 27 Mar 2017 08:43:11 +0000 (17:43 +0900)]
Remove adapter_proxy unreference

This unnecessary unreference causes the following error log.
> g_dbus_proxy_get_object_path: assertion 'G_IS_DBUS_PROXY (proxy)' failed

The adapter_proxy is a common resource and must be maintained.

Change-Id: I873f657dd31d8795d536d51d8e7519332914cc90
Signed-off-by: Sangki Park <sangki79.park@samsung.com>
7 years agoInstall the license file into the target 47/121047/1 accepted/tizen/3.0/common/20170328.141838 accepted/tizen/3.0/ivi/20170328.112156 accepted/tizen/3.0/mobile/20170328.112058 accepted/tizen/3.0/tv/20170328.112128 accepted/tizen/3.0/wearable/20170328.112140 submit/tizen_3.0/20170327.055915
DoHyun Pyun [Mon, 27 Mar 2017 06:11:01 +0000 (15:11 +0900)]
Install the license file into the target

Change-Id: I922245bb045c54af8fd2783f71ca72e623ba8a50
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix svace issues (183569, 183570, ...) 37/120937/1 accepted/tizen/3.0/common/20170327.141115 accepted/tizen/3.0/ivi/20170327.061525 accepted/tizen/3.0/mobile/20170327.061504 accepted/tizen/3.0/tv/20170327.061511 accepted/tizen/3.0/wearable/20170327.061518 submit/tizen_3.0/20170327.013857
DoHyun Pyun [Mon, 27 Mar 2017 01:32:45 +0000 (10:32 +0900)]
Fix svace issues (183569, 183570, ...)

Change-Id: I3ad973688aca2fb1620d63b08d4d0bd457eb1f00
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix the TBT fail issue (bonding callback called twice) 79/119479/1 accepted/tizen/3.0/common/20170317.100625 accepted/tizen/3.0/ivi/20170317.090748 accepted/tizen/3.0/mobile/20170317.090705 accepted/tizen/3.0/tv/20170317.090730 accepted/tizen/3.0/wearable/20170317.090740 submit/tizen_3.0/20170317.061343
Lee Hyuk [Fri, 17 Mar 2017 06:00:37 +0000 (15:00 +0900)]
Fix the TBT fail issue (bonding callback called twice)

Change-Id: Ib08c45c4231feea5f507825bbd9bd54ee0864922
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
7 years agoChange log directory's owner 44/118344/1
Seungyoun Ju [Wed, 8 Mar 2017 07:59:11 +0000 (16:59 +0900)]
Change log directory's owner

[Model] COMMON
[BinType] AP
[Customer] OPEN

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

[Problem] BT hcidump is not gathered
[Cause & Measure] Directory owner is set as invalid user. So bt-hci-logdump.sh
 cannot acesss it
[Checking Method] *#9900#

[Team] Basic connection
[Developer] Seungyoun Ju
[Solution company] Samsung
[Change Type] Specification change

Change-Id: Ibe4519fa1521965e3358b1ba24f39cc952893241
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoChange log directory's owner 43/118343/1
Seungyoun Ju [Fri, 28 Oct 2016 11:13:40 +0000 (20:13 +0900)]
Change log directory's owner

[Model] COMMON
[BinType] AP
[Customer] OPEN

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

[Problem] BT hcidump is not gathered
[Cause & Measure] Directory owner is set as root. So bt-hci-logdump.sh
 cannot acesss it
[Checking Method] *#9900#

[Team] Basic connection
[Developer] Seungyoun Ju
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I9101359e3e8d123cd3ea4d8967aa4f29c22f7479
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoDeinitialize adv slot and scanner 34/117434/1 accepted/tizen/3.0/common/20170307.113220 accepted/tizen/3.0/ivi/20170307.090702 accepted/tizen/3.0/mobile/20170307.090418 accepted/tizen/3.0/tv/20170307.090524 accepted/tizen/3.0/wearable/20170307.090611 submit/tizen_3.0/20170306.075549
Injun Yang [Mon, 6 Mar 2017 05:59:50 +0000 (14:59 +0900)]
Deinitialize adv slot and scanner
 - When application request BLE scanning, IN_PROGRESS error returned
 - After recover bluetooth, adv slot and scanner is not initialized.

Change-Id: I97dff857079661ac89a62e4c1f4f94714194d9d5
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
7 years agoRevert "Reduce dbus timeout" 97/117397/1
DoHyun Pyun [Mon, 6 Mar 2017 04:05:53 +0000 (13:05 +0900)]
Revert "Reduce dbus timeout"

This reverts commit b77502f481485d060a9595c60cf78db1b98eccf9.

Change-Id: Iad7f7ba66e31ffefa9bba5f12828f90919d05b53
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoRevert "Modify the dbus timeout value for TM1 GATT server" 96/117396/1
DoHyun Pyun [Mon, 6 Mar 2017 04:04:59 +0000 (13:04 +0900)]
Revert "Modify the dbus timeout value for TM1 GATT server"

This reverts commit 750b7a063dc8d90b24f5cffdfb8a3651de6b3866.

Change-Id: Ia02ecfafbf3bdbedd2969ca797b4d5fa42ea2f4b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoModify the dbus timeout value for TM1 GATT server 34/116934/1
DoHyun Pyun [Thu, 2 Mar 2017 05:27:03 +0000 (14:27 +0900)]
Modify the dbus timeout value for TM1 GATT server

Change-Id: I47c64e00ef4cc7cf92cfe368e7bd43de68e814e2
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix SVACE issues in bluetooth-frwk 38/115038/1 accepted/tizen/3.0/common/20170220.125627 accepted/tizen/3.0/ivi/20170220.013431 accepted/tizen/3.0/mobile/20170220.013211 accepted/tizen/3.0/tv/20170220.013250 accepted/tizen/3.0/wearable/20170220.013345 submit/tizen_3.0/20170216.103037
Atul Rai [Thu, 16 Feb 2017 06:40:35 +0000 (12:10 +0530)]
Fix SVACE issues in bluetooth-frwk

SVACE Id: 174996, 174997, 175001, 175403, 175404, 175405, 175408.

Change-Id: I9585ca2777edd2caa8e626cb64834088d5304e82
Signed-off-by: Atul Rai <a.rai@samsung.com>
7 years agoFix SVACE issues(Id: 11323, 11324, 169036, 171525, 171526) 27/113827/2 accepted/tizen/3.0/common/20170214.180329 accepted/tizen/3.0/ivi/20170213.225231 accepted/tizen/3.0/mobile/20170213.225138 accepted/tizen/3.0/tv/20170213.225209 accepted/tizen/3.0/wearable/20170213.225220 submit/tizen_3.0/20170213.044639
Atul Rai [Thu, 9 Feb 2017 04:41:09 +0000 (10:11 +0530)]
Fix SVACE issues(Id: 11323, 11324, 169036, 171525, 171526)

Change-Id: Ic10a120b3519c4f849c56ae6745d22ff09a2ddcf
Signed-off-by: Atul Rai <a.rai@samsung.com>
7 years agoFix the memory leak in bt-core 98/111998/1 tizen_3.0_tv accepted/tizen/3.0/common/20170206.110816 accepted/tizen/3.0/ivi/20170206.034427 accepted/tizen/3.0/mobile/20170206.034314 accepted/tizen/3.0/tv/20170206.034353 accepted/tizen/3.0/wearable/20170206.034412 submit/tizen_3.0/20170202.043546 submit/tizen_3.0/20170206.000717
Lee Hyuk [Wed, 25 Jan 2017 08:16:28 +0000 (17:16 +0900)]
Fix the memory leak in bt-core

Change-Id: I24b30732c54705ca14967cc4a55f8d425929998c
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
7 years agoReduce dbus timeout 89/111789/1
Injun Yang [Tue, 24 Jan 2017 04:11:13 +0000 (13:11 +0900)]
Reduce dbus timeout

Change-Id: Ia6985fd80495b6bbb26d4b53a685e41faeae9b4d
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoEnhnace debug messsage 88/111788/1
Injun Yang [Tue, 24 Jan 2017 04:02:07 +0000 (13:02 +0900)]
Enhnace debug messsage

Change-Id: Ide1f5d210f2eed3af9b10821168d8c93c34d16d5
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoEnhance debug message 76/111776/2
Injun Yang [Tue, 24 Jan 2017 02:42:28 +0000 (11:42 +0900)]
Enhance debug message

Change-Id: I771e8ff026fcbd91d863a327ba443ac298968a95
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoRemove the bt-ipsp daemon 95/111595/1
Lee Hyuk [Mon, 23 Jan 2017 02:33:00 +0000 (11:33 +0900)]
Remove the bt-ipsp daemon

Change-Id: Ie7da124e489c7c692f20dbc050861f9a8f1a4115
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
7 years agoMerge "Invoke MTU changed callback" into tizen_3.0 accepted/tizen/3.0/common/20170120.102145 accepted/tizen/3.0/common/20170120.130948 accepted/tizen/3.0/ivi/20170120.072805 accepted/tizen/3.0/ivi/20170120.113422 accepted/tizen/3.0/mobile/20170120.072714 accepted/tizen/3.0/mobile/20170120.113332 accepted/tizen/3.0/tv/20170120.072743 accepted/tizen/3.0/tv/20170120.113349 accepted/tizen/3.0/wearable/20170120.072754 accepted/tizen/3.0/wearable/20170120.113405 submit/tizen_3.0/20170118.073413 submit/tizen_3.0/20170120.110835
Pyun DoHyun [Tue, 17 Jan 2017 08:24:12 +0000 (00:24 -0800)]
Merge "Invoke MTU changed callback" into tizen_3.0

7 years agoInvoke MTU changed callback 34/110634/1
Injun Yang [Tue, 17 Jan 2017 08:21:06 +0000 (17:21 +0900)]
Invoke MTU changed callback

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

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

[Problem] When remote device request mtu exchange,
 mtu changed callback is not invoked on responder
[Cause & Measure] Invoke mtu changed callback
[Checking Method] Request mtu exchange on remote device

[Team] Basic Connection
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: Ie7c8574adef6a215cc839dd5c2de88d7db9ea314
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years ago[TDS] Implement TDS Seeker role 71/110471/3
Anupam Roy [Mon, 16 Jan 2017 10:25:16 +0000 (15:55 +0530)]
[TDS] Implement TDS Seeker role

This patch implements the Seeker role of
TDS Connection handover profile. Following
requests and events are handled in this patch.

1/ Read complete TDS transport specific blocks
   from GATT database of remote TDS provider
2/ Enable CCCD (client characteristic configuration)
   parameters in Remote TDS provider.
3/ Activate TDS Control Point in Remote TDS provider.
   This will attempt to activate alternate transport
4/ Send following events to bt-api
   a/ CCCD Enabled
   b/ Activation Response
   c/ Activation Indication

Change-Id: I7edbfccfc2b9b7688d27c545248cb49b753c4dd4
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
7 years agoAdded Transport Discovery Service Provider Role 31/110431/1
Atul Rai [Thu, 29 Dec 2016 09:40:06 +0000 (15:10 +0530)]
Added Transport Discovery Service Provider Role

This patch adds implementation for Transport Discovery Service
provider role. APIs and events to fulfill TDS provider functionality
are given below.
APIs:
1/ Register/Unregister TDS provider
2/ Create/Destroy a transport provider
3/ Set Transport block data
4/ TDS control point activation response
Events:
1/ TDS control point activation request

Change-Id: Ie6fe5ec1f24075db7bdf761efba74d7d18efd5fa
Signed-off-by: Atul Rai <a.rai@samsung.com>
7 years ago[Audio] Add mutiple HFP/A2DP support 26/108026/5
Gowtham Anandha Babu [Thu, 29 Dec 2016 12:54:30 +0000 (18:24 +0530)]
[Audio] Add mutiple HFP/A2DP support

Rightnow two headsets are establishing call-audio connection.
But media-audio is happening for one of the headsets, because
pulse-audio is registering only one SEP.

Change-Id: I4c538b550b39ae9a13fcd60357974efd7f5d374a
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoAdd the IPSP daemon and Set Ipv6 Address 12/108112/5
Lee Hyuk [Tue, 3 Jan 2017 05:22:35 +0000 (14:22 +0900)]
Add the IPSP daemon and Set Ipv6 Address

Change-Id: Ife805c4e804235750d3948545175905df156474d
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
7 years agoGATT client: Fix service change watcher set and unset logic 79/108179/2
Anupam Roy [Tue, 3 Jan 2017 08:00:27 +0000 (13:30 +0530)]
GATT client: Fix service change watcher set and unset logic

Change-Id: Idf5a859b615e983e5acca065cd210aea8ed114b7
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
7 years agoChange service description to avoid confusion 89/109989/1
Łukasz Stelmach [Thu, 12 Jan 2017 10:42:12 +0000 (11:42 +0100)]
Change service description to avoid confusion

Change the Description filed in the service files to avoid confiusion
with the service provided by platform/upstream/bluetooth.

Change-Id: I3fc10dbd7629ad46b921a8d12e699f90f2b98f56

7 years agoFix the typo and add service information 52/109352/1
Injun Yang [Tue, 10 Jan 2017 05:51:21 +0000 (14:51 +0900)]
Fix the typo and add service information

Change-Id: I4fc7675ac83cf421b687e2b52bf1792f4812849e
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoFix the coding style error 26/109326/1
DoHyun Pyun [Tue, 10 Jan 2017 04:11:37 +0000 (13:11 +0900)]
Fix the coding style error

Change-Id: I2915111b23bfc3427e63bd27b96c831ac5eed892
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoEnhance debug message 83/109183/2
Injun Yang [Mon, 9 Jan 2017 07:03:13 +0000 (16:03 +0900)]
Enhance debug message

Change-Id: I01f434fc671d21c20dff27bac5a2fa1e14c07508
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoModify the paired uuid count 87/108187/2 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen/3.0.m2/mobile/20170104.125115 accepted/tizen/3.0.m2/tv/20170104.125523 accepted/tizen/3.0.m2/wearable/20170104.125730 accepted/tizen/3.0/common/20170103.172927 accepted/tizen/3.0/common/20170120.131012 accepted/tizen/3.0/ivi/20170103.155531 accepted/tizen/3.0/ivi/20170120.114946 accepted/tizen/3.0/mobile/20170103.155435 accepted/tizen/3.0/mobile/20170120.114900 accepted/tizen/3.0/tv/20170103.155450 accepted/tizen/3.0/tv/20170120.114912 accepted/tizen/3.0/wearable/20170103.155512 accepted/tizen/3.0/wearable/20170120.114932 submit/tizen_3.0.m2/20170104.093750 submit/tizen_3.0/20170103.091358 submit/tizen_3.0/20170120.114629
Lee Hyuk [Tue, 3 Jan 2017 08:47:42 +0000 (17:47 +0900)]
Modify the paired uuid count

Change-Id: I896a92bf800581a0f0584eaddbb955f5c0416a36
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>