Amit Purwar [Mon, 3 Sep 2018 11:41:23 +0000 (17:11 +0530)]
removed the unused path variable from the log
Change-Id: Ic31b778dc82a3fa045bdfb3166eea26624ad976c
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Taesoo Jun [Mon, 3 Sep 2018 10:52:40 +0000 (19:52 +0900)]
Fix memory leak in _bt_hrp_collector_bsl_read_completed_cb
Change-Id: I24fbb030f404a25fa4553624fe410c52c60207b3
Signed-off-by: Taesoo Jun <steve.jun@samsung.com>
DoHyun Pyun [Fri, 31 Aug 2018 02:02:02 +0000 (02:02 +0000)]
Merge "Reduce the complexity of __bt_update_data function" into tizen
DoHyun Pyun [Fri, 31 Aug 2018 01:46:37 +0000 (10:46 +0900)]
Reduce the complexity of __bt_update_data function
Change-Id: I3c081ee337cea95f9abdb3f091fafdd5c1978b1f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Pyun DoHyun [Fri, 31 Aug 2018 01:09:08 +0000 (01:09 +0000)]
Merge "Fixed the event for Gatt char changed value" into tizen
Abhishek Chandra [Tue, 14 Aug 2018 11:57:13 +0000 (17:27 +0530)]
BLE Heart Rate Profile - Collector Implementation
BLE heartrate profile collector implementation in
bluetooth is added ,following CAPI are added :
- bt_hrp_collector_create
- bt_hrp_collector_destory
- bt_hrp_collector_start_scan
- bt_hrp_collector_stop_scan
- bt_hrp_collector_connect
- bt_hrp_collector_disconnect
- bt_hrp_collector_set_notification
- bt_hrp_get_body_sensor_location
- bt_hrp_collector_set_connection_state_changed_cb
- bt_hrp_collector_unset_connection_state_changed_cb
Change-Id: I128900292674eb3ad8db9e65865c32c088ba622b
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
Amit Purwar [Tue, 28 Aug 2018 11:45:23 +0000 (17:15 +0530)]
Fixed the event for Gatt char changed value
Change-Id: If2626bc9503ba3b9a4d87ac5adc3cff8c1b347df
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Abhishek Chandra [Thu, 2 Aug 2018 12:38:45 +0000 (18:08 +0530)]
BLE Heart Rate Profile - Sensor Implementation
BLE heartrate profile sensor implementation in
bluetooth is added ,following CAPI are added :
- bt_hrp_set_heartrate_value
- bt_hrp_set_location_value
- bt_hrp_set_energy_value
- bt_hrp_set_rr_interval
- bt_hrp_set_contact_value
- bt_hrp_set_device_manufacturer_name
- bt_hrp_set_interval
- bt_hrp_set_sensor_notification_state_change_cb
- bt_hrp_set_sensor_send_notification_state_changed_cb
- bt_hrp_set_sensor_read_value_cb
- bt_hrp_set_sensor_write_value_cb
- bt_hrp_sensor_create
- bt_hrp_sensor_start
- bt_hrp_sensor_stop
- bt_hrp_sensor_update_heartrate_value
- bt_hrp_sensor_destroy
Change-Id: Ia1cc6de29f147ba3b2827c5b6cd0bf3334392e60
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
DoHyun Pyun [Tue, 28 Aug 2018 03:47:35 +0000 (12:47 +0900)]
Fix the typo error
Change-Id: I099f6a2cce979f6af2e6eb9a5bfa71266c6b8a43
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Mon, 27 Aug 2018 05:47:49 +0000 (14:47 +0900)]
Reduce the complexity of __bt_update_otp_server_data function
Change-Id: I03d9a8b29e5d2d8dc3ecd04db3650a7896175ac1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Mon, 27 Aug 2018 04:48:43 +0000 (13:48 +0900)]
Reduce the complexity of _bt_otp_client_read_value_response function
Change-Id: I689295997e3e3fb2647fbf2cac0ee93678c7baab
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Mon, 27 Aug 2018 02:26:57 +0000 (11:26 +0900)]
Reduce the complexity of _bt_otp_client_indication function
Change-Id: I1e5b45fe62e25245105aa0b2a75e70a527826e37
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Deokhyun Kim [Tue, 21 Aug 2018 08:25:32 +0000 (17:25 +0900)]
Add 4 error codes to pbap connection callback function.
- BT_ERROR_AUTH_REJECTED
- BT_ERROR_AUTHORIZATION_REJECTED
- BT_ERROR_SERVICE_NOT_FOUND
- BT_ERROR_TIMED_OUT
Change-Id: Iaf73ed57b91045fc84d98566571dc766d49e2a71
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Pyun DoHyun [Mon, 20 Aug 2018 02:52:34 +0000 (02:52 +0000)]
Merge "Add a new error code." into tizen
Deokhyun Kim [Thu, 2 Aug 2018 08:05:09 +0000 (17:05 +0900)]
Add a new error code.
- BT_ERROR_AUTHORIZATION_REJECTED
Change-Id: I0c9d2a13df93efb67a138b8538da6d16bcea2165
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
DoHyun Pyun [Wed, 8 Aug 2018 05:16:40 +0000 (14:16 +0900)]
Deprecate HDP(Health Device Profile) APIs
In these days there is no vendor to make BT health device
(BT/EDR HDP profile). And the supported device also be
less. Because we can't get new BT health device, it is hard
to verify APIs for developers and testers. So we deprecate
HDP APIs
Change-Id: I1e4cb04d0144b4023a7a536e2bfba5458cccb0c9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Wed, 8 Aug 2018 05:03:10 +0000 (14:03 +0900)]
Fix the API reference errors
Change-Id: I19592d0e2e192760acaad618944af774c4530f5f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Wed, 1 Aug 2018 23:44:30 +0000 (08:44 +0900)]
Fix the warning for aarch64 build
Change-Id: I6c21984a5cc111c5b32285c04ce399535f5b34be
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Amit Purwar [Wed, 1 Aug 2018 03:49:03 +0000 (09:19 +0530)]
Fixed dlog format string check
Change-Id: I19042d4c5b68285c4c17b9ec30771a1d0365a88c
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
DoHyun Pyun [Tue, 31 Jul 2018 00:27:25 +0000 (09:27 +0900)]
Adjust the coverage exception section
Change-Id: I660ff63d889f367d59dfdec58adb773c59da9459
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Mon, 30 Jul 2018 09:03:10 +0000 (18:03 +0900)]
Fix the build error
Change-Id: I058ac2e8d64c7dd1dbe19b8a223a1dc771f7e9ad
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Deokhyun Kim [Wed, 11 Jul 2018 07:24:02 +0000 (16:24 +0900)]
Check HF init status before hf_connect/disconnect
Change-Id: I702389342cc605867ca48205b796ec5960b3f264
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
injun.yang [Mon, 2 Jul 2018 09:05:31 +0000 (18:05 +0900)]
Enhance debug message
Change-Id: Idf5e38b6d51b9c9c296e4081465ef3127a7c7822
Signed-off-by: injun.yang <injun.yang@samsung.com>
injun.yang [Mon, 2 Jul 2018 08:42:16 +0000 (17:42 +0900)]
Fix : GATT service is not registered
Change-Id: I86c0304fb62c48337d8c062a9d2b010d08597d2f
Signed-off-by: injun.yang <injun.yang@samsung.com>
injun.yang [Mon, 2 Jul 2018 05:17:12 +0000 (14:17 +0900)]
Remove redundant code
Change-Id: I68f78b52a3d706478b6a9d1fcc9390560e6c7d0c
injun.yang [Tue, 12 Jun 2018 00:12:06 +0000 (09:12 +0900)]
Fix : Scan result callback is not invoked
Change-Id: I0d6d67c85910ea0b2ce9f53aa58d6ecf1aa06387
Signed-off-by: injun.yang <injun.yang@samsung.com>
Amit Purwar [Fri, 1 Jun 2018 10:04:41 +0000 (15:34 +0530)]
Fixed the unit testcases for advertisement
added the add advertisement data
added the gatt server write callback in custom service
Change-Id: I97a83a570da202799941f0e6960f1e9cb3b59a56
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Deokhyun Kim [Tue, 29 May 2018 05:45:33 +0000 (14:45 +0900)]
Fix svace major issue.
Change-Id: Ie00641454e4122e84ca273ea1c4178621b71a555
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
DoHyun Pyun [Fri, 25 May 2018 00:52:35 +0000 (09:52 +0900)]
Correct the feature check logic
We should return "Not supported" error, if 2 features
are false.
Change-Id: If06338e129f1bc836bcb5dcccb4dd5cbe771ae75
Amit Purwar [Thu, 17 May 2018 07:30:08 +0000 (13:00 +0530)]
CAPI changes for gatt client adaptation
Change-Id: I2a424cc32498e54aa852d572523503123d59bbf0
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Pyun DoHyun [Wed, 16 May 2018 09:05:08 +0000 (09:05 +0000)]
Merge "Fix invalid error value." into tizen
Deokhyun Kim [Wed, 16 May 2018 07:21:30 +0000 (16:21 +0900)]
Fix invalid error value.
Change-Id: Ice72c72220208aa8484ea7877d1d4f7be6ebbb87
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
injun.yang [Wed, 16 May 2018 07:19:30 +0000 (16:19 +0900)]
Remove the redundant debug message
Change-Id: Ia545313be358d142476681ca8b7429e23b1960b0
Signed-off-by: injun.yang <injun.yang@samsung.com>
Hyotaek Shim [Sun, 13 May 2018 23:55:23 +0000 (08:55 +0900)]
Remove unused dependency to dbus-glib
Change-Id: I9ff6f9550bf1a511e759379d3afb97e465f991f2
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
DoHyun Pyun [Wed, 9 May 2018 06:48:23 +0000 (15:48 +0900)]
Adjust the coverage exception section
Change-Id: Ie743248c7bdd27ee2d02657df51f8aa2cc377562
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Wed, 9 May 2018 05:58:28 +0000 (14:58 +0900)]
Add the test coverage build option in spec file
Change-Id: I7c619899d456848ddfdc198967433d729961e7d8
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Amit Purwar [Mon, 30 Apr 2018 12:00:11 +0000 (17:30 +0530)]
Fix: Added gatt server validation before GATT service is deleted
Change-Id: I374e17715d08155956c4104de7f1689b0a9f26f9
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Hyuk Lee [Thu, 5 Apr 2018 04:44:38 +0000 (13:44 +0900)]
Add the AVRCP delay changed callback function
Change-Id: I5308f0eacfd3ee388d487f17fc2637143c5e8fa2
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
Hyuk Lee [Wed, 28 Mar 2018 06:57:15 +0000 (15:57 +0900)]
Add the internal API of delay report
Change-Id: Ic5e152ef594023b54e9c919f90048d86e160b474
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
Wootak Jung [Wed, 14 Mar 2018 06:24:17 +0000 (15:24 +0900)]
Remove deprecated 2.3.1 gatt APIs
Change-Id: I47c1fb890b11409a818eb01e40d40269bcbbf3c9
Wootak Jung [Mon, 12 Mar 2018 02:10:51 +0000 (11:10 +0900)]
Remove deprecated 2.3.1 APIs
- Remove bt adapter le APIs
- Migrate to private header for some enums
- Add @MOBILE_ONLY tag for mobile only APIs
to hide on Wearable API reference
Change-Id: I55035ca1d6278dddcfa7cbe05b2781241a66b3dc
Amit KS [Thu, 22 Mar 2018 04:34:05 +0000 (10:04 +0530)]
[Bluetooth] Fixes for SVACE issue WGID 319830 and 319840
Change-Id: Iae4fcd6c0ce7a6e48b6569720af30f5a903f7d91
Signed-off-by: Amit KS <amit.s12@samsung.com>
Abhishek Chandra [Wed, 21 Mar 2018 08:34:53 +0000 (14:04 +0530)]
[Bluetooth]SVACE issue fixed for WGID :
- 305910
- 305912
Change-Id: I6191e8f9c70c0b31290986429d0e9f2ac2b4756a
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
Wootak Jung [Tue, 20 Mar 2018 06:06:34 +0000 (15:06 +0900)]
Fix memory leak and remove dead code
Change-Id: Ib7e0abe1154008587a6c5eba34ff1d317e8653b4
Wootak Jung [Tue, 13 Mar 2018 08:33:49 +0000 (17:33 +0900)]
Fix memory leak and NULL dereference issue
Change-Id: I59521afe6aef9c3ec96c1ad294301c322a70539e
Wootak Jung [Mon, 12 Mar 2018 07:04:48 +0000 (16:04 +0900)]
Fix memory leak issue
Change-Id: Ic09df091874392da891d5d926dfa2403f7ac0ee1
DoHyun Pyun [Tue, 6 Mar 2018 02:18:11 +0000 (11:18 +0900)]
Fix native API reference errors
Change-Id: I1abc1c0c3a0ab3e902f4b5daaa16b7a5ba515beb
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Abhishek Chandra [Tue, 30 Jan 2018 10:42:10 +0000 (16:12 +0530)]
[Bluetooth] CSharp TCT Fixes over Latest Tizen branch
Change-Id: I27eddaa9e1c117feb9fa4f566e7160dc134f9e10
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
Abhishek Chandra [Thu, 25 Jan 2018 05:44:19 +0000 (11:14 +0530)]
[Bluetooth] TCT Fixes over Latest Tizen branch
Fixed issues in the TCT failures on Tizen branch
Review comments fixed
Change-Id: I1cbe3743bd760674d5e4f534b8ff504fcd2f377e
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
DoHyun Pyun [Wed, 10 Jan 2018 04:14:11 +0000 (13:14 +0900)]
Enable GATT relay feature
Change-Id: I1a8e044a252c7f7d6bdce4cdc03fb307e52965f9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Abhishek Chandra [Tue, 12 Dec 2017 11:58:01 +0000 (17:28 +0530)]
[bluetooth] bt_unit_test changes for IPSP Support in TizenNext
Following IPSP functions support has been added through this patch
1) IPSP intailize
2) IPSP deinitailize
3) IPSP connect
4) IPSP disconnect
5) Callbacks and Event handling for IPSP
Change-Id: I5746265bb3eeec090054bfce75c577c7b2dc918e
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
DoHyun Pyun [Thu, 7 Dec 2017 01:52:38 +0000 (10:52 +0900)]
Fix TC fail issue in multi ADV senario
Change-Id: I443748754ed8322a5106bf55ab51596a30c048ba
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Tue, 5 Dec 2017 06:44:43 +0000 (15:44 +0900)]
Fix the prevent issues
Change-Id: I2931d3a845715c127ca096a14785ed8e37d33801
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Deokhyun Kim [Thu, 26 Oct 2017 10:30:14 +0000 (19:30 +0900)]
Use device_address instead of bluetooth_hid_request_t
Change-Id: I60759a6c5973644f7b7622324c65bdae4f918e4f
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Thu, 19 Oct 2017 02:35:40 +0000 (11:35 +0900)]
Add new bluetooth features (OOB, GATT Server / Client)
Total 3 features are added related with OOB, GATT Server,
and GATT Client.
tizen.org/feature/network.bluetooth.oob
tizen.org/feature/network.bluetooth.le.gatt.server
tizen.org/feature/network.bluetooth.le.gatt.client
Change-Id: Ie1e8ac313158218ac8c34ad2b866a20e25420a1b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Wed, 22 Nov 2017 06:49:33 +0000 (15:49 +0900)]
Add "not supported" check logic in the device API
Change-Id: I5e4ba80900f03aa48bcb022aae544725ee16e905
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Anupam Roy [Tue, 24 Oct 2017 12:34:37 +0000 (18:04 +0530)]
GATT: Fix segmentation fault while using GATT RELAY feature
bluetooth_gatt_set_descriptor_value() and bluetooth_gatt_register_service()
functions are to be used only in GATT DIRECT method.
These were wrongly placed inside GATT RELAY feature. Hence removed.
bluetooth_gatt_register_service() method was missed in GATT DIRECT method.
Change-Id: Ic8306e29069d34d429d57e5224fc5e88b1f8aba9
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
DoHyun Pyun [Wed, 18 Oct 2017 02:36:12 +0000 (11:36 +0900)]
Fix the API reference error for PBAP client
Change-Id: Ic965054f0a05d8ea21bf45d4575d714d9bff3e0c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Tue, 17 Oct 2017 07:39:33 +0000 (16:39 +0900)]
Fix the svace issues
Change-Id: I1dcfb8bcc689e8aec6c42452f522b83dcdda42dc
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Thu, 12 Oct 2017 05:45:14 +0000 (14:45 +0900)]
Fix the crash issue in OTP manual testcase
Change-Id: I8a167f3ce953f8c4e4bc0d387be90de2812a0eb9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Fri, 29 Sep 2017 00:50:57 +0000 (09:50 +0900)]
Fix the svace major issues
Change-Id: Ie98b199946c1b3e66ee7180c4b45b30ed7524930
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Thu, 28 Sep 2017 01:57:30 +0000 (10:57 +0900)]
Fix the build error for x86_64
Change-Id: I5ab19de55fe1c5eb1fa55733b15bcb11ffa53f6a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Wed, 27 Sep 2017 01:23:25 +0000 (10:23 +0900)]
Fix the prevent issues
Change-Id: Ifd8168fd03ceeb4a0cb76dcdf8d49158bd1de8a1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Wed, 20 Sep 2017 09:25:13 +0000 (18:25 +0900)]
Add the GATT Relay feature for the dual stack adaptation
Change-Id: I3b9d6efd865e8b72e91e6cbe86bb3a1817a5515a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Abhishek Chandra [Thu, 21 Sep 2017 05:21:15 +0000 (10:51 +0530)]
NULL assertion in g_ascii_strcasecmp
[Problem]Seeker remote address is resetted to
NULL if GATT connect is failed ,which causes
seeker object to remain in the Seeker list and
can never be destroyed as remote address is null .
Next time ,while finding seeker .
g_ascii_strcasecmp is called with NULL remote address,
causing it to assert.
[Causes & Measure] Removed remote address setting
to NULL and guarded code in case of NULL being
passed to strcmp.
[Checking Method] UT
Change-Id: I2f3702d4067c88fb1c36307642dd4dd1d0e40dbc
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
Pyun DoHyun [Tue, 12 Sep 2017 10:34:22 +0000 (10:34 +0000)]
Merge "SVACE Fixes" into tizen
Anupam Roy [Mon, 11 Sep 2017 12:38:20 +0000 (18:08 +0530)]
SVACE Fixes
ID's: 252909, 258247, 258248, 258249
Change-Id: I2047d86323c95d58610a71446b727f8375d0147b
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Seungyoun Ju [Thu, 7 Sep 2017 11:28:33 +0000 (20:28 +0900)]
Fix : GATT client services are not updated
If GATT client handle is created during service discovery, some services
could not be imported. But there is no logic to refresh services once
discovery is done. This patch set a flag of services_discovered to false
if importing one of services is failed. So that, when service discovery
is done, it imports again services.
Change-Id: I366c09ed208e11b47423b034d01e288e09c1c0a7
Signed-off-by: Seungyoun Ju <sy39.ju@samsung.com>
Seungyoun Ju [Wed, 29 Mar 2017 10:29:19 +0000 (19:29 +0900)]
Fix memory corruption
Already freed memory is accessed and is tried to free again.
It causes memory corruption so that at the next time glib memory use,
crash happens.
[Valgrind]
==918== Invalid free() / delete / delete[] / realloc()
==918== at 0x483403C: free (vg_replace_malloc.c:469)
==918== by 0x4D03467: g_free (gmem.c:252)
==918== by 0x4D10BBB: g_slice_free_chain_with_offset (gslice.c:1206)
==918== by 0x49A1C79: _bt_gatt_client_update_services (bluetooth-gatt.c:199)
==918== by 0x498D691: __bt_event_proxy (bluetooth-common.c:1783)
==918== by 0x68E0959: _bt_common_event_cb (bt-common.c:139)
==918== by 0x6901B6D: __bt_device_event_filter (bt-event-handler.c:708)
==918== by 0x48F9661: emit_signal_instance_in_idle_cb (gdbusconnection.c:3665)
==918== by 0x4CFDFCD: g_idle_dispatch (gmain.c:4657)
==918== by 0x4CFF7A7: g_main_context_dispatch (gmain.c:2539)
==918== by 0x4C1FCA5: _ecore_glib_select (ecore_glib.c:171)
==918== by 0x4C1AB4D: _ecore_main_select (ecore_main.c:1466)
==918== by 0x4C1B5A5: _ecore_main_loop_iterate_internal (ecore_main.c:1894)
==918== by 0x4C1B877: ecore_main_loop_begin (ecore_main.c:956)
==918== by 0x10CA95: main (main.c:117)
==918== Address 0x95f72b0 is 0 bytes inside a block of size 8 free'd
==918== at 0x483403C: free (vg_replace_malloc.c:469)
==918== by 0x4D03467: g_free (gmem.c:252)
==918== by 0x4D1115B: g_slist_remove (gslist.c:425)
==918== by 0x49A02D1: bt_gatt_service_destroy (bluetooth-gatt.c:937)
==918== by 0x4D113E7: g_slist_foreach (gslist.c:840)
==918== by 0x4D113F9: g_slist_free_full (gslist.c:177)
==918== by 0x49A1C79: _bt_gatt_client_update_services (bluetooth-gatt.c:199)
==918== by 0x498D691: __bt_event_proxy (bluetooth-common.c:1783)
==918== by 0x68E0959: _bt_common_event_cb (bt-common.c:139)
==918== by 0x6901B6D: __bt_device_event_filter (bt-event-handler.c:708)
==918== by 0x48F9661: emit_signal_instance_in_idle_cb (gdbusconnection.c:3665)
==918== by 0x4CFDFCD: g_idle_dispatch (gmain.c:4657)
==918== by 0x4CFF7A7: g_main_context_dispatch (gmain.c:2539)
==918== by 0x4C1FCA5: _ecore_glib_select (ecore_glib.c:171)
==918== by 0x4C1AB4D: _ecore_main_select (ecore_main.c:1466)
==918== by 0x4C1B5A5: _ecore_main_loop_iterate_internal (ecore_main.c:1894)
==918== by 0x4C1B877: ecore_main_loop_begin (ecore_main.c:956)
==918== by 0x10CA95: main (main.c:117)
Change-Id: Ie89cdf0f23a86f128c56254aea3e707cb84e4351
Signed-off-by: Seungyoun Ju <sy39.ju@samsung.com>
DoHyun Pyun [Tue, 12 Sep 2017 05:34:15 +0000 (14:34 +0900)]
Fix tizen coding style errors and warnings
Change-Id: Ia82b0ab5149a020ea9880c6e77212c96bffcb8ce
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Wed, 6 Sep 2017 23:10:46 +0000 (08:10 +0900)]
Apply tizen 3.0 based product patchsets
--------------------------------------------------
commit
b1f1e05c0d97e98479b60a435eabb3419d23387d
Author: Deokhyun Kim <dukan.kim@samsung.com>
Date: Wed Aug 30 14:33:26 2017 +0900
Change API name from bt_device_get_ida() to bt_device_get_id_address()
---------------------------------------------------
Change-Id: I56eff14e0a9afc6fbac6e3d8b914d2846be99ad0
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Fri, 18 Aug 2017 00:21:04 +0000 (09:21 +0900)]
Fix the build error
Change-Id: I9751b8ddd483963b9b4a2c03fe2665c2b45821f8
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
injun.yang [Wed, 16 Aug 2017 06:44:59 +0000 (15:44 +0900)]
Fix parameter order
Change-Id: I4e2fcd72606c00322c25f6a8a614a823b98754ef
Signed-off-by: injun.yang <injun.yang@samsung.com>
injun.yang [Wed, 16 Aug 2017 05:19:16 +0000 (14:19 +0900)]
Debug message cleanup
Change-Id: I96efd109ee0bfe45da05f86ec77fdb35d92dd167
Signed-off-by: injun.yang <injun.yang@samsung.com>
h.sandeep [Tue, 8 Aug 2017 06:31:06 +0000 (12:01 +0530)]
Apply Tizen3.0 Gatt client product patch
===============================================
commit
4a721c92d78ddb62650f596a4af26637db60a36e
Author: Seungyoun Ju <sy39.ju@samsung.com>
Date: Wed Apr 26 18:03:40 2017 +0900
Fix : Simultaneous GATT client requests are failed
===============================================
Change-Id: Ifc3012d97c68c8bdcc14a7b1a1ab1cb4441253b6
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
DoHyun Pyun [Mon, 7 Aug 2017 04:55:42 +0000 (13:55 +0900)]
Apply tizen 3.0 based product patchsets
-------------------------------------------------
commit
4479eac5ecd1d64e09b39d8451522da9f9b335cd
Author: Deokhyun Kim <dukan.kim@samsung.com>
Date: Fri Jul 14 18:59:19 2017 +0900
Fix parameter order
-------------------------------------------------
Change-Id: If6142828b69022b36df961920c6163cc55c89b1a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Gowtham Anandha Babu [Wed, 2 Aug 2017 12:07:45 +0000 (17:37 +0530)]
[OTP] Add support for service changed indication
Change-Id: I2a0fe7d3e26904f4d11dbe6a5dc5af0b9a81d199
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
Gowtham Anandha Babu [Tue, 1 Aug 2017 07:24:40 +0000 (12:54 +0530)]
[OTP] Add Object Changed Characteristics implementation
Refactor OTP Client code.
Change-Id: Iabdd5a4bee810a936b74f582404a3d1ce56c7faf
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
Gowtham Anandha Babu [Wed, 26 Jul 2017 07:06:30 +0000 (12:36 +0530)]
[GATT] Fix ATT application ecode
1) Add error codes defined in Common Profile and
Service Error Code descriptions (see Supplement to the
Bluetooth Core Specification, sections 1.2 and 2).
2) Seperate out OTP specific application ecode.
Change-Id: I63113596ee74f86b6dc721048a193f5296b4f0fb
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
Gowtham Anandha Babu [Tue, 25 Jul 2017 14:59:59 +0000 (20:29 +0530)]
[GATT Server] Delivery the specific error code to central device
[Problem] Unalbe to pass application error code to central device
[Cause & Measure] Pass the specific error code to central device
[Checking Method] Reponse with the specific error to central device
Change-Id: I169fa6456ad3421029868209c1df7850a2e5104f
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
Atul Rai [Fri, 21 Jul 2017 10:31:59 +0000 (16:01 +0530)]
Fix static analysis tool warnings
Change-Id: I35071e0f9564961610f5a4e924ab5ae8336ce20f
Signed-off-by: Atul Rai <a.rai@samsung.com>
Gowtham Anandha Babu [Tue, 18 Jul 2017 13:35:50 +0000 (19:05 +0530)]
[GATT Client] Delivery ATT error code to higher layer
[Problem] ATT error code is not passed to application.
[Cause & Measure] GATT application need to know ATT
error code to handling error case. Specially application
error code defined by a higher layer specification.
[Checking Method] GATT error handling
Change-Id: Ic7c8f14f107dd65bae925c2e424b3bd71e04f8b8
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
DoHyun Pyun [Thu, 13 Jul 2017 04:51:31 +0000 (13:51 +0900)]
Fix the routine checking a parameter 'buttons'.
The value of 'buttons' can be 0(BUTTON_NONE) and combined each other.
Change-Id: Ia9ccecb83a9b375c62fd8daa9047fef3c6d1aeda
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Pyun DoHyun [Thu, 29 Jun 2017 23:07:51 +0000 (23:07 +0000)]
Merge "[OTP] Fix PTS fail cases" into tizen
Gowtham Anandha Babu [Thu, 29 Jun 2017 09:59:04 +0000 (15:29 +0530)]
[OTP] Fix PTS fail cases
Change-Id: I823eac40ecadc62a1b5f4a8aeaaa76d1457fa091
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
Pyun DoHyun [Wed, 28 Jun 2017 00:07:00 +0000 (00:07 +0000)]
Merge "Add the SetAbsoluteVolume internal API for AVRCP controller" into tizen
Hyuk Lee [Tue, 27 Jun 2017 05:09:50 +0000 (14:09 +0900)]
Add the SetAbsoluteVolume internal API for AVRCP controller
Change-Id: Ie4362694983e5e8d93f3652bcbd68964519ac0f7
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
Gowtham Anandha Babu [Fri, 23 Jun 2017 09:26:15 +0000 (14:56 +0530)]
[OTP] Expose Object Delete API
Change-Id: I9bdc093e89b15299258233ba47df9bc5baf547df
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
Gowtham Anandha Babu [Tue, 20 Jun 2017 10:13:50 +0000 (15:43 +0530)]
[OTP] Expose Object Execute API
Change-Id: If7ebdbad5a59d3b7ce7310c5ecb178f20791298f
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
Pyun DoHyun [Tue, 20 Jun 2017 07:13:16 +0000 (07:13 +0000)]
Merge "[OTP] Expose Object Write API" into tizen
Gowtham Anandha Babu [Mon, 19 Jun 2017 13:30:09 +0000 (19:00 +0530)]
[OTP] Expose Object Write API
Change-Id: Ife975cdd71cd6021ed4cfa450c21891b10d6b321
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
Syam Sidhardhan [Thu, 15 Jun 2017 15:13:25 +0000 (20:43 +0530)]
Fix unwanted check logic before g_free()
g_free() internally validate the pointer
Change-Id: I7eb07198c65e79dfb9282445fd8625651fc120fc
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Syam Sidhardhan [Thu, 15 Jun 2017 15:07:34 +0000 (20:37 +0530)]
src: Fix invalid return check for g_malloc
if params are correct, g_malloc*() will always return
a valid pointer, otherwise it will assert.
Change-Id: Ia2140202e8bce62a527af2fa8596d0e3e4e42c9b
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Syam Sidhardhan [Thu, 15 Jun 2017 14:27:19 +0000 (19:57 +0530)]
gatt: proximity: Fix mismatching allocation and deallocation
As per the glib documentation, the memory allocated using the glib
api's needs to be freed using corresponding glib free api's and not
libc api's, otherwise undefined behaviour can happen. This is because
the libc allocation and glib allocation uses different memory pools.
Similarly for libc api's.
Change-Id: I502ca5f143417c2ce4acf12e47b317d5339a48c1
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Syam Sidhardhan [Thu, 15 Jun 2017 14:22:34 +0000 (19:52 +0530)]
common: Fix memory leak
We have to free the allocated memory.
Change-Id: I040d3e0d57fa7967a5e4e3f456ec936b9f1f2ba2
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Gowtham Anandha Babu [Tue, 13 Jun 2017 10:33:28 +0000 (16:03 +0530)]
[OTP] Expose Object Create API
Change-Id: Ie344d4b176889b1acb99dfea234ece1c5b337621
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
Gowtham Anandha Babu [Wed, 7 Jun 2017 15:04:47 +0000 (20:34 +0530)]
[OTP] Expose Object Select API
Change-Id: I7cb2de1136ddf7f681f2744ac31eed8c947bc4ea
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
Gowtham Anandha Babu [Wed, 7 Jun 2017 06:32:56 +0000 (12:02 +0530)]
[OTP] Fix to track ongoing APIs
Change-Id: Ic5e59a0f12f5f6b0c0ab45eb0ea96bcac7dd9307
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
Gowtham Anandha Babu [Mon, 29 May 2017 13:41:03 +0000 (19:11 +0530)]
[OTP] Fix Object Read logic
Change-Id: Iac4e6ca7593e6127ba100fbf3ae49a80f1ac90f2
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
Pyun DoHyun [Mon, 29 May 2017 03:46:32 +0000 (03:46 +0000)]
Merge "[OTP] Expose APIs for read object contents" into tizen