Seungyoun Ju [Wed, 23 Jan 2019 06:52:15 +0000 (15:52 +0900)]
Support getting LE Local OOB Data
[Problem] There is no interface to get LE local OOB Data
[Cause & Measure] Send MGMT_OP_READ_LOCAL_OOB_EXT_DATA to kernel to get
LE local OOB Data.
Result:
$ dbus-send --system --print-reply --dest=org.bluez /org/bluez/hci0 org.bluez.OutOfBand.LEReadLocalData
method return time=
1548225479.022260 sender=:1.392 -> destination=:1.400 serial=94 reply_serial=2
array of bytes [
08 1b 86 a6 6a d6 ae 08 00 02 1c 01 11 22 71 05 07 3e 23 98 9b 54 c4 56
c4 b0 af 35 12 30 11 23 c4 3c 10 96 94 ad 99 19 9f 58 03 57 e7 5a ac 33
02 01 00
]
< ACL Data TX: Handle 65 flags 0x00 dlen 11
SMP: Pairing Request (0x01) len 6
IO capability: KeyboardDisplay (0x04)
OOB data: Authentication data from remote device present (0x01)
Authentication requirement: Bonding, MITM, SC, No Keypresses (0x0d)
Max encryption key size: 16
Initiator key distribution: EncKey IdKey Sign (0x07)
Responder key distribution: EncKey IdKey Sign (0x07)
> ACL Data RX: Handle 65 flags 0x02 dlen 11
SMP: Pairing Response (0x02) len 6
IO capability: DisplayOnly (0x00)
OOB data: Authentication data not present (0x00)
Authentication requirement: Bonding, MITM, SC, No Keypresses (0x0d)
Max encryption key size: 16
Initiator key distribution: EncKey IdKey Sign (0x07)
Responder key distribution: EncKey IdKey Sign (0x07)
< ACL Data TX: Handle 65 flags 0x00 dlen 69
SMP: Pairing Public Key (0x0c) len 64
X: cfb9cf0a6922f4c5368c7025f15193e183e895a7ba354d6283cbb6c9ac34aafc
Y: 9c0a76d625852440b0ccc08d56587f38f3f22a11950e3f2824e4ccc2505fd70f
> HCI Event: Number of Completed Packets (0x13) plen 5
Num handles: 1
Handle: 65
Count: 2
> ACL Data RX: Handle 65 flags 0x02 dlen 27
> ACL Data RX: Handle 65 flags 0x01 dlen 27
> ACL Data RX: Handle 65 flags 0x01 dlen 15
SMP: Pairing Public Key (0x0c) len 64
X: acec5a11f457c40138809e618865b8ead2ea1c5f71b38deb8e3bb76c64b219a8
Y: 9bc8d28c0f96d175c9661ec012af89b5b34f936a9a8ec6c39b75e12540eeaf76
< ACL Data TX: Handle 65 flags 0x00 dlen 21
SMP: Pairing Random (0x04) len 16
Random value:
a307ddd44443bfbba384cc26bd51012f
> ACL Data RX: Handle 65 flags 0x02 dlen 21
SMP: Pairing Random (0x04) len 16
Random value:
36bd1b4d18a5a3dfcdaefeae72cb380e
< ACL Data TX: Handle 65 flags 0x00 dlen 21
SMP: Pairing DHKey Check (0x0d) len 16
E:
02cb188687306cd5a10cd3788bd317f3
> HCI Event: Number of Completed Packets (0x13) plen 5
Num handles: 1
Handle: 65
Count: 2
> ACL Data RX: Handle 65 flags 0x02 dlen 21
SMP: Pairing DHKey Check (0x0d) len 16
E:
1970e360950cc322587d322f0c4e333a
< HCI Command: LE Start Encryption (0x08|0x0019) plen 28
Handle: 65
Random number: 0x0000000000000000
Encrypted diversifier: 0x0000
Long term key:
a818945751ab5c2e10c6de92ed1c9130
> HCI Event: Command Status (0x0f) plen 4
LE Start Encryption (0x08|0x0019) ncmd 1
Status: Success (0x00)
> HCI Event: Encryption Change (0x08) plen 4
Status: Success (0x00)
Handle: 65
Encryption: Enabled with AES-CCM (0x01)
Change-Id: I9e8e9bbc6c06b20938c653b71066d4f27a4028ad
Seungyoun Ju [Thu, 8 Nov 2018 08:51:03 +0000 (17:51 +0900)]
Delete temp files
[Problem] Storage directory's size becomes huge (over 6MB)
after infinite rebooting test.
[Cause & Measure] Over 1,500 temp files were created as followings.
g_file_contents_set() creates temp file and writes contents to it. After that,
rename temp file to destination file for atomic operation. If a device turned
off before renaming, temp file remains and never be deleted.
This patch deletes temp files before creating temp files.
4.0K /opt/var/lib/bluetooth/FC:A6:21:B2:E1:7B/settings.CKX5BZ
4.0K /opt/var/lib/bluetooth/FC:A6:21:B2:E1:7B/settings.OA76BZ
4.0K /opt/var/lib/bluetooth/FC:A6:21:B2:E1:7B/settings.1BFTBZ
4.0K /opt/var/lib/bluetooth/FC:A6:21:B2:E1:7B/settings.3CB9BZ
[Checking Method] Reboot device while booting
Change-Id: Ie159ef06eab6295b1f40514e4dde386a512eb5d1
Seungyoun Ju [Fri, 2 Nov 2018 11:12:35 +0000 (20:12 +0900)]
Fix : Multi advertising is not working
[Problem] Multi advertising is not working.
[Cause & Measure] There is a condition to check if multiple advertising
is supported or not. But the condition is not valid now so it has been
removed.
Change-Id: I76387667f19b8c58a40416faf4fa42462782b4cb
Seungyoun Ju [Thu, 25 Oct 2018 09:11:59 +0000 (18:11 +0900)]
Send LE Set Random Address and check response
[Problem] HCI command Tx timeout happens.
[Cause & Measure] Vendor command is sent before Command complete event comes
for LE Set Random Address. It causes bluetooth chip's malfunction.
This commit fixs to check the response about LE Set Random Address. So
that next vendor command is sent after LE Set Random Address is
processed properly by chipset.
[Checking Method] Turn on Bluetooth > Start advertising
Change-Id: Ie757398be6d8ad71da1cc23b72ac132789df9e49
Szymon Janc [Thu, 26 Jul 2018 14:34:00 +0000 (16:34 +0200)]
shared/gatt-client: Fix crash on ext prop read failure
[Problem] bluetoothd crash happens.
[Cause & Measure] There is no routine for failure case of extended
property read response. It causes invalid memory access. There is
upstream patch for this issue. So this patch applies the upstream patch.
[Checking Method] Disconnect BLE during GATT service discovery. This is
some times issue.
[Original upstream patch]
commit
6e2eb99f666ea7084067196472ff8d49e06f90d9
Author: Szymon Janc <szymon.janc@codecoup.pl>
Date: Thu Jul 26 16:34:00 2018 +0200
shared/gatt-client: Fix crash on ext prop read failure
Program received signal SIGSEGV, Segmentation fault.
Program received signal SIGSEGV, Segmentation fault.
ext_prop_read_cb (success=false, att_ecode=0 '\000', value=0x0,
length=0, user_data=0x72ad30) at src/shared/gatt-client.c:711
711 src/shared/gatt-client.c: No such file or directory.
(gdb) bt
0 ext_prop_read_cb (success=false, att_ecode=0 '\000', value=0x0,
length=0, user_data=0x72ad30)
at src/shared/gatt-client.c:711
1 0x000000000049b8cc in disc_att_send_op (data=0x7199b0)
at src/shared/att.c:547
2 0x000000000049cb44 in disconnect_cb (io=<optimized out>,
user_data=0x716070) at src/shared/att.c:580
3 0x00000000004a6405 in watch_callback (channel=<optimized out>,
cond=<optimized out>, user_data=<optimized out>)
at src/shared/io-glib.c:170
4 0x00007ffff78c704a in g_main_context_dispatch ()
from /lib/x86_64-linux-gnu/libglib-2.0.so.0
5 0x00007ffff78c73f0 in ?? ()
from /lib/x86_64-linux-gnu/libglib-2.0.so.0
6 0x00007ffff78c7712 in g_main_loop_run ()
from /lib/x86_64-linux-gnu/libglib-2.0.so.0
7 0x000000000040c620 in main (argc=1, argv=0x7fffffffe5a8)
at src/main.c:781
Change-Id: I6f0a0b1501761693ebdbd851773878e827cd6cce
Pyun DoHyun [Tue, 12 Feb 2019 04:22:17 +0000 (04:22 +0000)]
Merge "Don't try to reconnect for A2DP source connection" into tizen
DoHyun Pyun [Fri, 8 Feb 2019 07:46:48 +0000 (16:46 +0900)]
Don't try to reconnect for A2DP source connection
For A2DP multi connection function, we should disable
the reconnection logic for the stable streaming.
Change-Id: I57d217d9e65c7fcbcfd53cdf894236e7ee880dff
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Amit Purwar [Mon, 4 Feb 2019 06:36:08 +0000 (12:06 +0530)]
Modified the write fd for acquired write
Change-Id: I2bdc6b7e925bf8d316eb6bebd32ac35328465b2b
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Pyun DoHyun [Wed, 30 Jan 2019 01:05:53 +0000 (01:05 +0000)]
Merge "A2DP profile multiple source support" into tizen
Amit Purwar [Mon, 28 Jan 2019 05:17:45 +0000 (10:47 +0530)]
Fixed disable notify for acquire notification
Change-Id: Icf807258aa50836ffb99a7bd67740561850e4cff
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Avichal [Fri, 14 Dec 2018 11:18:48 +0000 (16:48 +0530)]
A2DP profile multiple source support
there will be two sources source1 and source2
pause source 1 when source2 plays and viceversa
Change-Id: I2d424ce76278f505f9c270684248a76141e8e2b9
Signed-off-by: Avichal <avichal.a@samsung.com>
Luiz Augusto von Dentz [Mon, 21 Jan 2019 12:23:10 +0000 (17:53 +0530)]
gatt: Switch from pipe2 to sockepair for Acquire*
This enables to use sendmsg with MSG_NOSIGNAL.
Change-Id: Ie28b0bfbec3730448e7d045d978909accab0f685
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Avichal <avichal.a@samsung.com>
DoHyun Pyun [Wed, 2 Jan 2019 04:06:30 +0000 (13:06 +0900)]
Enable the connection request event for custom obex server
Change-Id: Icac1762393d4527d4fa920e5e123bcdf0ec485bf
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Wootak Jung [Fri, 21 Dec 2018 00:55:13 +0000 (09:55 +0900)]
Include btattach, btmon tools into bluez pkg
Change-Id: I71f7e2659ce03c0a11fdd489d1a15515255b7a06
DoHyun Pyun [Tue, 30 Oct 2018 02:24:14 +0000 (11:24 +0900)]
Remove the apach license in the spec file
Change-Id: I440381913b762cc81f732099cecc08348d8752dc
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Wootak Jung [Mon, 29 Oct 2018 04:05:31 +0000 (13:05 +0900)]
Fix bluez rpm installation priority
The attribute of hci* execution files is not set network_fw:network_fw,
if bluez rpm is installed before security-config rpm.
Change-Id: Ifadd19e93397a52b14aea872bb88df9f26edc4f9
Wootak Jung [Thu, 25 Oct 2018 06:15:33 +0000 (15:15 +0900)]
Fix profile check logic to distinguish ivi and iot
Change-Id: I801bb263df0a43386671df7f9775ccb5530b5fee
Abhishek Chandra [Mon, 10 Sep 2018 09:01:51 +0000 (14:31 +0530)]
connect_le is failing for autoconnect
[Problem] connect_le api is failing when user set
autoconnect as true .
[Cause] when auto connect is true ,
device_set_auto_connect is called
to set device autoconnect parametes and
it is return back . device_connect_le call is
not called in this case .
[Fix] Removed the dbus_message_new_method_return .
[Verification] verified by code review in upstream
bluez code and also tested by using unit test
in platform.
Change-Id: I09e3d8e1e9169cb734419f9516ba39800ee309ee
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
Wootak Jung [Mon, 27 Aug 2018 02:06:12 +0000 (11:06 +0900)]
Modify dbus policies based on default deny
- Remove receive_sender policies
- Combine deny policies
Change-Id: Ic3d691111443589b2896d5bbfde4eae328e996aa
Deokhyun Kim [Thu, 16 Aug 2018 05:10:09 +0000 (14:10 +0900)]
Set HID security level to medium.
- HID should be connected after bonding completes
Change-Id: I48ac572ee7873796bae50194512a86a32262e794
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Seungyoun Ju [Mon, 13 Aug 2018 08:34:18 +0000 (17:34 +0900)]
Fix : device_get_ida is failed
[Problem] device_get_ida returns unsupported error code for paired RPA device
[Cause & Measure] Paired RPA device's bdaddr type can be public because
device.bdaddr has identity address. But old condition assumes that bdaddr
type should be random. So unsupported error code is returned. This fix
checks each case and returns proper error codd or result.
Change-Id: I435a354d956a6208129e83cbad32a0b594aec39a
Anupam Roy [Mon, 6 Aug 2018 17:16:01 +0000 (22:46 +0530)]
Implement 'Get Phy Configuration' MGMT command
This patch implements MGMT_OP_GET_PHY_CONFIGURATION
operation if MGMT interface supports PHY Configuration
setting. It introduces two new adapter properties
(l2 2m phy and le coded phy). These properties are filled
upon getting response from kernel about supported phys's.
which are then exported to user by 'SupportedLEFeatures'
adapter property.
This mgmt command supports reading above parameters in bit fields,
based on LE PHY (1M, 2M & CODED) and also
BREDR packet types as following-
- BR 1M (1 SLOT, 3 SLOT, 5 SLOT)
- EDR 2M (1 SLOT, 3 SLOT, 5 SLOT)
- EDR 3M (1 SLOT, 3 SLOT, 5 SLOT)
- 1M TX, 1M RX
- 2M TX, 2M RX
- CODED TX, CODED RX
Verification logs based on BT 5.0 controller -
bluetoothd[637]: src/adapter.c:get_phy_configuration_resp() Supported phys: [0x7e00]
bluetoothd[637]: src/adapter.c:get_phy_configuration_resp() Configurable phys: [0x7800]
bluetoothd[637]: src/adapter.c:get_phy_configuration_resp() Selected phys: [0x600]
bluetoothd[637]: src/adapter.c:get_phy_configuration_resp() Adapter supports LE 2M PHY
bluetoothd[637]: src/adapter.c:get_phy_configuration_resp() Adapter supports LE CODED PHY
Change-Id: I9ec3565b5d1b9a0de3daea666d34754958bb1550
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Anupam Roy [Mon, 6 Aug 2018 17:03:39 +0000 (22:33 +0530)]
Add defines for BREDR packet types
This patch defines BREDR packet types
in management interface as following
- MGMT_PHY_BR_1M_1SLOT 0x00000001
- MGMT_PHY_BR_1M_3SLOT 0x00000002
- MGMT_PHY_BR_1M_5SLOT 0x00000004
- MGMT_PHY_EDR_2M_1SLOT 0x00000008
- MGMT_PHY_EDR_2M_3SLOT 0x00000010
- MGMT_PHY_EDR_2M_5SLOT 0x00000020
- MGMT_PHY_EDR_3M_1SLOT 0x00000040
- MGMT_PHY_EDR_3M_3SLOT 0x00000080
- MGMT_PHY_EDR_3M_5SLOT 0x00000100
Also, it fixes parameters for response of
MGMT_OP_GET_PHY_CONFIGURATION operation.
mgmt_rp_get_phy_confguration structure will now
contain three parameters as following
- Supported_phys;
- Configurable_phys;
- Selected_phys;
Change-Id: Ia3d0c83473807d91d48eb7594c44595eca9c2a0d
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Seungyoun Ju [Mon, 6 Aug 2018 11:25:58 +0000 (20:25 +0900)]
device : Return proper error code for get_ida
[Problem] There is no way to know if remote device is not bonded or it
doesn't support IDA (i.e. BR/EDR device, LE Static random address or
non-RPA used device).
[Cause & Measure] We consider only LE RPA device. So return not
supported error code for others.
[Checking Method] N/A
Change-Id: I734a468a64cc85fa6aac08a9f0621dd95c44217c
injun.yang [Mon, 21 May 2018 08:36:44 +0000 (17:36 +0900)]
Update rpa on VSC advertising
[Model] All
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A
[Problem] The updated rpa is not applied on VSC advertising
[Cause & Measure] When rpa changed, report it to bluetoothd.
If device doing multiple adv, bluetoothd will update rpa.
[Checking Method] When rpa updated, check the address of advertiser
[Team] Basic Connection
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change
Change-Id: I967e8eca52d9de1a0e140ee70abcd18392a1ea1b
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Anupam Roy [Mon, 6 Aug 2018 06:16:02 +0000 (11:46 +0530)]
monitor: Add PHY management support
This patch adds support of PHY management
and consolidation of code printing bitfield
Taken from following upstream commits-
commit
dad3ca2f417d9330f6f3bc33cfee5d0b24985a5d
commit
426693e8457326ee686e46a2c9f535b9367a55d7
commit
e566be15ce03283978c35b2ab8462504da3fee63
commit
e862f704eeff14818fcc00a57271bd6907285ad7
Change-Id: I3582308f50423b916cec7d900fcf41dc9b4c4dc6
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Anupam Roy [Wed, 1 Aug 2018 14:54:58 +0000 (20:24 +0530)]
btmgmt: Add PHY configuration get/set commands
Taken from following upstream commit-
commit
dca915f54c1f969d977e9433d336bf3f6264632b
Change-Id: Ic8842ad0687c607b4606648f0813221d0c18c4c7
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Atul Rai [Tue, 10 Jul 2018 11:37:38 +0000 (17:07 +0530)]
Fix Coverity issue (Id:860268)
Change-Id: I9e784c6eca9a94fb9b5b5ad340aee09b7bc2b65d
Signed-off-by: Atul Rai <a.rai@samsung.com>
injun.yang [Fri, 29 Jun 2018 04:38:42 +0000 (13:38 +0900)]
Change the name of dbus property of EIR manufacturer data
Same property for adv is introduced in upstream
Change-Id: I841c525a334ad337b41b3153c7958731358ea260
Signed-off-by: injun.yang <injun.yang@samsung.com>
Seungyoun Ju [Mon, 18 Jun 2018 10:10:53 +0000 (19:10 +0900)]
CFLAGS is accumulated each profile is built
[Problem] CFLAGS is accumulated each profile is built
[Cause & Measure] Store default CFLAGS and before compiling a profile
reset CFLAGS using saved one.
Change-Id: I5d2e37852a2829978ef5bf6a7a75942494b9fdba
Anupam Roy [Thu, 14 Jun 2018 06:49:59 +0000 (12:19 +0530)]
emulator: sync with upstream
This patch comes from below commits of upstream
=====================================================================
commit
98a77944e6d3d5706647bfa7235c175b32173436
Author: ERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>
Date: Mon Apr 23 18:00:37 2018 +0900
emulator/b1ee: Enable to specify host and port
Removes the DEFAULT_SERVER macro because the default host seems to be
unofficial since 2017.
commit
b54111d2a432cdbd4926cce8be5b119b298e8477
Author: Łukasz Rymanowski <lukasz.rymanowski@codecoup.pl>
Date: Fri Feb 9 18:26:25 2018 +0100
emulator: Add initial LE states to btdev and API to set new one
=====================================================================
Change-Id: I9f94927c0b6f6dcf712ca137548691dfda53783a
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Anupam Roy [Mon, 11 Jun 2018 04:19:20 +0000 (09:49 +0530)]
build: Add testing config option
This patch comes from below commit of upstream
========================================================
commit
df43b3dad829e8b7f79fd15c20d997f50e745ae7
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: Wed Jan 4 15:24:45 2017 +0200
build: Add testing config option
This adds --enable-testing that can be used to enable emulator and tester
which are no longer experimental but also are not meant for production.
========================================================
Change-Id: I41edb9f1b726340dde4a22bc705a68b5bceea4c9
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Wootak Jung [Mon, 4 Jun 2018 09:30:00 +0000 (18:30 +0900)]
Add headless device handling logic
Change-Id: Iee83a7af02901787e3697d95f86ecf79103b9b67
Wootak Jung [Mon, 4 Jun 2018 00:58:33 +0000 (09:58 +0900)]
Disable SSP mode in headless device
Change-Id: I873f64b49887825f5a079306b41a03961b22bbee
Pyun DoHyun [Fri, 1 Jun 2018 00:29:53 +0000 (00:29 +0000)]
Merge "Fix LE device found event" into tizen
Wootak Jung [Fri, 1 Jun 2018 00:02:41 +0000 (09:02 +0900)]
Add a debug log for debugging
Change-Id: Ibf98b251668fd5f73f518431da4330bc1e56d54b
Atul Rai [Thu, 31 May 2018 10:09:29 +0000 (15:39 +0530)]
Fix LE device found event
Issue: Paired devices are not detected during LE scan while
paired device is advertising
This patch fixes this issue.
Change-Id: I1b9f06c3d057204cb01fe88faedaa5ace399c26b
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
Signed-off-by: Atul Rai <a.rai@samsung.com>
Wootak Jung [Thu, 31 May 2018 08:12:42 +0000 (17:12 +0900)]
Add headless device handling logic
Change-Id: I0b7fa8f982e4b455b245e5c66b1fdc7ecb6289ca
Wootak Jung [Thu, 31 May 2018 01:16:38 +0000 (10:16 +0900)]
Fix access deny issue on dbus policy
Deny policy in context="default" has been applied
because of incorrect policy in other context.
Change-Id: I6185a0d784c0f082276bb4a1e002e3b86ddd9bff
injun.yang [Tue, 29 May 2018 07:46:13 +0000 (16:46 +0900)]
Fix the crash
gdb) bt
0 0x00520b98 in ext_prop_read_cb (success=false, att_ecode=0 '\000', value=0x0, length=0, user_data=0xad5310) at src/shared/gatt-client.c:746
1 0x0051e62a in read_cb (opcode=<optimized out>, pdu=<optimized out>, length=<optimized out>, user_data=<optimized out>) at src/shared/gatt-client.c:2418
2 0x0051d5a6 in disc_att_send_op (data=0xad5cd0) at src/shared/att.c:569
3 0x0051dffc in disconnect_cb (io=<optimized out>, user_data=0xadb400) at src/shared/att.c:602
4 0x00524298 in watch_callback (channel=<optimized out>, cond=<optimized out>, user_data=<optimized out>) at src/shared/io-glib.c:170
5 0xf75318e8 in g_main_dispatch (context=0xac5f80) at gmain.c:3234
6 g_main_context_dispatch (context=context@entry=0xac5f80) at gmain.c:3887
7 0xf7531c78 in g_main_context_iterate (context=0xac5f80, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3960
8 0xf7531fd8 in g_main_loop_run (loop=0xac5ee0) at gmain.c:4156
9 0x004b032c in main (argc=<optimized out>, argv=<optimized out>) at src/main.c:723
gdb) bt full 3
0 0x00520b98 in ext_prop_read_cb (success=false, att_ecode=0 '\000', value=0x0, length=0, user_data=0xad5310) at src/shared/gatt-client.c:746
op = 0xad5310
client = <optimized out>
discovering = 247
desc_attr = <optimized out>
1 0x0051e62a in read_cb (opcode=<optimized out>, pdu=<optimized out>, length=<optimized out>, user_data=<optimized out>) at src/shared/gatt-client.c:2418
req = <optimized out>
op = <optimized out>
success = <optimized out>
att_ecode = <optimized out>
value = 0x0
value_len = <optimized out>
2 0x0051d5a6 in disc_att_send_op (data=0xad5cd0) at src/shared/att.c:569
op = 0xad5cd0
Change-Id: I6f817e21a4a75c3c36f62d1d102e189be5088968
DoHyun Pyun [Wed, 23 May 2018 04:49:17 +0000 (13:49 +0900)]
Modify the deny policy
Change-Id: I56e778e62aca7c9fba729e740b11e84e96872fa9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Pyun DoHyun [Tue, 22 May 2018 23:31:48 +0000 (23:31 +0000)]
Merge "Fix : Address is wrong in GATT Callback" into tizen
Atul Rai [Fri, 18 May 2018 06:44:46 +0000 (12:14 +0530)]
Removed unnecessary compilation flags
Change-Id: I2af88a3f6bd6645857826c58eefee97d5dbb46b5
Signed-off-by: Atul Rai <a.rai@samsung.com>
Atul Rai [Fri, 18 May 2018 03:00:26 +0000 (08:30 +0530)]
[Mesh] Adapt meshctl for Tizen platform
Change-Id: I094dd7ecd8f41f9db79cead816b870de18e0330b
Signed-off-by: Atul Rai <a.rai@samsung.com>
injun.yang [Thu, 17 May 2018 09:33:56 +0000 (18:33 +0900)]
Fix : Address is wrong in GATT Callback
[Problem] Address is wrong in GATT read/write callback
[Cause & Measure] Bluez pass IDA instead of first RPA.
If rpa existed then pass it into GATT read/write callback.
[Checking Method] GATT read/write in server
Change-Id: Id26144ca307572ae9ff6839a033f986f21285cb9
Pyun DoHyun [Fri, 18 May 2018 03:01:11 +0000 (03:01 +0000)]
Merge "Import meshctl & bt-shell related apis and fixes" into tizen
Pyun DoHyun [Thu, 17 May 2018 23:54:50 +0000 (23:54 +0000)]
Merge "Fix Memory leak" into tizen
Pyun DoHyun [Thu, 17 May 2018 23:54:41 +0000 (23:54 +0000)]
Merge "Fix possible invalid memory access" into tizen
Nagaraj D R [Thu, 17 May 2018 15:03:36 +0000 (20:33 +0530)]
Fix possible invalid memory access
Uninitialized data is read from local variable 'addr'
Change-Id: Id8288428e93a8dda08d67a507fd97caf5fae080e
Nagaraj D R [Thu, 17 May 2018 14:28:03 +0000 (19:58 +0530)]
Fix Memory leak
Memory associated with 'adv_data' will be leaked in case of
'generate_scan_rsp' failure
Change-Id: I57fdaa060ecfbf59f03ca16e074ddce7a8e14c9d
Nagaraj D R [Thu, 17 May 2018 12:42:59 +0000 (18:12 +0530)]
Fix improper usage of g_free
g_free should be used for only those memory allocations
done through glib APIs
Change-Id: I5d5275574b0d273594f86786956d86355794db94
Nagaraj D R [Thu, 17 May 2018 10:50:05 +0000 (16:20 +0530)]
src/device.c : Fix BREDR-ATT MTU issue
For BREDR-ATT, according to spec, ATT MTU is same has
L2CAP configured MTU on which ATT is running and there won't be
ATT MTU exchange procedure. So, set the MTU to L2CAP MTU for
BREDR-ATT and for LE-ATT adjust the ATT MTU based on
EXCHANGE_MTU request and response.
Change-Id: Icd402edbfa7ddb82e808ebf695096b7a872ebc14
Nagaraj D R [Thu, 17 May 2018 12:13:23 +0000 (17:43 +0530)]
Fix bluetoothd crash issue
Bluetoothd crashes when any application invokes "Introspect"
dbus method call on device-interface hosted by any device object path.
Declaration of device_signals is corrected
call stack
0 0xb6bfc3ee in strlen () from /lib/libc.so.6
1 0xb6bc69e4 in vfprintf () from /lib/libc.so.6
2 0xb6c65db0 in __vasprintf_chk () from /lib/libc.so.6
3 0xb6dbe404 in g_vasprintf () from /lib/libglib-2.0.so.0
4 0xb6da5dac in g_string_append_vprintf () from /lib/libglib-2.0.so.0
5 0xb6da5e7c in g_string_append_printf () from /lib/libglib-2.0.so.0
6 0xb6efbe94 in print_arguments (gstr=gstr@entry=0xb7f521a0,
args=0xb6f221fc, direction=direction@entry=0x0) at gdbus/object.c:123
7 0xb6efc624 in generate_interface_xml (iface=<optimized out>,
gstr=0xb7f521a0) at gdbus/object.c:187
8 generate_introspection_xml (data=0xb7f538a0, data=0xb7f538a0,
path=0xb7f462e0 "/org/bluez/hci0/dev_E4_FA_ED_DF_2C_2D", conn=0xb7f40590)
at gdbus/object.c:236
9 introspect (connection=0xb7f40590, message=0xb7f44908,
user_data=0xb7f538a0) at gdbus/object.c:263
10 0xb6efd13a in process_message (connection=connection@entry=0xb7f40590,
message=message@entry=0xb7f44908,
iface_user_data=iface_user_data@entry=0xb7f538a0,
method=0xb6f42324 <introspect_methods>,
method=0xb6f42324 <introspect_methods>) at gdbus/object.c:282
11 0xb6efd3b8 in generic_message (connection=0xb7f40590, message=0xb7f44908,
user_data=<optimized out>) at gdbus/object.c:1106
Change-Id: I8bd5c0e575f23f29945df49bbc3a807d55829989
Atul Rai [Thu, 17 May 2018 11:48:04 +0000 (17:18 +0530)]
Import meshctl & bt-shell related apis and fixes
This patch imports the new meshctl and bt-shell apis and fixes from
open source bluez (https://git.kernel.org/pub/scm/bluetooth/bluez.git).
Change-Id: Iffa5b474c3246938f2b907eabd58c43a7e36c34a
Signed-off-by: Atul Rai <a.rai@samsung.com>
injun.yang [Wed, 16 May 2018 07:28:36 +0000 (16:28 +0900)]
Revert "Fix : GATT Client invokes the callback of send_op when att_send_op is canceled"
This reverts commit
f822b480166cd56c3ca8ef2b507ce242453ed582.
Upstream patch (22737d...) has been applied
to fix an issue which was resolved by Tizen patch.
So this patch reverts the related Tizen patch.
Change-Id: I64987117adbec00cd8299b72434eb132f5a1d59e
Signed-off-by: injun.yang <injun.yang@samsung.com>
Pyun DoHyun [Mon, 14 May 2018 06:39:31 +0000 (06:39 +0000)]
Merge "SIGSEGV, Segmentation fault in gatt indication confirm" into tizen
DoHyun Pyun [Mon, 14 May 2018 05:17:24 +0000 (14:17 +0900)]
Fix TCT fail issue on ARTIK530
If LE discoverying is not completed successly, we should remove
le_discovery_list explictly. Because stop_le_discovery_complete
function will be not called in this exception case.
Change-Id: I1fd812d451121b795105ced5a1723e3187e1d86e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Mon, 14 May 2018 03:58:31 +0000 (12:58 +0900)]
Add 'Requires' in extension-bredr and extension-le package
Change-Id: Ic8b6deb2446ed4a0e4b5232841ecf52aebc0b2be
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Wootak Jung [Tue, 8 May 2018 06:23:57 +0000 (15:23 +0900)]
Change file mode to 750 from 755
File mode need to be fixed to 750(user/group/other),
'other' should not access for this file.
Change-Id: Iab0dcf46d11d6f426c2fd38c94157890bcfc22d5
Wootak Jung [Fri, 4 May 2018 04:20:41 +0000 (13:20 +0900)]
Fix privilege violations
Need to check privilege for direct method call
Change-Id: Ic3bc8f74207cf46d56e8dab66ceb13b0cc86e6f4
Avichal Agarwal [Thu, 3 May 2018 12:40:48 +0000 (18:10 +0530)]
SIGSEGV, Segmentation fault in gatt indication confirm
Program received signal SIGSEGV, Segmentation fault.
0xf71fbcee in strlen () from /lib/libc.so.6
(gdb) bt
destroy=destroy@entry=0x0) at gdbus/client.c:909
Change-Id: Ib3dc7579970e80ff3f4fb808d0b42a869e819731
Wootak Jung [Tue, 17 Apr 2018 08:23:06 +0000 (17:23 +0900)]
Add default deny policy in conf files
Change-Id: I2cc23b5e6dfa06c52699e89a513dc378a18eb2a6
Pyun DoHyun [Tue, 10 Apr 2018 23:06:54 +0000 (23:06 +0000)]
Merge "Fix the coverity issue" into tizen
Hyuk Lee [Tue, 10 Apr 2018 06:40:08 +0000 (15:40 +0900)]
Fix the coverity issue
Change-Id: Iddc012db1b40444c7f47fa53267547dd9277d6c0
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
Hyuk Lee [Mon, 9 Apr 2018 06:32:05 +0000 (15:32 +0900)]
Remove the bluez service file
We changed the bluez's UID/GID to network_fw.
Daemon will be launched by bluez-start.service in bluetooth-tools.
Change-Id: I48b83b5647ac4665e90d08539aa54cba8593f7f4
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
Hyuk Lee [Wed, 28 Mar 2018 02:38:21 +0000 (11:38 +0900)]
Add the delay report property
Change-Id: I3abe8e8b71bb39027c2f0c29e326fc8acc3b6cdb
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
Amit Purwar [Wed, 4 Apr 2018 12:07:48 +0000 (17:37 +0530)]
Fix A2DP Sink device disconnect after pause and play
Change-Id: I35ced6cb1ef63f430c2120e3edc680e767929ea0
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Pyun DoHyun [Thu, 29 Mar 2018 05:07:20 +0000 (05:07 +0000)]
Merge "Enable check-TESTS using %check section in bluez" into tizen
Atul Rai [Wed, 28 Mar 2018 10:58:55 +0000 (16:28 +0530)]
Enable check-TESTS using %check section in bluez
This patch enables check-TESTS (unit test case execution) for bluez at
build time using %check section in bluez.spec. This patch,
- Modifies unit/test-gobex.c, unit/test-gatt.c, unit/test-hog.c and
unit/test-gattrib.c to handle Tizen specific changes in BlueZ.
- Disables crypto test cases (unit/test-crypto) as QEMU (v2.7.0) in
Tizen does not support AF_ALG socket option for cypher algorithms.
Change-Id: I5a49ac00a26fe5c1baf92b02915cf1bcfa30f68b
Signed-off-by: Atul Rai <a.rai@samsung.com>
Abhishek Chandra [Tue, 27 Mar 2018 09:32:51 +0000 (15:02 +0530)]
[BlueZ] BlueZ Upgrade changes missed for OOB(out of band)
merged to fix TCT failures.
Change-Id: I6c8e71823a8d3f7254318d3f7759c334b6eb9a4d
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
Hyuk Lee [Mon, 26 Mar 2018 01:40:57 +0000 (10:40 +0900)]
Add the bluetooth.service file to wearable profile
Change-Id: Ia04887e12d41ff49ef7dac3147df166f96e79efc
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
Avichal Agarwal [Thu, 22 Mar 2018 07:56:31 +0000 (13:26 +0530)]
Coverity Fix :CID 28838 :. leaked_storage: Variable uuid
going out of scope leaks the storage it points to
Change-Id: I948df8fae62bf440ac4d50a9a7cfa9cc95bdcec3
Pyun DoHyun [Tue, 20 Mar 2018 23:36:49 +0000 (23:36 +0000)]
Merge "Add lower bound check for manufacturer_data_len (Fix WGID: 311536)" into tizen
Atul Rai [Tue, 20 Mar 2018 10:17:05 +0000 (15:47 +0530)]
Add lower bound check for manufacturer_data_len (Fix WGID: 311536)
Change-Id: I2da413abe09c2ad1f3c98a9b69f561090ebcbfbc
Signed-off-by: Atul Rai <a.rai@samsung.com>
Hyuk Lee [Tue, 20 Mar 2018 04:58:21 +0000 (13:58 +0900)]
Fix the coverity issue
Change-Id: I984810e507f435e45108c0816d169e8447336716
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
Atul Rai [Wed, 14 Mar 2018 11:50:29 +0000 (17:20 +0530)]
Fixed removal of LE devices on stopping LE scan
Issue: LE connect fail with error "Device path not found".
Cause: Device flags are incorrectly updated to 0 on receiving
scan_response data. Later on stopping LE scan, the LE device
is considered non-connectable based on device flag which was
incorrectly updated to 0 during scan_response event and the
device is removed immediately. This causes LE connect to fail
with error "device path not found".
Solution: This patch fixes the issue by checking adv pkt type
before updating the device flag on device found event.
Change-Id: Id86b024dfc6c980780aef6cdda8e6dcc6b150b80
Signed-off-by: Atul Rai <a.rai@samsung.com>
Atul Rai [Wed, 14 Mar 2018 11:47:50 +0000 (17:17 +0530)]
Fixed "stop LE scan" fail issue
Change-Id: I86b977bbdc3b110eb21db025cf72ffe22f89aad9
Signed-off-by: Atul Rai <a.rai@samsung.com>
Atul Rai [Wed, 14 Mar 2018 11:45:09 +0000 (17:15 +0530)]
Fix bluetoothd crash on stopping device discovery
Change-Id: Ic95272adc88d83af0aa98e3f7290d9f3dd15dd86
Signed-off-by: Atul Rai <a.rai@samsung.com>
Anupam Roy [Mon, 19 Mar 2018 08:26:31 +0000 (13:56 +0530)]
[BlueZ upgrade 5.43 to 5.48] Patch 2/2
Change-Id: I26e0fde334c2eac84d3f19370cab6dfbed073d2f
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Anupam Roy [Mon, 19 Mar 2018 08:24:55 +0000 (13:54 +0530)]
[BlueZ upgrade 5.43 to 5.48] Patch 1/2
Change-Id: I8aaefc910e3840ce89648032ac1911fd23e764bc
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Atul Rai [Fri, 23 Feb 2018 07:22:15 +0000 (12:52 +0530)]
Fix A2DP reconnection issue
AVDTP session is not released even after session ref count reached 0 and
hence media audio (A2DP) reconnection failed. This patch fixes this issue
by releasing AVDTP sesson when session ref count reaches 0.
Issue reproduce Condition:
1/ Connection Call Audio & Media Audio
2/ Disconnect Media Audio
3/ Try to Reconnect media audio
Connection failed (Connection Timed Out).
Change-Id: I6210f2b9d01b91df10913a200d131d10aaad167d
Signed-off-by: Atul Rai <a.rai@samsung.com>
Hyuk Lee [Mon, 12 Feb 2018 01:10:01 +0000 (10:10 +0900)]
Modify the UID/GID to network_fw
Change-Id: Ie523965c1ef3fcc54c321dbccce3811ed6f2fa31
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
DoHyun Pyun [Wed, 24 Jan 2018 02:07:51 +0000 (11:07 +0900)]
Disable %check section
Change-Id: I95339a9d3d85e34f831f7e684d0f0c7972527beb
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Tue, 19 Dec 2017 04:57:34 +0000 (13:57 +0900)]
Fix the crash connected as AVRCP target role
Change-Id: I03b64d72243fdfdf4e7adb45fe5e7dc56dca8fea
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Tue, 19 Dec 2017 00:38:37 +0000 (09:38 +0900)]
Fix the crash issue in the a2dp select role function
Change-Id: I328a9e72358672ec1ade61e19ebd459568132785
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Mon, 18 Dec 2017 01:33:17 +0000 (10:33 +0900)]
Add AVRCP control volume up / down method
Change-Id: I5ea7237aaed1e27bd9e0b8e555177b6ec84f0dd1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Nagaraj D R [Thu, 7 Dec 2017 12:40:43 +0000 (18:10 +0530)]
Keep Tizen specific code under flag
bluez upgradation will be difficult if
tizen specific code is not under a flag
Change-Id: I6e6b16a5ad9a9829de5c8d54059d8168b343b289
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Seungyoun Ju [Thu, 7 Dec 2017 08:39:57 +0000 (17:39 +0900)]
Remove unnecessary logs
[Problem] There are unnecessary logs
[Cause & Measure] Remove the logs
[Checking Method] journalctrl -f | grep bluetooth
Change-Id: Ia0c392db29522c9fed0df505194fd10e73931b8b
Signed-off-by: Seungyoun Ju <sy39.ju@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Seungyoun Ju [Thu, 7 Dec 2017 08:18:38 +0000 (17:18 +0900)]
shared/gatt-client: Fix discovering included svcs using invalid range
[Problem] It discovers included services using invalid handle range 0 ~ 0.
It causes ATT error response and GATT connection is failed.
[Cause & Measure] When any service is removed over the previous connection,
pending_svcs queue is not empty because it is used to identify
disappeared services. So we need to check more if there are any services
to be discovered or not.
This patch checks the service range and if there is no service
to be discovered, stop the discovery.
[Checking Method] Connect to iOS -> Turn off and on iOS's Bluetooth
Change-Id: I312cba9a53c55ce266d98196e3ba81b236d885e9
Signed-off-by: Seungyoun Ju <sy39.ju@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Luiz Augusto von Dentz [Tue, 30 May 2017 11:40:56 +0000 (14:40 +0300)]
shared/gatt-client: Fix removing services with no attributes
This patch comes from below commit of upstream.
commit
d6c07ecf22ba60d6dd1b7302281eb32e1f278ca7
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: Tue May 30 14:40:56 2017 +0300
shared/gatt-client: Fix removing services with no attributes
If a service has no attributes, like IPSS, just mark it as active and
skip doing any attribute discover.
Change-Id: I08eac1787f95fd091470496764bf8cf9924c0520
Signed-off-by: Seungyoun Ju <sy39.ju@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Luiz Augusto von Dentz [Wed, 24 May 2017 10:22:01 +0000 (13:22 +0300)]
shared/gatt-client: Fix not removing services that had disappeared
[Problem] There are duplicated services in gatt client database.
[Cause & Measure] When GATT service discovery happens and there are no
services in the middle of discovery range, the services in that range
are not removed. This causes a local application recognize that the
services exist. But those are actually removed in remote side so
the local application malfunction happens.
[Checking Method] Connect device to iOS. It happens rarely but it makes
the issue happen with below procedures.
1. Connect two bluez devices via BLE
2. Make pair
3. Register any service in one side (A)
4. Disconnect BLE
5. Unregister the service and register it again on side A
6. Make a connection again
7. Check the side A's services on side B
This patch comes from below commit of upstream.
commit
6b34bdd967a639c2d219b5d83f0a20637c56e68e
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: Wed May 24 13:22:01 2017 +0300
If a service cannot be found in the middle of the database the current
logic don't clear its range leaving it still active which cause upper
layer to believe its attributes are still available.
In order to fix the code now loads existing services into the pending
list and remove the services left at the end of the discovery:
src/device.c:gatt_debug() Primary services found: 2
src/device.c:gatt_debug() start: 0x0001, end: 0x0005, uuid:
00001800-0000-1000-8000-
00805f9b34fb
src/device.c:gatt_debug() start: 0x0100, end: 0x0104, uuid:
0000180a-0000-1000-8000-
00805f9b34fb
src/device.c:gatt_debug() Secondary service discovery failed. ATT ECODE: 0x0a
src/device.c:gatt_debug() Characteristics found: 2
src/device.c:gatt_debug() start: 0x0101, end: 0x0102, value: 0x0102, props: 0x02, uuid:
00002a24-0000-1
src/device.c:gatt_debug() start: 0x0103, end: 0x0104, value: 0x0104, props: 0x02, uuid:
00002a29-0000-1
src/device.c:gatt_debug() service disappeared: start 0x0006 end 0x000a
src/device.c:gatt_service_removed() start: 0x0006, end: 0x000a
Change-Id: I8ef0b3c3feaadaa61d280f494532ab26ceecec2e
Signed-off-by: Seungyoun Ju <sy39.ju@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Andy Duan [Thu, 20 Jul 2017 13:14:59 +0000 (16:14 +0300)]
hciattach: fix the delay timer for bcm43xx firmware download
From the log in .bcm43xx_load_firmware():
/* Wait 50ms to let the firmware placed in download mode */
nanosleep(&tm_mode, NULL);
But timespec tm_mode is real is 50us. Correct the delayed timer count.
[lhs: Cherry-Picked from
git://git.kernel.org/pub/scm/bluetooth/bluez.git
commit
76255f732d68aef2b90d36d9c7be51a9e1739ce7]
Change-Id: I52dfa83c0f7e0cdf17fa24ade36fc88716f56b05
Signed-off-by: Hackseung Lee <lhs@dignsys.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
injun.yang [Mon, 20 Nov 2017 04:20:27 +0000 (13:20 +0900)]
Change the property of IAS characteristic
[Problem] Write property is not permitted on IAS
[Cause & Measure] Change the property as per IAS specification.
Write -> WriteWithoutResponse property
Change-Id: I22687ea06359035913de687a7f474be5f1a57125
Signed-off-by: Injun Yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Seungyoun Ju [Fri, 17 Nov 2017 02:24:46 +0000 (11:24 +0900)]
btmon : SDP continuation list is not reset after use
[Problem] After receiving attribute response which has continuation
part more than 7 times, btmon doesn't print the decoded result.
[Cause & Measure] After combining attributes response, cont_list[x].cont is not
reset.
Change-Id: If6087288d10e446e9491e62eb2dd3250822e4311
Signed-off-by: Seungyoun Ju <sy39.ju@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Seungyoun Ju [Tue, 14 Nov 2017 06:15:00 +0000 (15:15 +0900)]
Fix btmon crash
[Problem] btmon crash happens
[Cause & Measure] When SDP continuation is handled, other variable's
value is overwritten because invalid array index is used for memcpy's
src.
[Checking Method] Run btmon -> Connect Android phone to KITT ->
Terminate btmon. In this procedure, btmon crash happens randomly.
When issue happens, irk_list's value is corrupted by invalid memcpy.
This causes crash when it accesses to irk_list.
1: irk_list = (struct queue *) 0xb7cda0a0
(gdb)
499 memcpy(cont_list[i].cont, data + bytes, data[bytes] + 1);
1: irk_list = (struct queue *) 0xb7cda0a0
(gdb)
0xb6f5f1a8 in memcpy@plt ()
1: irk_list = (struct queue *) 0xb7cda0a0
(gdb)
Single stepping until exit from function memcpy@plt,
which has no line number information.
memcpy () at ../sysdeps/arm/memcpy.S:63
...
1: irk_list = (struct queue *) 0xb7000002
(gdb)
search_attr_rsp (frame=0xbeadd3f8, tid=0xb6fcd760 <tid_list>) at monitor/sdp.c:669
669 clear_tid(tid);
1: irk_list = (struct queue *) 0xb7000002
(gdb) p cont_list
$5 = {{channel = 0, cont = '\000' <repeats 16 times>, data = 0xb7cda3a0, size = 656}, {channel = 0, cont = '\000' <repeats 16 times>, data = 0x0, size = 0}, {channel = 0,
cont = '\000' <repeats 16 times>, data = 0x0, size = 0}, {channel = 0, cont = '\000' <repeats 16 times>, data = 0x0, size = 0}, {channel = 0, cont = '\000' <repeats 16 times>,
data = 0x0, size = 0}, {channel = 0, cont = '\000' <repeats 16 times>, data = 0x0, size = 0}, {channel = 0, cont = '\000' <repeats 16 times>, data = 0x0, size = 0}, {channel = 0,
cont = '\000' <repeats 16 times>, data = 0x0, size = 0}}
Change-Id: I3608d1b9cf14bbfc87d17fbad6a443bdcbdf87af
Signed-off-by: Seungyoun Ju <sy39.ju@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
injun.yang [Mon, 13 Nov 2017 07:03:30 +0000 (16:03 +0900)]
Fix : GATT connection event is not delivered to bt-frwk
[Model] All
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A
[Problem] After BLE connection established, GATT connection event
is not delivered to bt-frwk side.
[Cause & Measure] Before emit signal, AP move to sleep status.
Reduce timeout interval
[Checking Method] GATT connection
[Team] Basic Connection
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change
Change-Id: Ic3478333845ec0994a9424d40b8cfb9fd5fe0c1d
Signed-off-by: Injun Yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Deokhyun Kim [Tue, 7 Nov 2017 09:45:54 +0000 (18:45 +0900)]
Return already_connected msg when service is already connected
Change-Id: I754540f397b47d6c4e4e27f985d43d85a51b9e12
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Deokhyun Kim [Fri, 13 Oct 2017 05:35:45 +0000 (14:35 +0900)]
Remove Keyboard consumer page of HID.
- Some Windows PCs disconnect HID channel right after connected.
It assuems that some PCs can NOT parse consumer descriptor.
Change-Id: I79dc006d9cd663414970aa5bf4e61ef65af07479
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
injun.yang [Fri, 13 Oct 2017 00:24:41 +0000 (09:24 +0900)]
Set env PATH for security
Change-Id: I7bd64c78648615a70ef7e69c63abd23de1ef18fb
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: injun.yang <injun.yang@samsung.com>
Atul Rai [Mon, 25 Sep 2017 10:48:50 +0000 (16:18 +0530)]
Fix bluetoothd crash in discover_services_reply()
This patch fixes bluetoothd crash in discover_services_reply while
handling sdp browse results if results contains invalid utf8
charactors.
Crash call stack is given below for reference:
0 0xb6ab8094 in raise () from /lib/libc.so.6
1 0xb6ab93f0 in abort () from /lib/libc.so.6
2 0xb6d30250 in ?? () from /lib/libdbus-1.so.3
3 0xb6d29754 in _dbus_warn_check_failed () from /lib/libdbus-1.so.3
4 0xb6d1f8a4 in dbus_message_iter_append_basic () from /lib/libdbus-1.so.3
5 0xb6eccc60 in iter_append_record () at src/device.c:3285
6 discover_services_reply () at src/device.c:3338
7 0xb6ed303c in search_cb () at src/device.c:6657
8 browse_cb () at src/device.c:6695
9 0xb6eae54a in search_completed_cb () at src/sdp-client.c:205
10 0xb6edf77a in sdp_process () at lib/sdp.c:4354
...
Change-Id: Id11dff0f2304f7e3dc6cd645b3418382744b1759
Signed-off-by: Atul Rai <a.rai@samsung.com>