Pyun DoHyun [Tue, 17 Jan 2017 08:24:12 +0000 (00:24 -0800)]
Merge "Invoke MTU changed callback" into tizen_3.0
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>
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>
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>
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>
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>
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>
Ł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
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>
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>
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>
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>
h.sandeep [Fri, 16 Dec 2016 08:25:09 +0000 (13:55 +0530)]
DPM: Fix DPM GCC6 warning errors.
Change-Id: I828af56f6cfa873af2caaeddb17333db8cd85df9
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
DoHyun Pyun [Wed, 28 Dec 2016 00:14:56 +0000 (09:14 +0900)]
Set the BT device vconf value when HID device is connected / disconnected
Change-Id: Ic784d7c03d72819b3ea2a22bd4fad97d8ed95986
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Pyun DoHyun [Tue, 27 Dec 2016 06:04:37 +0000 (22:04 -0800)]
Merge "Unregister obex-server and media-player" into tizen_3.0
Nagaraj D R [Thu, 15 Dec 2016 10:47:55 +0000 (16:17 +0530)]
Unregister obex-server and media-player
In case of recovery adapter, flightmode, and UPS
media player and obex-server are not unregistered.
This might lead to problmes if bt-service is kept alive.
Change-Id: Ib5e299572ae528facfaf62db4f2959c4acd83f69
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
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
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
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
Piotr Dabrowski [Thu, 8 Dec 2016 08:42:59 +0000 (09:42 +0100)]
Warnings fixed for BT MAP
Change-Id: Idb9eecc02ceba2a46ab1067a0309466655d13440
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
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>
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>
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>
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>
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>
Piotr Dabrowski [Fri, 18 Nov 2016 08:58:48 +0000 (09:58 +0100)]
[bluetooth-frwk] pushMessage
Change-Id: I47f99f194f1992cf8c6ef7127dd48c6bfd5e9fbc
Piotr Dabrowski [Fri, 11 Nov 2016 10:25:45 +0000 (11:25 +0100)]
[bluetooth-frwk] bt_map_client_message_object_h
Change-Id: I12eccc5b3f2bda2e39d9bf5f45c70aa2d6f309c4
Piotr Dabrowski [Thu, 17 Nov 2016 13:45:05 +0000 (14:45 +0100)]
[bluetooth-frwk] listFolders filter, refactor, removed GVariant, cleanup
Change-Id: Ifcd1cf3311f1f64b78c92de4bf366f9515e39073
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>
Piotr Dabrowski [Wed, 9 Nov 2016 15:39:46 +0000 (16:39 +0100)]
[bluetooth-frwk] listMessages
Change-Id: Ibc633c9c9e930da5cc296917d7821d0f2294971a
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>
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>
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>
Piotr Dabrowski [Wed, 26 Oct 2016 15:46:50 +0000 (17:46 +0200)]
[bluetooth-frwk] API defines
Change-Id: I908dc6e6410c91c8c4b6b483658b796d0e2ccfb9
Piotr Dabrowski [Wed, 26 Oct 2016 15:37:52 +0000 (17:37 +0200)]
[bluetooth-frwk] setFolder
Change-Id: I58c2c6a9eb54335920d553a6d376e9cceb6b5821
Lukasz Bardeli [Tue, 25 Oct 2016 09:57:12 +0000 (11:57 +0200)]
[bluetooth-frwk] updateInbox
Change-Id: Idee948fbab0b451ebecd996895966abffc0e09e1
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>
Piotr Dabrowski [Mon, 17 Oct 2016 08:25:12 +0000 (10:25 +0200)]
initial MAP stub implementation
Change-Id: Ic23c297cb65b69d05b2ec63ef3db414504ec3014
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
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>
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>
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>
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>
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
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>
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
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
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>
Pyun DoHyun [Fri, 2 Dec 2016 02:35:06 +0000 (18:35 -0800)]
Merge "Recover bluetoothd crash" into tizen_3.0
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>
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>
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>
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>
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>
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
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
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
DoHyun Pyun [Wed, 16 Nov 2016 02:33:02 +0000 (18:33 -0800)]
Merge "Fix the warning errors" into tizen_3.0
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>
Pyun DoHyun [Tue, 15 Nov 2016 05:57:00 +0000 (21:57 -0800)]
Merge "Modify the transfer file name set" into tizen_3.0
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>
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>
Pyun DoHyun [Tue, 15 Nov 2016 04:37:29 +0000 (20:37 -0800)]
Merge "Disconnect rfcomm connections" 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
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
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
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
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
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>
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>
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>
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>