platform/core/connectivity/bluetooth-frwk.git
7 years agoFix usage of "ENABLE_TIZEN_2_4" 54/102754/3
Nagaraj D R [Tue, 6 Dec 2016 11:16:56 +0000 (16:46 +0530)]
Fix usage of "ENABLE_TIZEN_2_4"

If "ENABLE_TIZEN_2_4" is not defined, only then UPS
related changes in bt-core should be included.

Change-Id: I2cf4a8999253b95f4dcdb0997e9ab5d53a472f9a

7 years agoFix "Permission Denied" error for bluez service functions 74/107174/1
Nagaraj D R [Tue, 27 Dec 2016 05:05:50 +0000 (10:35 +0530)]
Fix "Permission Denied" error for bluez service functions

For few of the bluez service functions, application
is receiving "Permission Denied" error even though it has
required privilege. This is because these service
functions are not added in privilege check routine

Change-Id: Ib3ac40988cd58e188fdcc1746dfa786272b7ac25

7 years agoMerge "Modify the AVRCP meta data duration type" into tizen_3.0
Pyun DoHyun [Mon, 26 Dec 2016 09:34:19 +0000 (01:34 -0800)]
Merge "Modify the AVRCP meta data duration type" into tizen_3.0

7 years agoRevert "DPM: Fix DPM GCC6 warning errors." 81/106981/2 accepted/tizen/3.0/common/20161227.101705 accepted/tizen/3.0/ivi/20161227.012031 accepted/tizen/3.0/mobile/20161227.011937 accepted/tizen/3.0/tv/20161227.011956 accepted/tizen/3.0/wearable/20161227.012014 submit/tizen_3.0/20161226.011357
DoHyun Pyun [Mon, 26 Dec 2016 05:00:08 +0000 (14:00 +0900)]
Revert "DPM: Fix DPM GCC6 warning errors."

This reverts commit 69a889b2872947fc8034b4dd787eb1a210d9a2b0.
Fix the next build error in tizen_3.0

178s] [ 88%] Building C object bt-service/CMakeFiles/bt-service.dir/bt-service-dpm.c.o
[  179s] /home/abuild/rpmbuild/BUILD/bluetooth-frwk-0.2.156/bt-service/bt-service-dpm.c:35:2: error: excess elements in union initializer [-Werror]
[  179s]   [DPM_POLICY_ALLOW_BLUETOOTH] = { {DPM_BT_ERROR, NULL} },
[  179s]   ^
[  179s] /home/abuild/rpmbuild/BUILD/bluetooth-frwk-0.2.156/bt-service/bt-service-dpm.c:35:2: error: (near initialization for 'policy_table[0].<anonymous>') [-Werror]
[  179s] /home/abuild/rpmbuild/BUILD/bluetooth-frwk-0.2.156/bt-service/bt-service-dpm.c:36:2: error: excess elements in union initializer [-Werror]
[  179s]   [DPM_POLICY_BLUETOOTH_DEVICE_RESTRICTION] = { {DPM_STATUS_ERROR, NULL} },

Change-Id: I549af70370af09ace903822e17f993b47bc98c9c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoModify the AVRCP meta data duration type 12/106812/5
Lee Hyuk [Fri, 23 Dec 2016 06:53:35 +0000 (15:53 +0900)]
Modify the AVRCP meta data duration type

Change-Id: I6918400e9c95bba52903fda92a0a77c60828b1c2
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
7 years agoFix the svace issue 39/106939/1
DoHyun Pyun [Mon, 26 Dec 2016 01:08:54 +0000 (10:08 +0900)]
Fix the svace issue

Change-Id: I1fb7464f2e3fa84ced612d62da7a13c568afc786
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoCode cleanup 75/106775/1
Injun Yang [Fri, 23 Dec 2016 03:48:29 +0000 (12:48 +0900)]
Code cleanup

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

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

[Problem] N/A
[Cause & Measure] Remove unused code
[Checking Method] N/A

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

Change-Id: I65dce5534cbac0d8642473d3ca01b137c68b7c7d
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoAdd HCI error reason 65/106065/1
Injun Yang [Tue, 20 Dec 2016 09:34:15 +0000 (18:34 +0900)]
Add HCI error reason

Change-Id: I8f2ea88e609e547e2d4bf526b5431defcbfb17ee
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoDPM: Fix DPM GCC6 warning errors. 44/105344/1
h.sandeep [Fri, 16 Dec 2016 08:25:09 +0000 (13:55 +0530)]
DPM: Fix DPM GCC6 warning errors.

Change-Id: I152f2a1a11757ef180655e27d063510a47847fd5
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoMerge "Send LE scan result to requester only" into tizen_3.0
Pyun DoHyun [Mon, 12 Dec 2016 07:07:20 +0000 (23:07 -0800)]
Merge "Send LE scan result to requester only" into tizen_3.0

7 years agoSend LE scan result to requester only 50/103950/1
Injun Yang [Mon, 12 Dec 2016 01:49:26 +0000 (10:49 +0900)]
Send LE scan result to requester only

Change-Id: I62f69dc111e568217775da9ab7a153293304f8c9
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoFix progress percentage on DUT while waiting for remote authorization 16/103816/2
Syam Sidhardhan [Fri, 9 Dec 2016 11:38:33 +0000 (17:08 +0530)]
Fix progress percentage on DUT while waiting for remote authorization

Soon after TransferStarted event, TransferProgress event
has been send with value. Due to this, if we transfer a small file (100KB),
while waiting for remote authorization, the file progress on DUT shows
some percentage (> 0 depending on file size).

Change-Id: I5ebf9293e78d2701bb47da127f9f68eb7ba2eb90
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
7 years agoFix TCT fail issue for the obex server 57/103657/1 accepted/tizen/3.0/common/20161209.161009 accepted/tizen/3.0/ivi/20161209.103821 accepted/tizen/3.0/mobile/20161209.103620 accepted/tizen/3.0/tv/20161209.103749 accepted/tizen/3.0/wearable/20161209.103807 submit/tizen_3.0/20161209.004609
DoHyun Pyun [Fri, 9 Dec 2016 05:10:05 +0000 (14:10 +0900)]
Fix TCT fail issue for the obex server

Change-Id: I398c44efba5b6dcb43d641fdb406ab3ab79c9b4b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoAdd the arch64 build flag for the emulator64 arch 98/103598/2
DoHyun Pyun [Fri, 9 Dec 2016 02:07:56 +0000 (11:07 +0900)]
Add the arch64 build flag for the emulator64 arch

Change-Id: I42506ec29060281cebf007094b11e7e48aa1c112
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoAdd -Werror option in the bt-service folder 18/103318/2
DoHyun Pyun [Thu, 8 Dec 2016 05:00:55 +0000 (14:00 +0900)]
Add -Werror option in the bt-service folder

Change-Id: Icb690ecc5b848a374bdf9950ad28449c47606c55
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoWarnings fixed for BT MAP 32/103432/1
Piotr Dabrowski [Thu, 8 Dec 2016 08:42:59 +0000 (09:42 +0100)]
Warnings fixed for BT MAP

Change-Id: Idb9eecc02ceba2a46ab1067a0309466655d13440

7 years agoRemove unnecessary check 65/103365/1
Seungyoun Ju [Wed, 7 Dec 2016 08:38:49 +0000 (17:38 +0900)]
Remove unnecessary check

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

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

[Problem] g_malloc always returns proper memory location. If it is not
 available, abort will happenes. So its return value doesn't need to
 check.
[Cause & Measure] g_malloc's return value was checked.
[Checking Method] Code review

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

Change-Id: I97cb2ba2011fa20a908007ce4dcd5350ea6d0c6f

7 years agoRemove the map client code into the emulator 33/103333/1 accepted/tizen/3.0/common/20161209.094745 accepted/tizen/3.0/ivi/20161209.001816 accepted/tizen/3.0/mobile/20161209.001728 accepted/tizen/3.0/tv/20161209.001753 accepted/tizen/3.0/wearable/20161209.001803 submit/tizen_3.0/20161208.051813
DoHyun Pyun [Thu, 8 Dec 2016 05:46:53 +0000 (14:46 +0900)]
Remove the map client code into the emulator

Change-Id: Ie8a1a245a615fea010d803a6c711ed35e32ade4f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix the svace issues for MAP functions 17/103317/1
DoHyun Pyun [Thu, 8 Dec 2016 04:50:44 +0000 (13:50 +0900)]
Fix the svace issues for MAP functions

Change-Id: I007b2ff32429334901f284d43082dae6e009ea86
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoCheck the privelege for MAP APIs as the platform level 15/103315/1
DoHyun Pyun [Thu, 8 Dec 2016 04:47:24 +0000 (13:47 +0900)]
Check the privelege for MAP APIs as the platform level

Change-Id: I0bef92ac56fa75833be6fca134d49fbfb40106e9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix the coding style errors 14/103314/1
DoHyun Pyun [Thu, 8 Dec 2016 04:46:44 +0000 (13:46 +0900)]
Fix the coding style errors

Change-Id: Iaadf5045dbfa5e9c2d77d4b58afcbf62a75a7ecd
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoEnable the previlege check for public release 61/103261/1
DoHyun Pyun [Thu, 8 Dec 2016 00:55:17 +0000 (09:55 +0900)]
Enable the previlege check for public release

Change-Id: Ie65f47308f4efd7dd9fd8d0abaa0e177c999a2c7
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years ago[bluetooth-frwk] pushMessage 55/102855/2
Piotr Dabrowski [Fri, 18 Nov 2016 08:58:48 +0000 (09:58 +0100)]
[bluetooth-frwk] pushMessage

Change-Id: I47f99f194f1992cf8c6ef7127dd48c6bfd5e9fbc

7 years ago[bluetooth-frwk] bt_map_client_message_object_h 54/102854/2
Piotr Dabrowski [Fri, 11 Nov 2016 10:25:45 +0000 (11:25 +0100)]
[bluetooth-frwk] bt_map_client_message_object_h

Change-Id: I12eccc5b3f2bda2e39d9bf5f45c70aa2d6f309c4

7 years ago[bluetooth-frwk] listFolders filter, refactor, removed GVariant, cleanup 53/102853/2
Piotr Dabrowski [Thu, 17 Nov 2016 13:45:05 +0000 (14:45 +0100)]
[bluetooth-frwk] listFolders filter, refactor, removed GVariant, cleanup

Change-Id: Ifcd1cf3311f1f64b78c92de4bf366f9515e39073

7 years ago[bluetooth-frwk] added getMessage implementation 52/102852/2
Piotr Kosko [Wed, 9 Nov 2016 07:01:50 +0000 (08:01 +0100)]
[bluetooth-frwk] added getMessage implementation

Change-Id: Iedb4fc0d4bd721a496112c1aed36ae79ef0093f4
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
7 years ago[bluetooth-frwk] listMessages 51/102851/2
Piotr Dabrowski [Wed, 9 Nov 2016 15:39:46 +0000 (16:39 +0100)]
[bluetooth-frwk] listMessages

Change-Id: Ibc633c9c9e930da5cc296917d7821d0f2294971a

7 years ago[bluetooth-frwk] fix in listFolders and listFilterFields 50/102850/2
Lukasz Bardeli [Fri, 4 Nov 2016 13:32:56 +0000 (14:32 +0100)]
[bluetooth-frwk] fix in listFolders and listFilterFields

Change-Id: I4ef2f1416dd94dd5e390c69f15116e354c5c70cf
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
7 years ago[bluetooth-frwk] Added listFilterFields implementation with async result 49/102849/2
Lukasz Bardeli [Fri, 4 Nov 2016 10:44:01 +0000 (11:44 +0100)]
[bluetooth-frwk] Added listFilterFields implementation with async result

[Feature] added implementation for listFilterFields method

[Verification] function checked with sample C program:
 - listing filter fields is possible

Change-Id: Ic3cb5b18df442f4a896b80941228e63e5cfa8dac
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
7 years ago[bluetooth-frwk] Added listFolders implementation with async result 48/102848/2
Piotr Kosko [Fri, 28 Oct 2016 12:57:49 +0000 (14:57 +0200)]
[bluetooth-frwk] Added listFolders implementation with async result

[Feature] added implementation for listFolders method

[Verification] function checked with sample C program:
  - listing folder is possible,
  - options work correctly and maxcount works fine.
  - user_data is correctly passed to result callback

Change-Id: If81066103306cd1bc4199d5bf2a1396c4d11af7f
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
7 years ago[bluetooth-frwk] API defines 47/102847/2
Piotr Dabrowski [Wed, 26 Oct 2016 15:46:50 +0000 (17:46 +0200)]
[bluetooth-frwk] API defines

Change-Id: I908dc6e6410c91c8c4b6b483658b796d0e2ccfb9

7 years ago[bluetooth-frwk] setFolder 46/102846/2
Piotr Dabrowski [Wed, 26 Oct 2016 15:37:52 +0000 (17:37 +0200)]
[bluetooth-frwk] setFolder

Change-Id: I58c2c6a9eb54335920d553a6d376e9cceb6b5821

7 years ago[bluetooth-frwk] updateInbox 45/102845/2
Lukasz Bardeli [Tue, 25 Oct 2016 09:57:12 +0000 (11:57 +0200)]
[bluetooth-frwk] updateInbox

Change-Id: Idee948fbab0b451ebecd996895966abffc0e09e1

7 years ago[bluetooth-frwk] Create/destroy session implementation added 44/102844/2
Piotr Kosko [Wed, 19 Oct 2016 10:31:45 +0000 (12:31 +0200)]
[bluetooth-frwk] Create/destroy session implementation added

Change-Id: I3fcba252d63b110328f5fb1478ea27dd70993e3f
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
7 years agoinitial MAP stub implementation 43/102843/2
Piotr Dabrowski [Mon, 17 Oct 2016 08:25:12 +0000 (10:25 +0200)]
initial MAP stub implementation

Change-Id: Ic23c297cb65b69d05b2ec63ef3db414504ec3014

7 years agobt-core: Fix bt-core crash 17/102717/2 accepted/tizen/3.0/common/20161207.195224 accepted/tizen/3.0/ivi/20161207.135108 accepted/tizen/3.0/mobile/20161207.134930 accepted/tizen/3.0/tv/20161207.134901 accepted/tizen/3.0/wearable/20161207.135019 submit/tizen_3.0/20161207.043635
Anurag Biradar [Tue, 6 Dec 2016 04:30:15 +0000 (10:00 +0530)]
bt-core: Fix bt-core crash

g_dbus_proxy_call_sync function expects a double pointer for "err"
variable in it's parameter list

Change-Id: I534c22e1330998aa0fd9fb8e03f2d222f1c2f04a

7 years agoFix the coding style errors 29/102629/1
DoHyun Pyun [Tue, 6 Dec 2016 08:19:56 +0000 (17:19 +0900)]
Fix the coding style errors

Change-Id: Ifba36e6102bb60339d2d3c9c52ef596c7e10fed8
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix svace 2.2 issues 07/102607/1
DoHyun Pyun [Tue, 6 Dec 2016 07:49:31 +0000 (16:49 +0900)]
Fix svace 2.2 issues

Change-Id: Ic4b27a4cc8e0d5f4a5e828eaedb5297aa7e5ec46
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix the build warning 06/102606/1
DoHyun Pyun [Tue, 6 Dec 2016 07:43:41 +0000 (16:43 +0900)]
Fix the build warning

Change-Id: I79a973c63a57ce89e8adb4b7fa91bab755ac95c3
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix the bug for dbus connection and proxy deinitialization 57/102457/1 accepted/tizen/3.0/common/20161207.194308 accepted/tizen/3.0/ivi/20161207.011042 accepted/tizen/3.0/mobile/20161207.010939 accepted/tizen/3.0/tv/20161207.010958 accepted/tizen/3.0/wearable/20161207.011016 submit/tizen_3.0/20161206.041315
DoHyun Pyun [Tue, 6 Dec 2016 02:01:28 +0000 (11:01 +0900)]
Fix the bug for dbus connection and proxy deinitialization

Change-Id: Id81a3924fb85697bf2056a6c1403f9e3ff9275ca
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoProcess response_needed parameter in GATT Server 93/101893/2
Seungyoun Ju [Fri, 2 Dec 2016 10:02:42 +0000 (19:02 +0900)]
Process response_needed parameter in GATT Server

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

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

[Problem] User couldn't know whether this write request require a
 response or not
[Cause & Measure] Old bluez didn't provide the information about
 response's necessity. Now bluez provides it so processing logic has been
 implemented in this patch.
[Checking Method] Run GATT Server on DUT -> Send some Write Without
 Response or Write Req from remote

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

Change-Id: If519f964c86f7c786b92febc1104358184aef427

7 years agoDisable HPS feature from binary 28/102128/1
Sudha Bheemanna [Fri, 2 Dec 2016 05:36:59 +0000 (11:06 +0530)]
Disable HPS feature from binary

Disable inclusion of HPS feature in binary tizen 3.0

Change-Id: Ie70dfdbbf41bbd106869b3b04fcb6dadc0804eb1
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
7 years agoMerge "bt-api: Do not log the _bt_check_privilege() using macro" into tizen_3.0 accepted/tizen/3.0/common/20161206.125135 accepted/tizen/3.0/ivi/20161205.065714 accepted/tizen/3.0/mobile/20161205.065527 accepted/tizen/3.0/tv/20161205.065616 accepted/tizen/3.0/wearable/20161205.065641 submit/tizen_3.0/20161205.001127
Pyun DoHyun [Fri, 2 Dec 2016 06:00:22 +0000 (22:00 -0800)]
Merge "bt-api: Do not log the _bt_check_privilege() using macro" into tizen_3.0

7 years agoMerge "bt-api: Fix incorrect macro expansion for service function" into tizen_3.0
Pyun DoHyun [Fri, 2 Dec 2016 06:00:18 +0000 (22:00 -0800)]
Merge "bt-api: Fix incorrect macro expansion for service function" into tizen_3.0

7 years agoRecover bluetoothd crash 73/101673/2
Seungyoun Ju [Fri, 2 Dec 2016 01:47:26 +0000 (10:47 +0900)]
Recover bluetoothd crash

[Problem] After bluetoothd crash is happened, keep BT off state
[Cause & Measure] bluetoothd crash was not recovered
[Checking Method] Terminate bluetoothd (because of chipset malfunction)

Change-Id: Ie35d1ea2f43fc2ef678e8d59d02733bb85fda3a5
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoMerge "Recover bluetoothd crash" into tizen_3.0
Pyun DoHyun [Fri, 2 Dec 2016 02:35:06 +0000 (18:35 -0800)]
Merge "Recover bluetoothd crash" into tizen_3.0

7 years agoRecover bluetoothd crash 55/101655/1
Seungyoun Ju [Fri, 2 Dec 2016 01:47:26 +0000 (10:47 +0900)]
Recover bluetoothd crash

[Problem] After bluetoothd crash is happened, keep BT off state
[Cause & Measure] bluetoothd crash was not recovered
[Checking Method] Terminate bluetoothd (because of chipset malfunction)

Change-Id: I563c8873a78eb8fd6c6cf229e437886f6ea7e5c6
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoAdd response_needed parameter in the write value requested callback 54/101654/1
DoHyun Pyun [Fri, 2 Dec 2016 01:43:22 +0000 (10:43 +0900)]
Add response_needed parameter in the write value requested callback

Change-Id: Ife10ca1f323905ee615c61938042a09ccc38fdf0
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix : ADV_IND data is not present while le scanning 64/101564/1 submit/tizen_3.0/20161202.001922
Injun Yang [Thu, 1 Dec 2016 11:55:43 +0000 (20:55 +0900)]
Fix : ADV_IND data is not present while le scanning

[Problem] While LE scanning, ADV_IND data is not present
[Cause & Measure] ADV_IND data is not delivered to application
[Checking Method] LE scan

Change-Id: I1c85c9877153290288822b8305c50323781dfe56
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agobt-api: Do not log the _bt_check_privilege() using macro 37/101737/1
Syam Sidhardhan [Wed, 30 Nov 2016 12:36:41 +0000 (18:06 +0530)]
bt-api: Do not log the _bt_check_privilege() using macro

Here we are replacing the _bt_send_request() macro with the
direct function call inorder to not print the _bt_check_privilege()
method call. This helps us in reducing the prints and also if there
is any error the caller is always printing the details.

-       result = _bt_send_request(service_type, service_function,
+       result = _bt_sync_send_request(service_type, service_function

Change-Id: Ibe5b1d3acb4eff978b93ff4fdecb4ad2806b330a
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
7 years agobt-api: Fix incorrect macro expansion for service function 36/101736/1
Syam Sidhardhan [Wed, 30 Nov 2016 12:35:00 +0000 (18:05 +0530)]
bt-api: Fix incorrect macro expansion for service function

The _bt_send_request() and _bt_send_request_async() macros are
designed in such a way that we should always pass a "#define value"
or "enum type" as the first two params. Otherwise it will just print
the variable name.

Change-Id: I137c59a780ffd0000cd79dbafe0379389405d5ce
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
7 years ago[Code Cleanup] Remove dbus-glib APIs and headers 24/101224/1
Biman Paul [Thu, 6 Oct 2016 08:22:11 +0000 (13:52 +0530)]
[Code Cleanup] Remove dbus-glib APIs and headers

[Problem] Unused deprecated dbus-glib code
[Cause & Measure] removed dbus-glib codes

Change-Id: I6d3108ec83e724ff41e111052489225ed92f476c

7 years agoFix "g_variant_get" API usage error 43/101043/1
Nagaraj D R [Wed, 30 Nov 2016 06:58:50 +0000 (12:28 +0530)]
Fix "g_variant_get" API usage error

g_variant_get expects address, as its parameter
and not the local value

Change-Id: I221e26e43f03c4b2476a210190769668b31c3de1

7 years agobt-api: gatt-client: Fix memory leak 32/101032/1
Syam Sidhardhan [Wed, 30 Nov 2016 05:35:55 +0000 (11:05 +0530)]
bt-api: gatt-client: Fix memory leak

[Model]COMMON
[BinType] AP
[Customer]N/A

[Issue#]Memeory leak reported by cppcheck automated tool
[Request]Internal
[Occurrence Version]PK6

[Problem]Memeory leak reported by cppcheck tool
[Cause & Measure]We were no freeing the memory
[Checking Method]Gatt test tool

[Team]BT
[Developer]Syam Sidhardhan <s.syam@samsung.com>
[Solution company] Samsung
[Change Type]N/A

Change-Id: I2002d1f47cc3381a7db442cb72e3880af1a09aac

7 years agoDPM: Sync API return value with other bt-service modules. 68/100968/2
h.sandeep [Tue, 29 Nov 2016 11:41:15 +0000 (17:11 +0530)]
DPM: Sync API return value with other bt-service modules.

1. All the API return values synchronozed as per bt-service
modules.
2. Moved the getter API return values to API out parameter.
3. Fix the Svace 2.2 issue.

Change-Id: Ie76f2cbc913bfbdb567606635e0e817b2f237056
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoPXP: Modify APIs and Signal handle implementation 67/100967/2
h.sandeep [Thu, 24 Nov 2016 11:12:56 +0000 (16:42 +0530)]
PXP: Modify APIs and Signal handle implementation

1. Add Seperate APIs for Monitor and reporter role.
2. Add implementation to moinotr the PID for reporter service.
3. Remove the property changed handler for monitor role.

Change-Id: I033bc604d7fc2971eecaa65647cec50af7f29840
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoFix svace 2.2 version issues 72/100772/2
DoHyun Pyun [Tue, 29 Nov 2016 07:31:54 +0000 (16:31 +0900)]
Fix svace 2.2 version issues

Change-Id: I593775e64ae7d45a139ac2607b970dbd20abedb2
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix svace issues. 29/100829/1
Deokhyun Kim [Tue, 29 Nov 2016 10:04:38 +0000 (19:04 +0900)]
Fix svace issues.

Change-Id: I8a3b5d42472a85ccbc907539409d612a7b9aff84
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
7 years agoFix incorrect memory validation for g_malloc*() 68/100468/2
Syam [Mon, 28 Nov 2016 08:32:47 +0000 (17:32 +0900)]
Fix incorrect memory validation for g_malloc*()

g_malloc*() will always return a valid memory address. If the
device is in out of memory case, g_malloc*() will assert.
Hence no need to validate the return value against NULL.

g_malloc*() will always return a memory address which is of type void *.
It doesn't make any sense to typecast this return address to another
pointer address. Ex: char *p = (char *)g_malloc0(..);

Change-Id: I84e772ea2879f2e00a9232922638e19075fd1c7f
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoApply glib log handler 44/100444/1 accepted/tizen/3.0/common/20161129.103537 accepted/tizen/3.0/ivi/20161129.063619 accepted/tizen/3.0/mobile/20161129.063507 accepted/tizen/3.0/tv/20161129.063554 accepted/tizen/3.0/wearable/20161129.063604 submit/tizen_3.0/20161128.024738 submit/tizen_3.0/20161129.003837
Injun Yang [Mon, 28 Nov 2016 06:52:20 +0000 (15:52 +0900)]
Apply glib log handler

Change-Id: I8edf281281e49358f8c9fe5872040f055bb09952
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoEnhance debug message 42/100442/1
Injun Yang [Mon, 28 Nov 2016 06:34:13 +0000 (15:34 +0900)]
Enhance debug message

Change-Id: I2b052ee4639667a3b4573c275843ae291d739c00
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoAdd the le_scan_event_id to bt-service receiver 49/99849/2 accepted/tizen/3.0/common/20161125.101514 accepted/tizen/3.0/ivi/20161125.080347 accepted/tizen/3.0/mobile/20161125.080252 accepted/tizen/3.0/tv/20161125.080315 accepted/tizen/3.0/wearable/20161125.080332 submit/tizen_3.0/20161124.091119
Lee Hyuk [Thu, 24 Nov 2016 08:45:11 +0000 (17:45 +0900)]
Add the le_scan_event_id to bt-service receiver

Change-Id: I62dbbff395e84dd8897484783dbea15a8b8b331a
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
7 years agoModify the codes for 64bit build 77/99777/1
DoHyun Pyun [Thu, 24 Nov 2016 05:48:19 +0000 (14:48 +0900)]
Modify the codes for 64bit build

Change-Id: Ic2a9be77f79bb5b14480ee0d2f73ba08a794e902
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoModify build feature names as Tizen 3.0 build option naming rule 86/98886/1 accepted/tizen/3.0/common/20161122.195206 accepted/tizen/3.0/ivi/20161122.124724 accepted/tizen/3.0/mobile/20161122.124604 accepted/tizen/3.0/tv/20161122.124645 accepted/tizen/3.0/wearable/20161122.124705 submit/tizen_3.0/20161122.004310
DoHyun Pyun [Mon, 21 Nov 2016 05:51:00 +0000 (14:51 +0900)]
Modify build feature names as Tizen 3.0 build option naming rule

Change-Id: I0eed29d2fd67d815317da42e68971dcbedc2fa46
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoHPS: Fix data_status value for http response. 61/98861/1
h.sandeep [Mon, 17 Oct 2016 10:16:09 +0000 (15:46 +0530)]
HPS: Fix data_status value for http response.

Change-Id: Id76dd4b617cb563a14389d6ec5dcf187becb1f6b
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
8 years agoHPS: Add support to use offset parameter. 60/98860/1
h.sandeep [Mon, 17 Oct 2016 10:02:37 +0000 (15:32 +0530)]
HPS: Add support to use offset parameter.

This patch adds offset feature for read/write to
HPS attributes.

Change-Id: Iaa83a2a2ec8aee324e7562ac1a5bc763a958cf7f
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
8 years agoHPS: Assign SIG defined UUIDs for HPS attributes 59/98859/1
h.sandeep [Tue, 16 Feb 2016 04:59:32 +0000 (10:29 +0530)]
HPS: Assign SIG defined UUIDs for HPS attributes

Change-Id: I4fdb50bd416e8b2a88eefa31a81446a99e9551f3
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
8 years agoRemove line number printing in the test application 51/98351/1
DoHyun Pyun [Thu, 17 Nov 2016 06:19:19 +0000 (15:19 +0900)]
Remove line number printing in the test application

Change-Id: I48e8620e6a03b897c0dcbb813bb912b8089fb12b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoRemove the debug message for TC 94/98294/1 accepted/tizen/3.0/common/20161118.192912 accepted/tizen/3.0/ivi/20161118.003711 accepted/tizen/3.0/mobile/20161118.003613 accepted/tizen/3.0/tv/20161118.003628 accepted/tizen/3.0/wearable/20161118.003647 submit/tizen_3.0/20161117.002644
DoHyun Pyun [Thu, 17 Nov 2016 03:06:28 +0000 (12:06 +0900)]
Remove the debug message for TC

Change-Id: I93aad05022b19f5140f3470df796b1ed1b00905d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoMerge "Fix the warning errors" into tizen_3.0
DoHyun Pyun [Wed, 16 Nov 2016 02:33:02 +0000 (18:33 -0800)]
Merge "Fix the warning errors" into tizen_3.0

8 years agoFix the warning errors 19/98019/1
DoHyun Pyun [Wed, 16 Nov 2016 01:31:47 +0000 (10:31 +0900)]
Fix the warning errors

Change-Id: If78506ba152762a927a3fcf6cd2f5419f411902f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoMerge "Modify the transfer file name set" into tizen_3.0
Pyun DoHyun [Tue, 15 Nov 2016 05:57:00 +0000 (21:57 -0800)]
Merge "Modify the transfer file name set" into tizen_3.0

8 years agoModify the transfer file name set 25/97825/1
Hyuk Lee [Tue, 15 Nov 2016 05:44:33 +0000 (14:44 +0900)]
Modify the transfer file name set

Change-Id: I52dabf72a63bbb50e768a7ced59b972b67e940a4
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
8 years agoiBeacon: Remove the ibeacon report signal handling 05/97505/3
h.sandeep [Mon, 14 Nov 2016 08:55:42 +0000 (14:25 +0530)]
iBeacon: Remove the ibeacon report signal handling

The iBeacon report shall be extracted from AdvReport signal
at CAPI layer as part of LE Device Found Updated callback

 Revert the below patch
 ====================================================
 iBeacon: Add support for handling iBeacon reports.

 Change-Id: Ib0658eb8e610da76a588bb7f2cb21d580759626a
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
 =====================================================

Change-Id: I394a018271166af60c8bf28c981124e63606c820
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
8 years agoMerge "Disconnect rfcomm connections" into tizen_3.0
Pyun DoHyun [Tue, 15 Nov 2016 04:37:29 +0000 (20:37 -0800)]
Merge "Disconnect rfcomm connections" into tizen_3.0

8 years agoMerge "Disconnect all profiles if a device is restricted by DPM" into tizen_3.0
Pyun DoHyun [Tue, 15 Nov 2016 04:36:35 +0000 (20:36 -0800)]
Merge "Disconnect all profiles if a device is restricted by DPM" into tizen_3.0

8 years agoMerge "Reject new rfcomm connection when DPM disallow it" into tizen_3.0
Pyun DoHyun [Tue, 15 Nov 2016 04:35:53 +0000 (20:35 -0800)]
Merge "Reject new rfcomm connection when DPM disallow it" into tizen_3.0

8 years agoDisconnect rfcomm connections 13/97713/1
Seungyoun Ju [Thu, 13 Oct 2016 11:59:02 +0000 (20:59 +0900)]
Disconnect rfcomm connections

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

[Issue#] P161013-00685
[Request] PLM
[Occurrence Version] R735AUCU2CPJ3

Since MDM is not used in Tizen 3.0, only the disconnect all connections
function is retained in this patch while merging from SLP.

[Problem] sapd is not working when SPP MDM policy is changed
 from "disallow" to "allow"
[Cause & Measure] sapd doesn't consider this scenario and it just blocks
 the communication once socket API's return error code. But our policy is also
 not consistent (Only Tx is disallowed when SPP policy is restricted.
 But the connection is alive and Rx is possible).
 So it is better to disconnect the SPP when it is restricted.
 And in this case, BT_ERROR_OPERATION_FAILED is returned to service daemon
 so it is hard to decide whether this failure is caused by MDM or not.
 So disconnection is implemented in bt-api when SPP MDM policy is restricted.
[Checking Method] Make SPP connection -> Change SPP policy to restricted

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

Change-Id: Iaaa18b7f786477123ae485dc4564c0189e730642
Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Change-Id: Iaaa18b7f786477123ae485dc4564c0189e730642

8 years agoDisconnect all profiles if a device is restricted by DPM 12/97712/1
Sangki Park [Tue, 20 Sep 2016 08:32:53 +0000 (17:32 +0900)]
Disconnect all profiles if a device is restricted by DPM

[Model] R765
[BinType] AP
[Customer] N/A

[Issue#] P160919-02331
[Request] PLM
[Occurrence Version] N/A

[Problem] A device is not disconnected even if it is set to blacklist device
[Cause & Measure] Not implemented
[Checking Method] connect -> set the device to blacklist using dpm-toolkit

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

Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Change-Id: I64e8cac1dd64482ffa0f09593a2fe475c0690486

8 years agoReject new rfcomm connection when DPM disallow it 11/97711/1
Seungyoun Ju [Fri, 14 Oct 2016 05:22:17 +0000 (14:22 +0900)]
Reject new rfcomm connection when DPM disallow it

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

[Issue#] P161013-00685
[Request] PLM
[Occurrence Version] R735AUCU2CPJ3

Code modified according to DPM poliy.

[Problem] After SPP MDM policy is restricted and the device is rebooted,
 service daemon cannot create RFCOMM server socket. But it cannot know
 when MDM policy is changed to "allowed". So until BT is turned off and
 on, related service cannot run.
[Cause & Measure] RFCOMM server socket creation / listen / accept
operations are blocked by MDM. But it is better to block new
connections. So that, service layer doesn't need to consider MDM policy.
[Checking Method] Restrict SPP MDM Policy -> Reboot -> Allow SPP MDM
policy -> Check service (sapd) working state.

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

Signed-off-by: Sudha Bheemanna <b.sudha@samsung.com>
Change-Id: Ie12949dde1f9fc50adb5fb86325de9a7da00fb8f

8 years agoFix a svace issue 18/97318/1 accepted/tizen/3.0/common/20161116.143107 accepted/tizen/3.0/ivi/20161116.020939 accepted/tizen/3.0/mobile/20161116.020845 accepted/tizen/3.0/tv/20161116.020909 accepted/tizen/3.0/wearable/20161116.020920 submit/tizen_3.0/20161115.010647
DoHyun Pyun [Mon, 14 Nov 2016 01:20:02 +0000 (10:20 +0900)]
Fix a svace issue

Change-Id: I2ac95d446e36bcb0645271cd03c7a8c7026871a0
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoFix coding style warnings and errors 09/97309/1
DoHyun Pyun [Mon, 14 Nov 2016 00:52:07 +0000 (09:52 +0900)]
Fix coding style warnings and errors

Change-Id: I7a5f2a282d65e2ce7d6c083b95b1007422483888
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoAdd the bluetooth_opp_get_transfer_progress function 56/97056/1
DoHyun Pyun [Fri, 11 Nov 2016 05:25:39 +0000 (14:25 +0900)]
Add the bluetooth_opp_get_transfer_progress function

Change-Id: I32cce2c9ca1f41e0f69571b65571f1b8e36fd2f5
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoFix the Svace issue 24/97024/1 submit/tizen_3.0/20161111.041011
Hyuk Lee [Fri, 11 Nov 2016 04:01:59 +0000 (13:01 +0900)]
Fix the Svace issue

Change-Id: I3017c03e1cf480ba6e983e2d2a8584654b6ceb28
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
8 years agoFix to recover bt_adapter when turn on flight mode 76/96576/2 accepted/tizen/3.0/common/20161114.142945 accepted/tizen/3.0/ivi/20161110.071346 accepted/tizen/3.0/mobile/20161110.071243 accepted/tizen/3.0/tv/20161110.071318 accepted/tizen/3.0/wearable/20161110.071334 submit/tizen_3.0/20161110.000333 submit/tizen_3.0_common/20161114.081136
Taejin Woo [Thu, 10 Nov 2016 01:41:50 +0000 (10:41 +0900)]
Fix to recover bt_adapter when turn on flight mode

- When turn on and off flight mode, don't recovery BT's before state

Change-Id: Ie58ceb5a4a8e3e1c339cef6a2fade9e9a99ff94d
Signed-off-by: Taejin Woo <tt.woo@samsung.com>
8 years agoPXP: Handle properties changed signal for Monitor role. 95/96595/1
h.sandeep [Wed, 9 Nov 2016 04:39:27 +0000 (10:09 +0530)]
PXP: Handle properties changed signal for Monitor role.

Change-Id: I769fab953ff4b30dd5f23cacca58ba34822f5514
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
8 years agoAdd base code for register/unregister 94/96594/1
Gowtham Anandha Babu [Thu, 27 Oct 2016 12:43:30 +0000 (18:13 +0530)]
Add base code for register/unregister

1) Added base code for registering and unregistering
   proximity services.

Change-Id: I974a6858a2f5f68f6d6438522238284097bac3a4
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
8 years agoPXP: Add base code for Proximity Profile Monitor Role. 93/96593/1
h.sandeep [Tue, 25 Oct 2016 04:03:59 +0000 (09:33 +0530)]
PXP: Add base code for Proximity Profile Monitor Role.

Change-Id: Ic82000a4a752bb05a52864ac4ad6cb6fe51a5526
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
8 years agoFix the coding rule 28/96128/1
Taejin Woo [Tue, 8 Nov 2016 02:32:02 +0000 (11:32 +0900)]
Fix the coding rule

Change-Id: I4ac683f477e9221639b25d2fc162dd469281144d
Signed-off-by: Taejin Woo <tt.woo@samsung.com>
8 years agoMerge the code from private 37/95337/1 accepted/tizen/3.0/common/20161114.081108 accepted/tizen/3.0/ivi/20161108.062304 accepted/tizen/3.0/mobile/20161108.062156 accepted/tizen/3.0/tv/20161108.062235 accepted/tizen/3.0/wearable/20161108.062251 submit/tizen_3.0/20161107.085533 submit/tizen_3.0_common/20161110.084657
DoHyun Pyun [Thu, 3 Nov 2016 02:00:34 +0000 (11:00 +0900)]
Merge the code from private

branch:devel/bluetooth/master
=================================================
commit da8a21b4dd39e2aa6ea65bae11e1e5ecf63aa8a5
Author: Seungyoun Ju <sy39.ju@samsung.com>
Date:   Tue Oct 4 20:41:11 2016 +0900
==================================================

Change-Id: Id49c1b85280456b4914d14437c2fa2533764f67a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoSet the connectable mode for IVI profile
DoHyun Pyun [Wed, 2 Nov 2016 02:58:50 +0000 (11:58 +0900)]
Set the connectable mode for IVI profile

Change-Id: I4eebfde2ab90749ff0deb974ee183475540a52de
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoiBeacon: Add support for handling iBeacon reports. 27/90927/8
h.sandeep [Wed, 5 Oct 2016 04:17:18 +0000 (09:47 +0530)]
iBeacon: Add support for handling iBeacon reports.

Change-Id: Ib0658eb8e610da76a588bb7f2cb21d580759626a
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
8 years agoImplement the getter function about the pbap connected status 98/93598/2 accepted/tizen/3.0/ivi/20161103.002133 accepted/tizen/3.0/mobile/20161103.002044 accepted/tizen/3.0/tv/20161103.002103 accepted/tizen/3.0/wearable/20161103.002119 submit/tizen_3.0/20161102.022329
DoHyun Pyun [Tue, 25 Oct 2016 05:08:02 +0000 (14:08 +0900)]
Implement the getter function about the pbap connected status

Change-Id: Id0144a9f943a3d273992e13fd82f29ff2716fef6
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoEnable bt_adapter_recover function in the platform 78/94278/2
DoHyun Pyun [Fri, 28 Oct 2016 04:03:17 +0000 (13:03 +0900)]
Enable bt_adapter_recover function in the platform

Change-Id: Iadf775ef2f726cff72c3acfe262ff38362a279e9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoRemove BT enable check logic in pbap init / deinit 69/93669/1
DoHyun Pyun [Tue, 25 Oct 2016 08:20:09 +0000 (17:20 +0900)]
Remove BT enable check logic in pbap init / deinit

Change-Id: I6b61a5f730127fc1117680e93ffb63cadaff1686
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoFix the bug about the connected status 20/92820/1
DoHyun Pyun [Wed, 19 Oct 2016 01:57:11 +0000 (10:57 +0900)]
Fix the bug about the connected status

Change-Id: Ie12d341c2b5162e194b9271a3fcbfda5cda9f7ce
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoDon't add the recovery logic into the platform image 15/92415/1 accepted/tizen/3.0/ivi/20161028.134111 accepted/tizen/3.0/mobile/20161028.133226 accepted/tizen/3.0/tv/20161028.133536 accepted/tizen/3.0/wearable/20161028.133822 accepted/tizen/common/20161017.170157 accepted/tizen/ivi/20161017.080428 accepted/tizen/mobile/20161017.080339 accepted/tizen/tv/20161017.080356 accepted/tizen/wearable/20161017.080411 submit/tizen/20161017.024543 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082423 submit/tizen_3.0_common/20161104.104000
DoHyun Pyun [Mon, 17 Oct 2016 02:38:09 +0000 (11:38 +0900)]
Don't add the recovery logic into the platform image

Change-Id: I49fb518601558212ff9b6f6d94fa90a9eee245df
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoRetry to initialize the obexd event receiver 26/91126/1 accepted/tizen/3.0/ivi/20161011.053631 accepted/tizen/3.0/mobile/20161015.032455 accepted/tizen/3.0/tv/20161016.003656 accepted/tizen/3.0/wearable/20161015.080446 accepted/tizen/common/20161006.153705 accepted/tizen/ivi/20161006.080356 accepted/tizen/mobile/20161006.080312 accepted/tizen/tv/20161006.080326 accepted/tizen/wearable/20161006.080342 submit/tizen/20161006.041529 submit/tizen_3.0_ivi/20161010.000000 submit/tizen_3.0_ivi/20161010.000010 submit/tizen_3.0_mobile/20161015.000000 submit/tizen_3.0_tv/20161015.000000 submit/tizen_3.0_wearable/20161015.000000
DoHyun Pyun [Thu, 6 Oct 2016 03:23:33 +0000 (12:23 +0900)]
Retry to initialize the obexd event receiver

Change-Id: Ic85e585059604acf25d2b810bece731d8561d888
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoSend the PBAP disconnected event at once 18/91118/1
DoHyun Pyun [Thu, 6 Oct 2016 02:23:50 +0000 (11:23 +0900)]
Send the PBAP disconnected event at once

Change-Id: Id93c98eff69334ed4dba0d048c8d8ae973933854
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
8 years agoReturn the proper error when it is no discovery state 97/90997/1 accepted/tizen/common/20161005.165620 accepted/tizen/ivi/20161006.075753 accepted/tizen/mobile/20161006.075711 accepted/tizen/tv/20161006.075725 accepted/tizen/wearable/20161006.075737 submit/tizen/20161005.091935
DoHyun Pyun [Wed, 5 Oct 2016 09:05:04 +0000 (18:05 +0900)]
Return the proper error when it is no discovery state

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