platform/upstream/bluez.git
3 years agoRemove bluez-devel and libbluetooth rpm 39/238539/1 accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable tizen_3.0 accepted/tizen/3.0/mobile/20200716.214119 accepted/tizen/3.0/tv/20200716.214130 accepted/tizen/3.0/wearable/20200716.214137 submit/tizen_3.0/20200715.054813
DoHyun Pyun [Thu, 25 Jun 2020 01:10:21 +0000 (10:10 +0900)]
Remove bluez-devel and libbluetooth rpm

Bluez testing tools only use libbluetooth.so. So we
don't need to provide it as the developement package.

Change-Id: I47960e8eb3c4bb8137ea4561458714d47ce6302f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoUse the full path to call the chsmack command 62/150062/1
DoHyun Pyun [Thu, 14 Sep 2017 07:03:14 +0000 (16:03 +0900)]
Use the full path to call the chsmack command

Change-Id: I1b668b85b9b47b9ce3348f921abb86a315f1a8c9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agosdp: Fix Out-of-bounds heap read in service_search_attr_req function 84/149984/1
Luiz Augusto von Dentz [Wed, 13 Sep 2017 07:01:40 +0000 (10:01 +0300)]
sdp: Fix Out-of-bounds heap read in service_search_attr_req function

Check if there is enough data to continue otherwise return an error.
(CVE-2017-1000250)

Change-Id: Iedcc39a0706b0052aeb167c77f2da2b5597f91ce
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoMerge "Use Trusted Profiles instead of Restricted Profiles" into tizen_3.0
Pyun DoHyun [Mon, 14 Aug 2017 00:06:17 +0000 (00:06 +0000)]
Merge "Use Trusted Profiles instead of Restricted Profiles" into tizen_3.0

6 years agoMerge "Fix PBAP Connection fails if HFP is restricted" into tizen_3.0
Pyun DoHyun [Mon, 14 Aug 2017 00:04:49 +0000 (00:04 +0000)]
Merge "Fix PBAP Connection fails if HFP is restricted" into tizen_3.0

6 years agoMerge "Disconnect PBAP when Phone log access is disabled" into tizen_3.0
Pyun DoHyun [Mon, 14 Aug 2017 00:04:38 +0000 (00:04 +0000)]
Merge "Disconnect PBAP when Phone log access is disabled" into tizen_3.0

6 years agoUse Trusted Profiles instead of Restricted Profiles 09/143609/3
Biman Paul [Fri, 4 Aug 2017 14:29:40 +0000 (19:59 +0530)]
Use Trusted Profiles instead of Restricted Profiles

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

Change-Id: I0200611a54745f4fc701e7d5e4ace4e1d31b898c
Signed-off-by: Biman Paul <biman.paul@samsung.com>
6 years agoFix PBAP Connection fails if HFP is restricted 08/143608/1
Anurag Biradar [Thu, 3 Aug 2017 05:49:26 +0000 (11:19 +0530)]
Fix PBAP Connection fails if HFP is restricted

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

[Issue#] NA
[Request] Monitoring Test
[Occurrence Version] QG1

[Problem] If HFP Flag is restricted, further PBAP connection will get rejected
[Cause & Measure] On Incoming connection we are directly checking if HFP is
restricted or not without even considering incoming connection can be for
different profile.
Measure: Before rejecting the connection check for uuid is this connection
request is for HFP

[Checking Method] Connect to Meacapp(HFP and A2DP) -> From Profile View
Disconnect both connection -> Send PBAP connection request -> Check if
connection is possible or not.

[Team] Bluetooth
[Developer] Anurag B
[Solution company] Samsung
[Change Type] N/A

Change-Id: I9cd4067eeb5c55e563c6bdc4cf6595b0ec46d829

6 years agoDisconnect PBAP when Phone log access is disabled 05/143605/1
Anurag Biradar [Wed, 26 Jul 2017 11:34:31 +0000 (17:04 +0530)]
Disconnect PBAP when Phone log access is disabled

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

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

[Problem] Remote device is able to get contact when phone log access is
disabled
[Cause & Measure] If pbap connection is already established and phonelog
access is disabled remote device can still get phone logs and contact details
Measure: When a Profile is blocked and if profile is connected we need to
disconnect the profile.
[Checking Method]connect Pbap (using mecapp) -> Goto Profile View (on DUT) ->
disable Phone log access -> Check if remote is disconnected or not.

[Team]Basic connection
[Developer] Anurag B
[Solution company] Samsung
[Change Type]N/A

Change-Id: Icf513cea5384c5fac88ddb0e3cab82a9c910e103

6 years agoEnhance keyboard functionality as HID device. 23/143523/1
Deokhyun Kim [Thu, 10 Aug 2017 08:23:55 +0000 (17:23 +0900)]
Enhance keyboard functionality as HID device.

 - Add Consumer(Power control, Track control, Volume control)
 - Add LEDs as output type

* An added page of report descriptor

USAGE_PAGE (Generic Desktop) 05 01
USAGE (Keyboard) 09 06
COLLECTION (Application) A1 01
  REPORT_ID (4) 85 04
  COLLECTION (Physical) A1 00
    USAGE_PAGE (Consumer Devices) 05 0C
    LOGICAL_MINIMUM (0) 15 00
    LOGICAL_MAXIMUM (1) 25 01
    REPORT_SIZE (1) 75 01
    REPORT_COUNT (13) 95 0D
    USAGE (Power) 09 30
    USAGE (Reset) 09 31
    USAGE (Sleep) 09 32
    USAGE (Play) 09 B0
    USAGE (Pause) 09 B1
    USAGE (Fast Forward) 09 B3
    USAGE (Rewind) 09 B4
    USAGE (Scan Next Track) 09 B5
    USAGE (Scan Previous Track) 09 B6
    USAGE (Stop) 09 B7
    USAGE (Mute) 09 E2
    USAGE (Volume Up) 09 E9
    USAGE (Volume Down) 09 EA
    INPUT (Data,Var,Abs) 81 02
    REPORT_SIZE (2) 75 02
    REPORT_COUNT (1) 95 01
    INPUT (Cnst,Var,Abs) 81 03
    REPORT_SIZE (1) 75 01
    REPORT_COUNT (5) 95 05
    USAGE_PAGE (LEDs) 05 08
    USAGE_MINIMUM (1) 19 01
    USAGE_MAXIMUM (5) 29 05
    OUTPUT (Data,Var,Abs) 91 02
    REPORT_SIZE (3) 75 03
    REPORT_COUNT (1) 95 01
    OUTPUT (Cnst,Var,Abs) 91 03
  END_COLLECTION C0
END_COLLECTION C0

Change-Id: I67ff04a7f1702171388e405191d2bafe4b5ec2b8
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoFix: Failed to connect to bnep profile 94/141794/1
Anurag Biradar [Mon, 10 Apr 2017 14:21:01 +0000 (19:51 +0530)]
Fix: Failed to connect to bnep profile

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

[Issue#] P170410-04879, P170411-03752
[Request] PLM
[Occurrence Version] QD3

[Problem] Failed to connect to bnep profile
[Cause & Measure] Cause: Session is not getting freed in error
case and because of which ACL is not disconnected. So, further connection
are getting failed even though tethering is enabled in remote device.
Measure: Free session in case of error.

[Checking Method] Steps
1) pair android device and DUT
2) Tap on paired device in BT menu of DUT
3) Observe toast "unable to connect, turn on BT tethering in [device_name]"
4) Turn on BT tethering in android device
5) Tap on paired android device again in BT menu of DUT
6) Observe same toast again

[Solution company] Samsung
[Change Type] Code Change

Change-Id: I73f5161411d157a19f5850e141865574fbdd88ab

6 years ago[HID Device] Fix connection refused with PTS 90/141790/1
Anurag Biradar [Thu, 6 Jul 2017 06:26:46 +0000 (11:56 +0530)]
[HID Device] Fix connection refused with PTS

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

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

[Problem] Bluez is refusing hid device role connection from PTS
[Cause & Measure] HID Host supporting device need not register itself in SDP.
While testing with PTS, it will not register any service in SDP record and
bluez will be able to probe for hid device service for that device because
of which connection is refused by bluez.
Measure: When hid device service is not found than forcefully probe hid device
role this will make sure of hid device service for remote device. And it can
procede with further connection
[Checking Method] Activate HID Device role -> execute test case
"HID/DEV/HCE/BV-01-I" in PTS.

[Team] Bluetooth
[Developer] Anurag B
[Solution company] Samsung
[Change Type] Code Change

Change-Id: I1d51816d74b57fb06b8c876a4139bbb06196bce3

6 years agoReturn error response for 'LEReadMaximumDataLength' method 44/140044/1 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen/3.0/common/20170803.140334 accepted/tizen/3.0/ivi/20170803.010922 accepted/tizen/3.0/mobile/20170803.010846 accepted/tizen/3.0/tv/20170803.010858 accepted/tizen/3.0/wearable/20170803.010911 submit/tizen_3.0/20170801.063915
Sangki Park [Mon, 13 Mar 2017 09:29:55 +0000 (18:29 +0900)]
Return error response for 'LEReadMaximumDataLength' method

When BT-FRWK calls this method and error happend
in bluez internally, bluez does not reply resulting
in BT-FRWK blocked till default dbus timeout

Change-Id: Ia1bb5596f3e176a90c3a809abb858fd593719141

6 years agoKeep tizen specific code under flag 57/139557/2
Nagaraj D R [Wed, 19 Jul 2017 09:15:07 +0000 (14:45 +0530)]
Keep tizen specific code under flag

Tizen specific code should be under
tizen flag for easy porting or bluez upgradation

Change-Id: I75ed1f914ee9a359134ac7630a6dcc9dc659adde

6 years agoFix critical issues of SVACE 45/139545/2
Deokhyun Kim [Thu, 2 Feb 2017 09:38:12 +0000 (15:08 +0530)]
Fix critical issues of SVACE

Fixes for critical issues which are reported from SVACE

Change-Id: Ib5ccc552af3e494b3fc35dfdf5ce89b80345af29

6 years agoMerge "Fix attributes for HID Device." into tizen_3.0
Pyun DoHyun [Wed, 19 Jul 2017 07:49:28 +0000 (07:49 +0000)]
Merge "Fix attributes for HID Device." into tizen_3.0

6 years agoMerge "Add service_fw user to allow dbus access." into tizen_3.0
Pyun DoHyun [Wed, 19 Jul 2017 07:49:09 +0000 (07:49 +0000)]
Merge "Add service_fw user to allow dbus access." into tizen_3.0

6 years agoFix attributes for HID Device. 14/139514/1
Deokhyun Kim [Wed, 19 Jul 2017 07:44:10 +0000 (16:44 +0900)]
Fix attributes for HID Device.

Change-Id: I3916c462aaffd1f376a3144831f215393102afc9
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoFix wrong API usage in HID-Device 12/139512/1
Nagaraj D R [Wed, 19 Jul 2017 07:40:39 +0000 (13:10 +0530)]
Fix wrong API usage in HID-Device

Wrongly "find_device()" is used to find the device
connected with HID-Device role.

Replaced "find_device()" with "find_device_role" api call

Change-Id: If6bed298b351e17c0973087d09f0d18726f04308

6 years agoAdd service_fw user to allow dbus access. 13/139513/1
Deokhyun Kim [Wed, 19 Jul 2017 07:41:34 +0000 (16:41 +0900)]
Add service_fw user to allow dbus access.

Change-Id: Ifb09205d25f150b880e9b2374daed83e3353454c
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
6 years agoUnpair failed due to AVRCP connection 64/139364/2
Sreeraj Mohan Kottapuzhackal [Thu, 16 Feb 2017 11:25:51 +0000 (16:55 +0530)]
Unpair failed due to AVRCP connection

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

[Issue#] P170216-05153
[Request] PLM
[Occurrence Version] All

[Problem] User couldn't unpair the device
[Cause & Measure] Cause: AVRCP connection is triggered during unpair and
the device is marked as not temporary
                  Measure: Do not initiate AVRCP connection if device is
marked temporary
[Checking Method] Unit testing

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

Change-Id: I27f344c5fd0bef434ea614836d7fd0be3b1971df

6 years agoDisable handling browsing PDU in AVRCP 63/139363/2
Sreeraj Mohan Kottapuzhackal [Wed, 15 Feb 2017 09:02:57 +0000 (14:32 +0530)]
Disable handling browsing PDU in AVRCP

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

[Issue#] P170214-06960
[Request] PLM
[Occurrence Version] All

[Problem] Code panic while handling AVRCP browsing PDU
[Cause & Measure] Cause: Tizen doesn't support AVRCP browsing channel
which is a part of AVRCP 1.4 and higher versions. AVRCP browsing channel is not supported by open source bluez as well, but partially implemented. This is causing a panic as not all the commands are handled properly.
                  Measure: Disabled creating GIO channel for browsing PSM as we need not listen for browsing commands
[Checking Method] Unit testing

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

Change-Id: I054bcab73fc4f4a9d69bc81f30c35d537dc16081

6 years agoFix build error 05/137405/1 accepted/tizen/3.0/common/20170719.081603 accepted/tizen/3.0/ivi/20170719.003641 accepted/tizen/3.0/mobile/20170719.003607 accepted/tizen/3.0/tv/20170719.003616 accepted/tizen/3.0/wearable/20170719.003629 submit/tizen_3.0/20170716.235230
Seungyoun Ju [Wed, 5 Jul 2017 13:31:48 +0000 (22:31 +0900)]
Fix build error

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

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

[Problem] If BT chip is not broadcom nor spreadtrum, build error
 happens.
[Cause & Measure] dst variable was in chipset feature define. But it was
used for all chipset. This patch place dst out of chipset feature.
[Checking Method] Build for SM-V201 model which uses qualcomm chipset

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

Change-Id: Icb4bb6700d0a3d1c72e68586daecfd25488d1ae8

6 years agohcidump: fix crash for LE meta event 52/136652/2
Chan-yeol Park [Thu, 12 Mar 2015 07:39:52 +0000 (16:39 +0900)]
hcidump: fix crash for LE meta event

[Problem] hcidump crash happens
[Cause & Measure] There is undefined BLE meta event. It causes crash issue.
 This patch adds BLE meta events.
[Checking Method] hcidump -r log.cfa

Change-Id: I2a25bfb2550a946ad0e67e7fd1dad06426c9abe5

6 years agoFix: btd_adapter_set_streaming_mode() was not in Tizen feature 51/136651/2
Seungyoun Ju [Fri, 30 Jun 2017 13:12:30 +0000 (22:12 +0900)]
Fix: btd_adapter_set_streaming_mode() was not in Tizen feature

[Problem] btd_adapter_set_streaming_mode() was not in
 TIZEN_FEATURE_BLUEZ_MODIFY define.
[Cause & Measure] This patch places it in TIZEN_FEATURE_BLUEZ_MODIFY
 define

Change-Id: I79c71ccb2debd7a7ddaa8628e1d72157462ad30f

6 years agogatt-client : Simplify service / characteristic discovery 00/136500/1
Seungyoun Ju [Mon, 5 Jun 2017 02:33:39 +0000 (11:33 +0900)]
gatt-client : Simplify service / characteristic discovery

[Problem] N/A
[Cause & Measure] Simplify service / characteristic discovery
[Checking Method] Make GATT connection

. When remote device has 41 attributes
  - Before patch : 5.431658167 secs
  - After patch : 3.921924167 secs

. Below upstream commits are imported by this patch.

commit a39cd38a3db73b1d2d78370b7c678ac47f560c13
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date:   Tue May 9 12:59:16 2017 +0300
    shared/gatt-client: Simplify characteristics discovery

commit 82c7e0365702e343d6dad0baa23bdff59be27b0c
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date:   Tue May 9 12:47:40 2017 +0300
    shared/gatt-db: Add gatt_db_insert_descriptor

commit 87abac457f4e2037c2cd6e4f30384e2ab4fa662b
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date:   Mon May 8 20:18:25 2017 +0300
    shared/gatt-db: Add gatt_db_insert_characteristic

commit f78146f96fb254e43d3d003ddcdf97983cf764f1
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date:   Mon May 8 16:52:05 2017 +0300
    shared/gatt-client: Simplify included discovery

commit 0c9f030b1b3c8cf96feb9f702c5b925a1dc9ea69
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date:   Mon May 8 16:00:46 2017 +0300
    shared/gatt-db: Add gatt_db_insert_included

commit 7aaa6c893aa89a61d20460e1ab89ac419435c3a1
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date:   Mon May 8 15:48:02 2017 +0300
    shared/gatt-client: Insert included attribute with handle

commit 108336ee3e68f3e71b2229aee83a7d03e0cde618
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date:   Mon May 8 15:33:26 2017 +0300
    shared/gatt-db: Add gatt_db_service_insert_included

commit ba07a8bfc07a744081b3d7df51803cad9062aa8c
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date:   Mon May 8 13:46:30 2017 +0300
    shared/gatt-db: Add gatt_db_get_service

Change-Id: I1bd68ff4a498ae3da56225533df31ec18221ffde

6 years agoavdtp : Use kernel streaming mode 99/136499/1
Seungyoun Ju [Thu, 4 May 2017 10:21:10 +0000 (19:21 +0900)]
avdtp : Use kernel streaming mode

[Problem] If BT controller's buffer is occupied by another profile
 such as OPP or SPP, and it is blocked due to RF condition,
 A2DP packets for another device couldn't be sent properly.
 It causes the A2DP chopping issue because it does not have
 available buffer though RF is available.

[Cause & Measure] HCI buffer is limited but another tx requests occupy it.
 It causes audio sreaming packet delay.
 Because of this issue, streaming mode has been implemented in Kernel.
 This patch uses that feature as per avdtp state.

[Checking Method] Connect Bluetooth headset to DUT -> Play Music on DUT ->
 Install watchface on DUT or send some files from DUT to other remote device ->
 Observe BT audio quality

Change-Id: Ia00fa75b2ab6bd90f0373ad1605cabf5a5aa305e

6 years agoFix the svace issue 11/135411/1
Injun Yang [Tue, 20 Jun 2017 01:44:04 +0000 (10:44 +0900)]
Fix the svace issue

Change-Id: I144d9f054ec097e17a089d70c34aca4d7e358c1f

7 years agoAfter unref, initialize the variable 91/128591/1
Injun Yang [Wed, 10 May 2017 11:34:52 +0000 (20:34 +0900)]
After unref, initialize the variable

Change-Id: I2075c74ca694b5e775b8dcfd664548079cde54d3

7 years agogatt-server : Check the validation of app before sending notification 39/126439/1
Injun Yang [Thu, 20 Apr 2017 06:32:18 +0000 (15:32 +0900)]
gatt-server : Check the validation of app before sending notification

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

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

[Problem] bluez got crash
[Cause & Measure] If gatt server app is terminated abnormally
 while sending notification, bluetoothd access to invalid proxy of chrc.
 So we need to check the object path of notification characteristic
 path : /com/4260/service1/characteristic2
[Checking Method] GATT notification

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

Change-Id: I85f0643d8e033935308ed5ae1ef93274f95385d7

7 years agogatt-client : Notify service added event after chrcs. ready 09/126009/1
Seungyoun Ju [Wed, 19 Apr 2017 07:27:31 +0000 (16:27 +0900)]
gatt-client : Notify service added event after chrcs. ready

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

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

[Problem] Sometimes application couldn't get characteristic when it
 receives service added event and tries to get characteristic.
[Cause & Measure] chrcs_ready is set after extended properties
 descriptor is discovered. But service added event is sent before. This
 patch sends service added event after chrcs_ready is set.
[Checking Method] Get characteristic when GattServiceAdded signal is
 received.

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

Change-Id: If42135fa637a17c98bb3b3b1d7042375ad55f455

7 years agoFix : Wrong service is disconnected 81/125381/1
Seungyoun Ju [Tue, 11 Apr 2017 09:26:15 +0000 (18:26 +0900)]
Fix : Wrong service is disconnected

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

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

[Problem] If there are external profiles which have same UUID but
 different role and both are connected, DisconnectProfile method call
 couldn't be operated properly. Because it always selects the first
 service using the UUID.
[Cause & Measure] DisconnectProfile method call always selects the first
 service using the UUID. So new method call is added to select the
 service using the object path.
 Based on the parameter, proper service could be selected and it handles
 disconnection.
[Checking Method] Make client / server RFCOMM connections using same
 UUID at the same time -> Disconnect server connection

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

Change-Id: I66ad3c6f5d7b9d4d6c5e3a8c1dec8f4a663b53c5

7 years agoInstall the license file into the target 45/121045/1
DoHyun Pyun [Mon, 27 Mar 2017 06:00:28 +0000 (15:00 +0900)]
Install the license file into the target

Change-Id: I28acecc94b0c16a310a6274cc9f4fb714d2fc8e1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix the svace issue (184088) 72/119672/1 submit/tizen_3.0/20170320.014016
DoHyun Pyun [Mon, 20 Mar 2017 01:34:47 +0000 (10:34 +0900)]
Fix the svace issue (184088)

Change-Id: I43008203c23fc5e29f5cad64ddf3dcf328b68afa
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoDisable the Proximity plugin 81/119481/1 accepted/tizen/3.0/common/20170317.100632 accepted/tizen/3.0/ivi/20170317.090754 accepted/tizen/3.0/mobile/20170317.090720 accepted/tizen/3.0/tv/20170317.090736 accepted/tizen/3.0/wearable/20170317.090745 submit/tizen_3.0/20170317.061343
Lee Hyuk [Fri, 17 Mar 2017 06:05:01 +0000 (15:05 +0900)]
Disable the Proximity plugin

Change-Id: Ib9da6a989753ae44165d964cd321f5e57fd4840e
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
7 years agoFix SVACE issue 47/119347/1
Seungyoun Ju [Thu, 16 Mar 2017 11:02:07 +0000 (20:02 +0900)]
Fix SVACE issue

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

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

[Problem] There was fall through issue in switch-case statement.
 It is reported by SVACE as critical issue.
[Cause & Measure] Add break in proper place.
[Checking Method] btsnoop -s xxx.log

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

Change-Id: I764061a36e9a398de85c65b02ac56bb71aa32144

7 years agoSupport old storage format 40/118340/1
Seungyoun Ju [Tue, 13 Sep 2016 13:00:59 +0000 (22:00 +0900)]
Support old storage format

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

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

[Problem] Old storage has BR/EDR/LE information in one RPA directory. So
 dbus object path is made as RPA. If we pass IDA when upper layer
 requests, it cannot be used because there is no matched dbus object
 path.
[Cause & Measure] Current storage policy separates BR/EDR and LE
 information to each addresses. So both dbus object paths are created. So
 in this case, IDA should be passed to upper layer. But in case of old
 version's paired device, RPA should be passed to upper layer.
[Checking Method] The device which has old storage (e.g. R730 VP1) makes
 pairing with iOS -> FOTA to new storage (e.g. VP2)

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

Change-Id: I0284e6fbdf1e56e1740e7bb6b2ad4abbdb91789a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoApply rotated file writing to hcidump 39/118339/1
Seungyoun Ju [Wed, 8 Mar 2017 08:09:12 +0000 (17:09 +0900)]
Apply rotated file writing to hcidump

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

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

[Problem] Change was missing. Without this option, hci logging file
could be increased infinitely.
[Cause & Measure] Apply change
[Checking Method] hcidump -c 2 -s 10 -w hci_log.cfa

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

Change-Id: Ia564ef4b3b6527274f0ad836fcd8a2c7028b5d2e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix btsnoop crash when handling btmon 38/118338/1
Seungyoun Ju [Wed, 8 Mar 2017 07:28:52 +0000 (16:28 +0900)]
Fix btsnoop crash when handling btmon

[Model] Solis
[BinType] AP
[Customer] OPEN

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

[Problem] btsnoop is crashed since new kernel is introduced because it
 brings new opcode.
[Cause & Measure] it should be skipped properly to make compatible btnsoop.
[Checking Method] Build and verification on target

[Team] System Connectivity
[Developer] Chanyeol Park
[Solution company] Samsung
[Change Type] Specification change

Change-Id: I5b1e70a2f0acdc86d888d370ea8de0afd57e420a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoIgnore probe_service even if the service is already added. 88/118188/1
Deokhyun Kim [Thu, 9 Mar 2017 06:27:13 +0000 (15:27 +0900)]
Ignore probe_service even if the service is already added.
   Cause : Issue happened when,
      0. Gear doesn't have pairing information about remote device.
      1. Remote device initiates HFP connection to Gear
      2. Paired
      3. Gear's Reverse service discovery timer (1s) is expired before HFP connection request comes.
         So device_browse_sdp() is called and service resolving is almost done.
      4. HFP connection request comes. So HFP service has been probed here
      5. SDP is done. Because there is HFP in profiles_added, HFP service probe happens once more.
      This causes the issue.
      Normally, duplication checking is done in update_record() by SDP logic.
      But In the issue case, SDP happens first and there is no logic to check duplication in incoming connection case
      (ext_confirm -> create_conn -> btd_device_add_uuid).
   Measure : Ignore probe_service even if the service is already added.

Change-Id: I68fbbe3bf510c1e7668cf12f0477cc4385ea710c
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
7 years agoModify the comparing statement for storing local irk 20/116120/1
DoHyun Pyun [Thu, 23 Feb 2017 04:29:20 +0000 (13:29 +0900)]
Modify the comparing statement for storing local irk

store_local_irk function's return type is bool. It can't return the
negative value. So the error logic will not work.

Change-Id: Id49650ddb2e718fc9054963c8eac5ec785e35ad9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoKeep local IRK in permanent storage 32/115532/1 accepted/tizen/3.0/common/20170221.125520 accepted/tizen/3.0/ivi/20170221.050915 accepted/tizen/3.0/mobile/20170221.050807 accepted/tizen/3.0/tv/20170221.050830 accepted/tizen/3.0/wearable/20170221.050851 submit/tizen_3.0/20170220.233212
Seungyoun Ju [Fri, 10 Feb 2017 08:42:11 +0000 (17:42 +0900)]
Keep local IRK in permanent storage

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

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

[Problem] When local IRK is changed, iOS rejects re-pairing request (iOS issue).
 This issue happens in below scenario.
 1. Pair with iOS
 2. Factory-reset DUT
 3. Try to pair with iOS again without unpairing on iOS
 4. iOS sends SMP pairing error with "Unspecified reason". So until user
   unpairs DUT on iOS, re-pairing is not possible.

 And when local IRK is not distributed at BLE pairing with some android
 devices, those devices cannot connect to DUT again via BLE (Android issue).
 1. Pair with Galaxy A5 2016 / Note 4 via BLE
 2. Disconnect
 3. Try to connect again via BLE
 4. A5 2016 / Note 4 try to connect to DUT using 00:00:00:00:00:00
   address. So it is failed.

 To solve these issues, DUT distributes a IRK. And after resetting DUT,
 retain the IRK.
[Cause & Measure] Compatibility issues with other OS's.
[Checking Method]
 ===
 1. Pair with iOS
 2. Factory-reset DUT
 3. Try to pair with iOS again without unpairing on iOS
 4. iOS sends SMP pairing error with "Unspecified reason". So until user
   unpairs DUT on iOS, re-pairing is not possible.
 ===
 1. Pair with Galaxy A5 2016 / Note 4 via BLE
 2. Disconnect
 3. Try to connect again via BLE
 4. A5 2016 / Note 4 try to connect to DUT using 00:00:00:00:00:00
 ===

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

Change-Id: Icf0f2899028f13764dd09aec1b6851a5efa4d00b

7 years agoSet the adv flag as per address type 16/114316/1 accepted/tizen/3.0/common/20170214.180341 accepted/tizen/3.0/ivi/20170213.225236 accepted/tizen/3.0/mobile/20170213.225156 accepted/tizen/3.0/tv/20170213.225214 accepted/tizen/3.0/wearable/20170213.225225 submit/tizen_3.0/20170213.044639
Injun Yang [Mon, 13 Feb 2017 02:51:18 +0000 (11:51 +0900)]
Set the adv flag as per address type

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

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

[Problem] Regardless of address type, set adv flag as BLE only
[Cause & Measure] Set the adv flag as per address type
[Checking Method] Scan adv

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

Change-Id: Iab384435f29dd17a2bd9a3928f7e163d9d3813af
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoUpdate white list properly 15/114315/1
Injun Yang [Fri, 10 Feb 2017 01:44:44 +0000 (10:44 +0900)]
Update white list properly

[Model] SM-R360
[BinType] AP
[Customer] OPEN

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

[Problem] Unable BLE auto connection with remote device
[Cause & Measure] Address type is wrong of white list.
 Set address type properly
[Checking Method] BLE auto connection with remote device

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

Change-Id: I333d492ad17fe1d82829b6b5c3f15b9fbeef0ef6
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoFix the svace issue (WGID: 168473) 22/113622/1
DoHyun Pyun [Wed, 8 Feb 2017 05:10:37 +0000 (14:10 +0900)]
Fix the svace issue (WGID: 168473)

This patchset prevents the memory leak in the gatt operation.

Change-Id: I07e8155603ba487d02be853ead6d1837dcb03983
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix: Crash occured when HID deactived 79/113479/1
Injun Yang [Wed, 8 Feb 2017 01:14:43 +0000 (10:14 +0900)]
Fix: Crash occured when HID deactived

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

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

[Problem] When HID deactived, crash occured
[Cause & Measure] Access the invalid memory
[Checking Method] Check the validation of variable.

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

Change-Id: Ifd88e39c98cccb29f3b4eaad23b1fa53b669da47
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years ago[TDS] Add support for Transport Discovery Service 55/110455/2 tizen_3.0_tv accepted/tizen/3.0/common/20170120.102155 accepted/tizen/3.0/common/20170206.110856 accepted/tizen/3.0/ivi/20170120.072811 accepted/tizen/3.0/ivi/20170206.034433 accepted/tizen/3.0/mobile/20170120.072731 accepted/tizen/3.0/mobile/20170206.034319 accepted/tizen/3.0/tv/20170120.072748 accepted/tizen/3.0/tv/20170206.034359 accepted/tizen/3.0/wearable/20170120.072759 accepted/tizen/3.0/wearable/20170206.034418 submit/tizen_3.0/20170118.073413 submit/tizen_3.0/20170202.043546 submit/tizen_3.0/20170206.000717
Anupam Roy [Fri, 6 Jan 2017 12:36:38 +0000 (18:06 +0530)]
[TDS] Add support for Transport Discovery Service

This patch implements GATT driver for registration of
Transport Discovery Service. It also adds a custom
charatceristic for holding data belonging to custom transport.

Change-Id: I20f7435cd557fcef1b9f9ce82d12f1fef06d6a30
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
7 years agoInvoke MTU changed callback 26/110626/1
Injun Yang [Tue, 17 Jan 2017 08:12:57 +0000 (17:12 +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: Ib9ee0e2c67043cb0384fed59bfc6a2e3e6b467e6
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoAdd HID report descriptor for GamePad. 19/109919/1
Deokhyun Kim [Thu, 12 Jan 2017 07:53:15 +0000 (16:53 +0900)]
Add HID report descriptor for GamePad.

Change-Id: I867bcfbad53d72e866ef459c1eb34120233dae6e
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
7 years agoCode cleanup 62/106762/2 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170105.023945 accepted/tizen/3.0.m2/tv/20170105.024226 accepted/tizen/3.0.m2/wearable/20170105.024528 accepted/tizen/3.0/common/20161227.101720 accepted/tizen/3.0/common/20170120.131000 accepted/tizen/3.0/ivi/20161227.012036 accepted/tizen/3.0/ivi/20170120.113427 accepted/tizen/3.0/mobile/20161227.011949 accepted/tizen/3.0/mobile/20170120.113337 accepted/tizen/3.0/tv/20161227.012004 accepted/tizen/3.0/tv/20170120.113355 accepted/tizen/3.0/wearable/20161227.012021 accepted/tizen/3.0/wearable/20170120.113409 submit/tizen_3.0.m2/20170104.093752 submit/tizen_3.0/20161226.011357 submit/tizen_3.0/20170120.110835
Injun Yang [Fri, 23 Dec 2016 02:12:10 +0000 (11:12 +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: I7d1afbe298e091451e69f4c7528af460c21a3011
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoRevert missed applied codes for obex service 21/104621/1 accepted/tizen/3.0/common/20161215.164532 accepted/tizen/3.0/ivi/20161215.050656 accepted/tizen/3.0/mobile/20161215.050616 accepted/tizen/3.0/tv/20161215.050638 accepted/tizen/3.0/wearable/20161215.050649 submit/tizen_3.0/20161214.020021 submit/tizen_3.0/20161215.001232
DoHyun Pyun [Wed, 14 Dec 2016 01:52:31 +0000 (10:52 +0900)]
Revert missed applied codes for obex service

Change-Id: I33076c5087be2dbc8865cfa9b0297faff436939b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoCorrect the upgrade file name 12/104612/1 submit/tizen_3.0/20161214.011753
DoHyun Pyun [Wed, 14 Dec 2016 01:16:05 +0000 (10:16 +0900)]
Correct the upgrade file name

Change-Id: Ic4396b803680ae610ade42fd25ff66a4f63b448d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoModify the upgrade script name 99/104599/2 submit/tizen_3.0/20161213.232608
DoHyun Pyun [Tue, 13 Dec 2016 23:21:38 +0000 (08:21 +0900)]
Modify the upgrade script name

Change-Id: Ie6f552d7029931979dc854a018b7a03e557f2fb2
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoTIZEN_FEATURE_BLUEZ_MODIFY define is missing in GATT Server 62/103362/1
Seungyoun Ju [Wed, 7 Dec 2016 08:32:48 +0000 (17:32 +0900)]
TIZEN_FEATURE_BLUEZ_MODIFY define is missing in GATT Server

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

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

[Problem] Tizen change should be in TIZEN_FEATURE_BLUEZ_MODIFY. But some changes
are not in that define.
[Cause & Measure] Define statement is missing
[Checking Method] N/A

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

Change-Id: I31f6f9f9de75b3144ec21f837b3df8fbcfc38c1b

7 years agoGATT Server : Provide a response necessity 86/101886/1 accepted/tizen/3.0/common/20161207.194301 accepted/tizen/3.0/ivi/20161207.011039 accepted/tizen/3.0/mobile/20161207.010930 accepted/tizen/3.0/tv/20161207.010956 accepted/tizen/3.0/wearable/20161207.011027 submit/tizen_3.0/20161206.041315
Seungyoun Ju [Fri, 2 Dec 2016 05:40:41 +0000 (14:40 +0900)]
GATT Server : Provide a response necessity

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

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

[Problem] Applications couldn't know whether this write request require a
 response or not
[Cause & Measure] There was no information about a response necessity.
 And reply required dbus call is always used unnecessarily. This patch
 provides a reponse necessity to above layer and uses no reply dbus call
 for Write Without Response command.
[Checking Method] Add some writable characteristics to GATT Server ->
Send some Write Without Reponse or Write Reqest from a remote device

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

Change-Id: I958d788c6873771f33d72e6b5310f63ead3dba70

7 years agoCall adapter_start on idle after adapter_register is completed. 45/101545/1 accepted/tizen/3.0/common/20161206.125215 accepted/tizen/3.0/ivi/20161205.065728 accepted/tizen/3.0/mobile/20161205.065555 accepted/tizen/3.0/tv/20161205.065629 accepted/tizen/3.0/wearable/20161205.065700 submit/tizen_3.0/20161202.001922 submit/tizen_3.0/20161205.001127
Deokhyun Kim [Thu, 1 Dec 2016 11:07:16 +0000 (20:07 +0900)]
Call adapter_start on idle after adapter_register is completed.

  adapter_register is NOT completed yet, but tries to emit a signal in
  adapter_start. Modified to call adapter_start on idle after adapter_register
  is completed.

Change-Id: I6acae539491eeecd208059660162ab170ef8aa1f
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
7 years agoAdd the missed patch config in LE scan 74/101474/1
Lee Hyuk [Thu, 1 Dec 2016 08:34:20 +0000 (17:34 +0900)]
Add the missed patch config in LE scan

Change-Id: I9c8ddb4ba4d38e1c2cd34bee5fef619ead2e76be
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
7 years agoSet IRK always 35/101035/1
Seungyoun Ju [Wed, 30 Nov 2016 06:34:59 +0000 (15:34 +0900)]
Set IRK always

[Problem] Android 6.x devices which don't support privacy 1.2 couldn't
 make LE connection to the device which doesn't distribute IRK when pairing.
[Cause & Measure] Android 6.x devices which don't support privacy 1.2
 use wrong address type when it tries to connect if remote device doesn't
 distributes IRK. This is Android 6.x device's bug but for compatibility
 Tizen need to distribute IRK even though Privacy feature is disabled.
[Checking Method] Pair BLE with A3 / A5 phones of Android version 6.x ->
 Disconnect -> Try connect BLE again

Change-Id: I63d60721d6c2b7472110d09ceda51ca04e898029
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoCheck NULL for dev->disconnect 09/101009/1
Deokhyun Kim [Wed, 30 Nov 2016 05:33:00 +0000 (14:33 +0900)]
Check NULL for dev->disconnect

[Problem] bluez crashes when disconnecting hid fails
[Cause & Measure] dev->disconnect is already unrefed but tries again with NULL
[Checking Method] Launch VR Controller App wihtout GearVR

Change-Id: Iee9cd0d6793fac6c2c4f7ec54040293321383e7a
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoDo not load a dev info if no technology has 06/101006/1
Seungyoun Ju [Wed, 30 Nov 2016 05:30:12 +0000 (14:30 +0900)]
Do not load a dev info if no technology has

[Problem] Old storage could have invalid directory. It causes paired
list corrupted
[Cause & Measure] Old bluez has some issues to store CSRK. It makes
invalid directory. It should be ignored when devices are loaded from
storage.

Change-Id: Ib18a4050f1d86145b2f53f8fff7629aebdff43ff
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoCode clean up 04/101004/1
Injun Yang [Wed, 30 Nov 2016 05:25:03 +0000 (14:25 +0900)]
Code clean up

Change-Id: Ibe562feb31431ca9936f7c5ceafdd2e8d938efea
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoHandling non-flag adv data 00/101000/1
Injun Yang [Wed, 30 Nov 2016 05:21:58 +0000 (14:21 +0900)]
Handling non-flag adv data

[Problem] Unable to find scan result which have non flag adv data
[Cause & Measure] Even though the adv flag field is not included,
  deliver it to bt service. Same with android behavior
[Checking Method] BLE Scanning

Change-Id: Ifbc85bedbe3edb38c5a2f0f588465ffc2ca07fcc
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoSynchronize file system 97/100997/1
Injun Yang [Wed, 30 Nov 2016 05:19:20 +0000 (14:19 +0900)]
Synchronize file system

Change-Id: I3e98506ea01212d8ff8cd7125a1499701bc3cc92
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoRemove the LE scan trigger when the LE scan stop is called 32/100832/2
Lee Hyuk [Tue, 29 Nov 2016 10:17:14 +0000 (19:17 +0900)]
Remove the LE scan trigger when the LE scan stop is called

Change-Id: I92393d03d369747148204304e55a678f180af7c3
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
7 years agoAdd Ford carkit on except START_TIMEOUT list. 71/100571/1
Minkyung Jo [Wed, 28 Sep 2016 04:17:16 +0000 (13:17 +0900)]
Add Ford carkit on except START_TIMEOUT list.

[Problem] Gear make a noise when carkit initiate connection.
[Cause & Measure] Pulseaudio acquire is delayed, because request of
  AVDTP_OPEN from cakir didn't come.
[Checking Method] Gear - Ford carkit connection -> carkit power off ->
  power on

Change-Id: I95129e935bb120ec9abb150368af3e8c82c07c1e
Signed-off-by: Injun Yang <injun.yang@samsung.com>
7 years agoDisable un-verified codes in obex ftp 72/99572/1 accepted/tizen/3.0/common/20161124.181655 accepted/tizen/3.0/ivi/20161124.025356 accepted/tizen/3.0/mobile/20161124.025310 accepted/tizen/3.0/tv/20161124.025324 accepted/tizen/3.0/wearable/20161124.025340 accepted/tizen/ivi/20161123.232921 accepted/tizen/mobile/20161123.232826 accepted/tizen/tv/20161123.232842 accepted/tizen/wearable/20161123.232903 submit/tizen_3.0/20161123.083932
DoHyun Pyun [Wed, 23 Nov 2016 09:15:27 +0000 (18:15 +0900)]
Disable un-verified codes in obex ftp

Change-Id: I8565f9b31caf41b0bd62efb84b8772fc656d41e1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoModify missed build option naming rules 47/99547/1
DoHyun Pyun [Tue, 22 Nov 2016 08:05:53 +0000 (17:05 +0900)]
Modify missed build option naming rules

Change-Id: Iea52cdd32c146dc2b8146d97b5a8e6bd3b009c48
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoRemove the obexd ps command 30/99430/2
Lee Hyuk [Wed, 23 Nov 2016 01:37:44 +0000 (10:37 +0900)]
Remove the obexd ps command

Change-Id: Ica0a204e0acc2035fe64b60624473a97a6fd9101
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
7 years agoAdd the LE discovery timeout function 32/99232/1
Lee Hyuk [Tue, 22 Nov 2016 07:53:55 +0000 (16:53 +0900)]
Add the LE discovery timeout function

Change-Id: I64650314c506845775a78c918a2f31ff478275aa
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
7 years agoModify build feature names as Tizen 3.0 build option naming rule 79/98879/1 accepted/tizen/3.0/common/20161122.195214 accepted/tizen/3.0/ivi/20161122.124737 accepted/tizen/3.0/mobile/20161122.124630 accepted/tizen/3.0/tv/20161122.124655 accepted/tizen/3.0/wearable/20161122.124715 submit/tizen_3.0/20161122.004310
DoHyun Pyun [Mon, 21 Nov 2016 05:46:12 +0000 (14:46 +0900)]
Modify build feature names as Tizen 3.0 build option naming rule

Change-Id: Icec1cdefc18c52cb14971a8df4465c6bc976b1d5
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoDebug the current discovery type masking value 90/98790/1
Hyuk Lee [Mon, 21 Nov 2016 01:29:03 +0000 (10:29 +0900)]
Debug the current discovery type masking value

Change-Id: Iba0f9c6baedf835f8f1e764e2142e99ff16a34af
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
7 years agoDisconnect HID device service when HID profile is removed. 80/98080/1 accepted/tizen/3.0/common/20161118.192928 accepted/tizen/3.0/ivi/20161118.003719 accepted/tizen/3.0/mobile/20161118.003621 accepted/tizen/3.0/tv/20161118.003637 accepted/tizen/3.0/wearable/20161118.003654 submit/tizen_3.0/20161117.002644
Deokhyun Kim [Wed, 16 Nov 2016 05:49:42 +0000 (14:49 +0900)]
Disconnect HID device service when HID profile is removed.

 - Even though App which registered HID device profile is terminated abnoramlly,
   HID is still connected. If trying to connect HID again then it fails always.
 - A profile of device structure & a profile registered by App are different.
   A profile of device structure maintains connceted status.
 - If a HID profile registered by App is removed in status of connected,
   disconnect the connection of the profile intentionally.

Change-Id: I9167ac4457cd431780184a3800a86bf82c2eb4ee
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
7 years agoiBeacon: Remove ibeaconReport signal logic. 04/97504/1
h.sandeep [Mon, 14 Nov 2016 09:05:00 +0000 (14:35 +0530)]
iBeacon: Remove ibeaconReport signal logic.

This patch removes the ibeacon report filter logic
and removes the signal iBeaconReport.
iBeacon filter logic is handled in CAPI.

Change-Id: Iecc1b82be967e70a5f2a9d497b5f791d5d092edf
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoRemove the auto connection in GATT callback 48/96248/2 accepted/tizen/3.0/common/20161116.143203 accepted/tizen/3.0/ivi/20161116.020945 accepted/tizen/3.0/mobile/20161116.020901 accepted/tizen/3.0/tv/20161116.020915 accepted/tizen/3.0/wearable/20161116.020928 submit/tizen_3.0/20161115.010647
Hyuk Lee [Tue, 8 Nov 2016 08:41:31 +0000 (17:41 +0900)]
Remove the auto connection in GATT callback

Change-Id: I2754dddd3f3d7b387e50cfb1ee90b19f1b3dbda6
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
7 years agoPort proximity profiles to new GATT arch 43/96543/1 accepted/tizen/3.0/common/20161114.143329 accepted/tizen/3.0/ivi/20161110.071351 accepted/tizen/3.0/mobile/20161110.071305 accepted/tizen/3.0/tv/20161110.071324 accepted/tizen/3.0/wearable/20161110.071339 submit/tizen_3.0/20161110.000333 submit/tizen_3.0_common/20161114.081136
Gowtham Anandha Babu [Thu, 27 Oct 2016 12:20:38 +0000 (17:50 +0530)]
Port proximity profiles to new GATT arch

1) Ported to new GATT architecure
2) Added RegisterProximty and UnregisterProximity DBus methods
   on org.bluez.ProximityReporter1 interface.
3) Since TxPower in not implemented in BlueZ, commented for now.

Change-Id: I749de3345639dfeab05384df950ea6918376092a
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
7 years agoActivate Proximity profile 42/96542/1
Taejin Woo [Mon, 5 Sep 2016 02:21:24 +0000 (11:21 +0900)]
Activate Proximity profile

This patch enables proximity profile with
Reporter/Monitor roles.

Change-Id: I84e43c4df9a64258596db79623cdc17fda11606f
Signed-off-by: Taejin Woo <tt.woo@samsung.com>
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoMerge the code from private 56/94956/1 accepted/tizen/3.0/common/20161114.081334 accepted/tizen/3.0/ivi/20161108.062312 accepted/tizen/3.0/mobile/20161108.062225 accepted/tizen/3.0/tv/20161108.062244 accepted/tizen/3.0/wearable/20161108.062257 submit/tizen_3.0/20161107.085533 submit/tizen_3.0_common/20161110.084657
DoHyun Pyun [Wed, 2 Nov 2016 05:05:49 +0000 (14:05 +0900)]
Merge the code from private

branch:devel/bluetooth/master
=================================================
commit ecfa1d0dd2543caa510f1692ae06e40df77f30f1
Author: Biman Paul <biman.paul@samsung.com>
Date:   Wed Jun 29 16:27:07 2016 +0530

pbap: clear cache if name header is present

=================================================

Change-Id: I9fc1980f5ecf3e1ed2276f2650630aee150e0ed8
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoiBeacon: Add support to filter the iBeacon reports 98/94898/1
h.sandeep [Wed, 5 Oct 2016 05:07:35 +0000 (10:37 +0530)]
iBeacon: Add support to filter the iBeacon reports

Change-Id: I94c1911418783be65995995abcc4899c16dee0dc
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoGAP:LE Scan Filter as Platform feature. 97/94897/1
h.sandeep [Fri, 12 Aug 2016 10:10:29 +0000 (15:40 +0530)]
GAP:LE Scan Filter as Platform feature.

Basic code for LE scan filter.
1. Add scan filters.
2. Filter the scan result.
3. Delete the filters.

Change-Id: I8998540f1092a333d28e7ff810d2f309f7bf4d0b
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
7 years agoSupport the bcm43xx firmware download using the hciattach tool 84/94884/1 accepted/tizen/3.0/ivi/20161103.002137 accepted/tizen/3.0/mobile/20161103.002050 accepted/tizen/3.0/tv/20161103.002107 accepted/tizen/3.0/wearable/20161103.002123 submit/tizen_3.0/20161102.022329
DoHyun Pyun [Wed, 2 Nov 2016 02:14:45 +0000 (11:14 +0900)]
Support the bcm43xx firmware download using the hciattach tool

Change-Id: I25f23970c8af078d8869bbab415f03286e3529d4
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoRevert "Check if the vendor command supports or not for HFP audio setting commands" 40/92540/1 accepted/tizen/3.0/ivi/20161028.151357 accepted/tizen/3.0/mobile/20161028.143228 accepted/tizen/3.0/tv/20161028.143545 accepted/tizen/3.0/wearable/20161028.150852 accepted/tizen/common/20161017.170426 accepted/tizen/ivi/20161018.021453 accepted/tizen/mobile/20161018.021358 accepted/tizen/tv/20161018.021412 accepted/tizen/wearable/20161018.021429 submit/tizen/20161017.102112 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.092423 submit/tizen_3.0_common/20161104.104000
DoHyun Pyun [Mon, 17 Oct 2016 09:43:38 +0000 (18:43 +0900)]
Revert "Check if the vendor command supports or not for HFP audio setting commands"

This reverts commit a964a310b7ad0b2d289e32bb866715d4ffdd0d82.

Change-Id: I8f38ffc7e8e3721c09e42ece1bf2e0bca58dc02d

7 years agoMerge "Check if the vendor command supports or not for HFP audio setting commands...
DoHyun Pyun [Mon, 17 Oct 2016 05:57:51 +0000 (22:57 -0700)]
Merge "Check if the vendor command supports or not for HFP audio setting commands" into tizen

7 years agoCheck if the vendor command supports or not for HFP audio setting commands 50/92450/1
DoHyun Pyun [Mon, 17 Oct 2016 05:10:42 +0000 (14:10 +0900)]
Check if the vendor command supports or not for HFP audio setting commands

Change-Id: I6c09577b2cfc25363865d3db15dad28fffcb8d43
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoNULL check add in response of the MGMT command 22/92222/5
Hyuk Lee [Fri, 14 Oct 2016 04:38:45 +0000 (13:38 +0900)]
NULL check add in response of the MGMT command

Change-Id: I402f8797f4323f1e5a80472034a5d035c9498b2a
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
7 years agoInclude the method call for naroow and wide band setting method 20/91720/1 accepted/tizen/common/20161011.154224 accepted/tizen/ivi/20161011.234126 accepted/tizen/mobile/20161011.234121 accepted/tizen/tv/20161011.234059 accepted/tizen/wearable/20161011.234116 submit/tizen/20161011.045858 submit/tizen/20161011.051821
DoHyun Pyun [Tue, 11 Oct 2016 04:53:57 +0000 (13:53 +0900)]
Include the method call for naroow and wide band setting  method

Change-Id: I5ed2a97d10b8bcc2e388287792f1f3aa957420a6
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoModify the media root directory path 85/89985/1 accepted/tizen/3.0/ivi/20161011.053523 accepted/tizen/3.0/mobile/20161015.032357 accepted/tizen/3.0/tv/20161016.003539 accepted/tizen/3.0/wearable/20161015.080416 accepted/tizen/common/20160928.164314 accepted/tizen/ivi/20160929.002011 accepted/tizen/mobile/20160929.001908 accepted/tizen/tv/20160929.001920 accepted/tizen/wearable/20160929.002047 submit/tizen/20160928.062430 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 [Wed, 28 Sep 2016 03:02:53 +0000 (12:02 +0900)]
Modify the media root directory path

Change-Id: I22cab6e07f2fe8eda682689fdf417d451f53c5c1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoRevert "Fix UTC fail issue for tv profile" 10/88910/1 accepted/tizen/common/20160922.120619 accepted/tizen/ivi/20160922.233149 accepted/tizen/mobile/20160922.233127 accepted/tizen/tv/20160922.233142 accepted/tizen/wearable/20160922.233134 submit/tizen/20160922.015934
DoHyun Pyun [Wed, 21 Sep 2016 05:41:32 +0000 (14:41 +0900)]
Revert "Fix UTC fail issue for tv profile"

This reverts commit 12aac29eb27cfd070ba1ebbaebb59b4f47edb442.

Change-Id: I7d7d8887ec8d1bca94caada5c1d21398bf514649
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoFix UTC fail issue for tv profile 39/88639/1 accepted/tizen/common/20160920.132128 accepted/tizen/ivi/20160920.231930 accepted/tizen/mobile/20160920.231850 accepted/tizen/tv/20160920.231858 accepted/tizen/wearable/20160920.231912 submit/tizen/20160920.054624
DoHyun Pyun [Tue, 20 Sep 2016 05:41:51 +0000 (14:41 +0900)]
Fix UTC fail issue for tv profile

UX3 kernel task is not complete, so MGMT value is different.
Before completing kernel's task, we need to return the dummy scan status.

Change-Id: I9ba9517aa71659361cc06f7414983386a7a2b269
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoRestricted connection when request come from remoted audio device 42/87642/4 accepted/tizen/common/20160912.181444 accepted/tizen/ivi/20160913.041814 accepted/tizen/mobile/20160913.041719 accepted/tizen/tv/20160913.041732 accepted/tizen/wearable/20160913.041753 submit/tizen/20160912.033649 submit/tizen/20160912.055637
Hyuk Lee [Fri, 9 Sep 2016 03:55:46 +0000 (12:55 +0900)]
Restricted connection when request come from remoted audio device

Change-Id: Ic9bf302bdf3af5355979e781c9ef2a3bf1a5e019
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
7 years agoModfy the restricted profile state value 09/87609/2
Hyuk Lee [Fri, 9 Sep 2016 00:55:24 +0000 (09:55 +0900)]
Modfy the restricted profile state value

Change-Id: I8261cdd6a2174c43673fd26b3ebb0b2777f52f7b
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
7 years agoAudio : Add the method for setting/getting the restricted connection 22/87222/1
Hyuk Lee [Wed, 7 Sep 2016 05:48:57 +0000 (14:48 +0900)]
Audio : Add the method for setting/getting the restricted connection

Change-Id: I6d47dc5effd0e21629060ca88967b26bd9a69312
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
7 years agoAdd the script file for 3.0 OS upgrade 26/86926/2 accepted/tizen/common/20160907.154510 accepted/tizen/ivi/20160908.004149 accepted/tizen/mobile/20160908.004055 accepted/tizen/tv/20160908.004112 accepted/tizen/wearable/20160908.004126 submit/tizen/20160907.050933
DoHyun Pyun [Mon, 5 Sep 2016 12:35:45 +0000 (21:35 +0900)]
Add the script file for 3.0 OS upgrade

Change-Id: I5d36724fea4e71a063dc28b9c4c698ce57d3105a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoRemove Unused files : cscope.out 81/86781/1
Taejin Woo [Mon, 5 Sep 2016 00:54:36 +0000 (09:54 +0900)]
Remove Unused files : cscope.out

Change-Id: Ia43fe9cf5873fe9d837554c1ea972454fd1405a2
Signed-off-by: Taejin Woo <tt.woo@samsung.com>
7 years agoModify bluetooth.service file for XU3 44/86244/1 accepted/tizen/common/20160901.143342 accepted/tizen/ivi/20160901.072650 accepted/tizen/mobile/20160901.072602 accepted/tizen/tv/20160901.072613 accepted/tizen/wearable/20160901.072631 submit/tizen/20160901.003334
DoHyun Pyun [Wed, 31 Aug 2016 08:19:01 +0000 (17:19 +0900)]
Modify bluetooth.service file for XU3

Change-Id: I65dc2d03384c0d53b625b049f54ffa7be41fd06c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoModify the default root directory for obexd 30/85130/1 accepted/tizen/common/20160825.062840 accepted/tizen/ivi/20160829.041711 accepted/tizen/mobile/20160829.041614 accepted/tizen/tv/20160829.041634 accepted/tizen/wearable/20160829.041649 submit/tizen/20160825.004351
DoHyun Pyun [Wed, 24 Aug 2016 02:00:29 +0000 (11:00 +0900)]
Modify the default root directory for obexd

Change-Id: I0d0fdddf97083accfff46aac907a7e1559ebdd53
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoCreate RPA device structure separately from others 38/84938/1
Seungyoun Ju [Thu, 18 Aug 2016 05:38:01 +0000 (14:38 +0900)]
Create RPA device structure separately from others

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

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

[Problem] Paired remote device's address is changed after BR/EDR pairing
-> LE pairing when it uses RPA address for LE
[Cause & Measure] When LE is paired, BR/EDR device structure is merged
to LE RPA device structure. It causes address change of BR/EDR device
and applications cannot track that device.
[Checking Method] BR/EDR Pairing -> LE Pairing with M OS Android device

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

Change-Id: Ia7afff8151c1f10024bae8826c0ecaf1ee25a26d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoMerge the code from private 36/83936/1
DoHyun Pyun [Fri, 12 Aug 2016 08:51:55 +0000 (17:51 +0900)]
Merge the code from private

branch:devel/bluetooth/master
=================================================
commit 2fca83fc8992b0475434b40f911eba47e623935e
Author: Anurag Biradar <biradar.a@samsung.com>
Date:   Fri Aug 5 15:11:55 2016 +0530

HID: Adding support for dual HID Roles

==================================================

Change-Id: I06b445bddbba372d3977904e5225d6ca54b12cb7
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoIPSP : Tie connected info and Interface Info 49/83349/6 accepted/tizen/common/20160812.141000 accepted/tizen/ivi/20160812.065435 accepted/tizen/mobile/20160812.065418 accepted/tizen/tv/20160812.065430 accepted/tizen/wearable/20160812.065424 submit/tizen/20160812.010225
Taejin Woo [Thu, 11 Aug 2016 05:03:05 +0000 (14:03 +0900)]
IPSP : Tie connected info and Interface Info

When connected between two device, they already know Interface info

Change-Id: I53800bb80868d69159f4291eaf4a462e3a7433c4
Signed-off-by: Taejin Woo <tt.woo@samsung.com>
7 years agoRemove the code for setting smack labeling 97/81097/1 accepted/tizen/common/20160809.184123 accepted/tizen/ivi/20160809.232800 accepted/tizen/mobile/20160809.232826 accepted/tizen/tv/20160809.232643 accepted/tizen/wearable/20160809.232855 submit/tizen/20160809.064342
DoHyun Pyun [Fri, 22 Jul 2016 05:01:03 +0000 (14:01 +0900)]
Remove the code for setting smack labeling

Change-Id: Ic9c08bdad83e17756fc8ace77da73ea7af8d555e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
7 years agoRemove unused installing scripts 84/77084/1 accepted/tizen/common/20160703.125938 accepted/tizen/ivi/20160629.021342 accepted/tizen/mobile/20160629.021426 accepted/tizen/tv/20160629.021247 accepted/tizen/wearable/20160629.021404 submit/tizen/20160628.115841 submit/tizen_common/20160701.180000
DoHyun Pyun [Tue, 28 Jun 2016 11:17:34 +0000 (20:17 +0900)]
Remove unused installing scripts

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