Ayush Garg [Sat, 23 Jan 2021 09:20:06 +0000 (14:50 +0530)]
Implement Long Write Operations for Tizen TV
In Tizen Platform, For long write operations, bluez handles
all the ATT_Prepare_Write_Req packets and sends the complete
data to the BT-Service when ATT_EXEC_WRITE_REQ is received.
Where as in Tizen TV, Bluedroid works in a different manner.
It sends every ATT_Prepare_Write_Req packet to bt-service using
OAL_EVENT_GATTS_REQUEST_WRITE event with flag is_prep=1 and thus,
allows upper layers to handle long write operation on its own.
This change will perform all the below operations(in case of bluedroid)
at bt-service level which bluez performs for GATT long write:
1. Appending all the Prepare_Write_Req data in a list and send
prepare_write_resp.
2. Passing the complete data to the capi when
OAL_EVENT_GATTS_EXEC_REQUEST_WRITE event comes.
Thus this change will help in maintaining uniformity at CAPI level
irrespective of Bluez or Bluedroid.
Change-Id: Iae005dc3643d54783dbd3ddd8c1dc70a1684be99
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
Pyun DoHyun [Mon, 25 Jan 2021 00:23:39 +0000 (00:23 +0000)]
Merge "GATT: Fix bug in GATT Send indication" into tizen
Anupam Roy [Fri, 22 Jan 2021 07:14:33 +0000 (12:44 +0530)]
GATT: Fix bug in GATT Send indication
Issue: When remote device address is NULL,
fd is searched in fd list and returned error if not found.
But, it is possible that, fd is not found because,
GATT characteristic attribute is not acquired by stack.
In such case, currently, GATT FRWK is wrongly missing to send
GATT indication to remote device.
Fix: Handle GATT send indication in following way
- If device address is valid unicast, send DBUS indication
- If device addres is NULL or "00:00:00:00:00:00"
a/ First, try to find fd for multicast over socket
b/ if fd not found, fallback to multicast over DBUS
Change-Id: Ib0e4b9d49ca3a6f3b75d8a691a1a01750152893b
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Wootak Jung [Thu, 14 Jan 2021 07:38:49 +0000 (16:38 +0900)]
Apply next HAL architecture
Add cap_sys_module capability to bt-core
Change-Id: I428e77e429c277d21d8ba41dc8f7e4ce7d477b8e
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Pyun DoHyun [Wed, 13 Jan 2021 04:27:59 +0000 (04:27 +0000)]
Merge "Revert "Fix svace issues"" into tizen
Wootak Jung [Wed, 13 Jan 2021 03:48:28 +0000 (12:48 +0900)]
Revert "Fix svace issues"
This reverts commit
e4ce93a114e464d34a1b59cba44848ecc54ae4da.
Change-Id: I4456ccd2a34e343cd543bb57a15cf4c4c49a6375
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
anuj.bhumiya [Tue, 12 Jan 2021 06:00:44 +0000 (11:30 +0530)]
Fix memory leak
Change-Id: If43686456767f74d95fc879b99551ef4a07957ae
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
Pyun DoHyun [Tue, 29 Dec 2020 21:26:57 +0000 (21:26 +0000)]
Merge "mesh: update interface registration return statements" into tizen
Pyun DoHyun [Tue, 29 Dec 2020 21:26:44 +0000 (21:26 +0000)]
Merge "mesh: get/set IV index" into tizen
Pyun DoHyun [Tue, 29 Dec 2020 21:26:26 +0000 (21:26 +0000)]
Merge "mesh: Add options to Send/DevKeySend" into tizen
Pyun DoHyun [Tue, 29 Dec 2020 21:26:17 +0000 (21:26 +0000)]
Merge "mesh: Add options to "Models" property" into tizen
Abhay Agarwal [Tue, 22 Dec 2020 10:44:35 +0000 (16:14 +0530)]
mesh: update interface registration return statements
Change-Id: Ic1798ce698a6a8b5e340fd9f46546c5d7299f592
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Sangki Park [Tue, 22 Dec 2020 10:55:11 +0000 (19:55 +0900)]
Display yes/no popup for RequestAuthorization request
[Model] Wearable
[BinType] AP
[Customer] ALL
[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A
[Problem] A pairing request is accepted on bluez automatically if
the I/O capability of peer device is No-Input-No-Output
[Cause & Measure] Security hole issue. To prevent, bt-frwk will launch
a bt-syspopup for user confirmation.
[Checking Method] receive a pairing request with No-Input-No-Output mode
[Team] Bluetooth
[Developer] Deokhyun Kim
[Solution company] Samsung
[Change Type] Specification change
Change-Id: I0d8609512bf6d8af9f0ddadcd397688c47502dc5
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Pyun DoHyun [Thu, 24 Dec 2020 01:29:25 +0000 (01:29 +0000)]
Merge "Audio: Handle Profile Connection in progress error" into tizen
Anupam Roy [Sun, 20 Dec 2020 17:01:39 +0000 (22:31 +0530)]
Audio: Handle Profile Connection in progress error
Currently, bt-service does not check
if connection request for same device is
already under progress. This allows queuing
up multiple same requests in pending request list.
At the time of replying DBUS context, only one
request is returned & other requests are not freed.
In this patch, BLUETOOTH_ERROR_IN_PROGRESS error
is returned if same profile connection request
is pending.
Change-Id: I1e8ea43d8dc06e73b928c099bab8efc992b4125d
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Abhay Agarwal [Mon, 21 Dec 2020 10:44:44 +0000 (16:14 +0530)]
mesh: get/set IV index
This adds keeping track of IV index changes.
The updates are detected by observing PropertiesChanged signal
on local node's object path and reading "IvIndex" property.
Change-Id: I96d26f4aa6ba9bf2355fd6039b8b87ffaa30baad
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Abhay Agarwal [Fri, 18 Dec 2020 10:36:06 +0000 (16:06 +0530)]
mesh: Add options to Send/DevKeySend
This adds a new dictionary paramenter (empty by default) when
invoking Send() and DevKeySend() methods.
Change-Id: I3366ef016140a8531bd2f1a8ceb6fe6d6a073719
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
anuj.bhumiya [Fri, 18 Dec 2020 06:55:04 +0000 (12:25 +0530)]
mesh: Add options to "Models" property
This adds options dictionary to "Models" property to stay
in sync with mesh-api changes.
Change-Id: Ie36b492c55e096330b8101795be5129e4c394733
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Wootak Jung [Fri, 18 Dec 2020 00:13:03 +0000 (09:13 +0900)]
Increases the number of gatt attributes
There is a conflict in att handle number
in case many characteristics are added like below
/com/1/service11/characteristic22/descriptor33
/com/1/service15/characteristic33
Change-Id: I30c79e9ca9588a6b65648797b9dee42b867cbd85
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Wootak Jung [Tue, 1 Dec 2020 23:57:38 +0000 (08:57 +0900)]
Fix svace issues
Change-Id: Iaa7584addb4a92bb6df9751005596489fc3ac314
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Wootak Jung [Fri, 27 Nov 2020 04:29:17 +0000 (13:29 +0900)]
Fix tds data check logic
length can be -1 if tds data is NULL
Change-Id: I8c601d24ef421cde142b99f7f8d21bfa8420f7f5
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
DoHyun Pyun [Tue, 17 Nov 2020 02:07:19 +0000 (11:07 +0900)]
Fix the issue on AppControl share (BT) operation
ug-bluetooth-efl did not have a permission to allow the dbus
method call to bt-share. This patchset adds the policy for it.
Change-Id: I7938e9d2dd6d0b374554e59d92705021beefc3a7
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Wootak Jung [Fri, 13 Nov 2020 02:55:25 +0000 (11:55 +0900)]
Modify TDS transport type enums
Change-Id: I6b30a330133b103c663af5f100d4f5e7c19b2526
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Wootak Jung [Fri, 13 Nov 2020 01:34:22 +0000 (10:34 +0900)]
Add common TDS method call function
Change-Id: I6b45814ec4cfcc3f6e10996616cab49603fc0809
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Wootak Jung [Thu, 12 Nov 2020 02:21:43 +0000 (11:21 +0900)]
Add TDS transport type
Change-Id: I597ec768551fc0a8d68462f27f988e3c9ec41589
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Wootak Jung [Thu, 12 Nov 2020 02:06:53 +0000 (11:06 +0900)]
Fix advertising interval value
Change-Id: Iccdcde94bf93b9689e41edbfa7a34114de470219
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Pyun DoHyun [Thu, 12 Nov 2020 01:44:14 +0000 (01:44 +0000)]
Merge "Implement TDS functionalities" into tizen
Wootak Jung [Fri, 30 Oct 2020 03:14:22 +0000 (12:14 +0900)]
Implement TDS functionalities
Change-Id: I5cb28e6ac1f43ae94a17c8fc0faf266c97b27b55
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Ayush Garg [Sat, 7 Nov 2020 06:44:42 +0000 (12:14 +0530)]
Take BLE Advertising Interval min & max parameters in 0.625ms unit
Till now, the Ble advertsing interval min and max values were taken in the ms unit.
According to specs, the actual time value can be in decimal (ex: 28.125ms) but such cases are not properly handled currently.
So these changes will allow to take input in 0.625ms units.
Change-Id: Ia052cdc456aae067a6a453eac0a3780b9c59e9fd
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
Ayush Garg [Thu, 29 Oct 2020 11:21:29 +0000 (16:51 +0530)]
Implement RSSI scan filter
Change-Id: I7a443de481083328dc691c252188092a5559871d
Signed-off-by: ayushgrg04 <ayush.garg@samsung.com>
DoHyun Pyun [Tue, 20 Oct 2020 02:39:49 +0000 (11:39 +0900)]
Fix LE discovery state miss-matching issue
Change-Id: I30300567d185d493f840217706f7011d9ebb72a2
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Pyun DoHyun [Wed, 14 Oct 2020 02:16:32 +0000 (02:16 +0000)]
Merge "Handle AVRCP control function as A2DP connect for TV stack" into tizen
Anupam Roy [Mon, 12 Oct 2020 06:12:59 +0000 (11:42 +0530)]
GATT: Refactor Sever Indication logic
This patch handles following:-
- Use socket for multicast indication
& fallback to DBUS for unicast indication.
- Send Remote Client address from HAL to FRWK
when indication is enabled by remote client.
Change-Id: Idacecd5a28afab1b22b9588f092ed75ea95d9070
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
DoHyun Pyun [Mon, 12 Oct 2020 07:36:56 +0000 (16:36 +0900)]
Handle AVRCP control function as A2DP connect for TV stack
VD stack does not implement AVRCP control connect API. And
it uses the automatic connection after connecting A2DP.
But AVRCP Control connect C# API is exposed. And we should
handle it by TCT. To PASS it, we replace the function into
service adaptation layer.
Change-Id: Ic81a5d0d595b14e9608bd75b5a7b5ef47c1b199d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Wootak Jung [Mon, 12 Oct 2020 02:46:52 +0000 (11:46 +0900)]
Modify Avrcp Control getting function privilege
Change-Id: I62cdb30e4a8f1a415a71b7835e9582e8ee319bb9
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Deokhyun Kim [Mon, 28 Sep 2020 05:06:38 +0000 (14:06 +0900)]
Set permanent log buffer size to 512 Bytes
Change-Id: I201477ac209e8ed118924e7280da864c6c973414
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Pyun DoHyun [Thu, 17 Sep 2020 07:35:19 +0000 (07:35 +0000)]
Merge "Enable advertising after gatt server is connected" into tizen
Pyun DoHyun [Thu, 17 Sep 2020 07:34:58 +0000 (07:34 +0000)]
Merge "Fix the coverity issues" into tizen
Abhay Agarwal [Thu, 17 Sep 2020 05:12:05 +0000 (10:42 +0530)]
Mesh: Fix coverity issues
Change-Id: I0f10756c1e4ee5c66da595df29976870eed561f0
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
DoHyun Pyun [Wed, 16 Sep 2020 23:05:45 +0000 (08:05 +0900)]
Fix the coverity issues
Change-Id: I1998c8489a074fbaab3d4e9e1aa567db3b3f4f3e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Amit Purwar [Tue, 15 Sep 2020 12:49:01 +0000 (18:19 +0530)]
Enable advertising after gatt server is connected
This enables advertising on gatt server after gatt server
is connecteed with the remote gatt client. Advertisement slot
is allocated from slot-1 when multi advertisement is supported.
Change-Id: Ie6a6aee5cb21d6abfe56cfb5049428a29cf06d79
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Pyun DoHyun [Mon, 14 Sep 2020 21:50:47 +0000 (21:50 +0000)]
Merge "Remove the obex unregister function" into tizen
DoHyun Pyun [Mon, 14 Sep 2020 07:51:59 +0000 (16:51 +0900)]
Remove the obex unregister function
The previous code removes the obex server agent, when the interface
is removed. But the obex agent should unregister called obex deinit
function.
Change-Id: Ice17b1be0f89b133d246b5c180d5b1469355625d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Wootak Jung [Mon, 14 Sep 2020 02:09:03 +0000 (11:09 +0900)]
Add shared connection unref logic
g_object_unref is required not only private conn but also shared conn
Change-Id: I504b3408158fc99aca36c4b9f08caed150949f48
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Pyun DoHyun [Sun, 13 Sep 2020 22:54:24 +0000 (22:54 +0000)]
Merge "Use shared connection instead of private connection" into tizen
Pyun DoHyun [Sun, 13 Sep 2020 22:21:26 +0000 (22:21 +0000)]
Merge "Mesh: Add generic mesh messages opcodes" into tizen
Pyun DoHyun [Sun, 13 Sep 2020 22:21:22 +0000 (22:21 +0000)]
Merge "Mesh: Remove duplicate code" into tizen
Pyun DoHyun [Sun, 13 Sep 2020 22:21:19 +0000 (22:21 +0000)]
Merge "Mesh: Disallow group deletion if it is in use" into tizen
Pyun DoHyun [Sun, 13 Sep 2020 22:21:16 +0000 (22:21 +0000)]
Merge "Mesh: Maintain group subscription list in cdb" into tizen
Abhay Agarwal [Sat, 12 Sep 2020 08:00:21 +0000 (13:30 +0530)]
Mesh: Add generic mesh messages opcodes
This patch adds support for mesh generic mesh messages.
Change-Id: Id28df7b6782e5c6b8ce912945d937f98fee1d3ae
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Abhay Agarwal [Thu, 10 Sep 2020 12:50:24 +0000 (18:20 +0530)]
Mesh: Remove duplicate code
This patch
- Removes duplicate code
- Fix coding style issues
Change-Id: I21a7b70dd74dadd882dae170fab3f64e66fd26d5
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Abhay Agarwal [Thu, 10 Sep 2020 11:06:31 +0000 (16:36 +0530)]
Mesh: Disallow group deletion if it is in use
Change-Id: I4ec8a71dd53371a3d57a066af91d13d6d77dcc69
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Wootak Jung [Thu, 10 Sep 2020 06:18:17 +0000 (15:18 +0900)]
Fix dbus timeout issue
Remove deprecated recover logic
Change-Id: I2d737b7049effa9772a2d0ef36fe0d17ea3501e6
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Wootak Jung [Tue, 8 Sep 2020 23:24:26 +0000 (08:24 +0900)]
Use shared connection instead of private connection
private connection is not recommended except specific usecase
Change-Id: Iab62eb16860014fc99a99ea29416313ec89efef3
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Abhay Agarwal [Wed, 2 Sep 2020 04:40:37 +0000 (10:10 +0530)]
Mesh: Maintain group subscription list in cdb
This patch updates the cdb when subscription status is received
on request of sub add, delete, delete all and sub overwrite.
Change-Id: I5b1d9b2748173ec70c971c0a64f63b073d602390
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
DoHyun Pyun [Sun, 6 Sep 2020 23:46:02 +0000 (08:46 +0900)]
Handle no appearance data type (0x19) in adv data
Change-Id: I51659c64f66a449d2135f1414bce7b18e890fef0
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Amit Purwar [Tue, 1 Sep 2020 06:12:01 +0000 (11:42 +0530)]
Allows value of Appearance advertisement data as 0x00
Change-Id: Idfa18fc7777aedae7a8c9afdf8caa39555e4c132
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Abhay Agarwal [Tue, 1 Sep 2020 05:33:52 +0000 (11:03 +0530)]
Mesh: Fix model message execution
Change-Id: I5ed5de49eb724357cbc3d2ccbedceaa7bfbeebac
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Amit Purwar [Mon, 31 Aug 2020 09:04:13 +0000 (14:34 +0530)]
Add the log in set advertisement data
Change-Id: I94ed82eaff293091e41f9128e0dda6e34a23b91c
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
DoHyun Pyun [Thu, 27 Aug 2020 23:13:07 +0000 (08:13 +0900)]
Fix 64bit build error
Change-Id: I2c9f95dd6015826e5db41981d3644aa58f1096c2
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Pyun DoHyun [Thu, 27 Aug 2020 21:42:43 +0000 (21:42 +0000)]
Merge "Mesh: Enable simultaneous LE scan operations" into tizen
Abhay Agarwal [Thu, 20 Aug 2020 07:35:01 +0000 (13:05 +0530)]
Mesh: Enable simultaneous LE scan operations
Mesh operations over PB-ADV requires continous LE scan on HCI.
When using HCI RAW channel for mesh operations, LE scan
should not be disabled for their continous execution.
This patch modifies to allow such simulataneous LE scan operations
on bluetoothd and meshd.
Change-Id: I6f1825d3a48536269fa1b520fd2171b7283f60b4
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Wootak Jung [Thu, 27 Aug 2020 05:04:59 +0000 (14:04 +0900)]
Fix gatt disconnected event occured twice issue
gatt server start > gatt connected > gatt disconnected from client
> two disconnected event occured
Remove client info if existing even if remote client disconnected
Change-Id: I969ecb97c4ae4c1597cb72538cf8fe476652f59f
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Pyun DoHyun [Thu, 27 Aug 2020 04:56:05 +0000 (04:56 +0000)]
Merge "Mesh: Save vendor & model info post net create" into tizen
Anupam Roy [Wed, 26 Aug 2020 17:24:12 +0000 (22:54 +0530)]
Mesh: Save vendor & model info post net create
This patch handles following:-
Vendor & model info of local config client
node was not saved to Configuration database
after network is created which caused Network
Load operation to fail due to missing Vendor
& Model Info.
With this patch, all vendor & model info are now
saved to CDB. Dduring Network Load, all data are
fetched from Conf DB and node data is prepared,
which is eventually used to attach to the Network.
Change-Id: Id2d59a6d8bebb32a9a251781b3c0cab494daea1f
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Abhay Agarwal [Wed, 26 Aug 2020 09:24:26 +0000 (14:54 +0530)]
Mesh: Handle meshd init failure
Change-Id: I69802928eb8c03591039d3166ade05c03211811e
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Pyun DoHyun [Tue, 25 Aug 2020 22:01:46 +0000 (22:01 +0000)]
Merge "Fix: GATT connect Failure if Adv. enabled on slot 0" into tizen
Abhay Agarwal [Tue, 25 Aug 2020 12:52:26 +0000 (18:22 +0530)]
Mesh: Handle timeout for missing request
This patch handles
- Fix reset scan and provision states on app deinit.
- Fix group message response processing
- Handles timeout for publication get/set
- Handles timeout for model appkey bind/unbind.
Change-Id: I6a4425f39f6db3697d6f610bf614129dfa7e0e33
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
himanshu [Mon, 24 Aug 2020 17:11:05 +0000 (22:41 +0530)]
Fix: GATT connect Failure if Adv. enabled on slot 0
This patch fix the issue of gatt connect call,
failure if advertising is running on slot 0.
If advertising is running on slot 0, the kernel
proceeds to initiate connection as a slave
in form of directed advertising.
The advertising should be hold and reinitiated
in such case.
Change-Id: Id7ba7df82aaabc25da0250b63ebaede5d33a0b96
Signed-off-by: himanshu <h.himanshu@samsung.com>
Pyun DoHyun [Mon, 24 Aug 2020 22:28:42 +0000 (22:28 +0000)]
Merge "Mesh: Remove Timer before destroying app object" into tizen
Pyun DoHyun [Mon, 24 Aug 2020 22:28:26 +0000 (22:28 +0000)]
Merge "Mesh: Handle mesh application termination event" into tizen
Pyun DoHyun [Mon, 24 Aug 2020 22:27:19 +0000 (22:27 +0000)]
Merge "FRWK: Allows multiple service data in LE advertising" into tizen
Pyun DoHyun [Mon, 24 Aug 2020 22:26:38 +0000 (22:26 +0000)]
Merge "Mesh: Handle network proxy added event" into tizen
Anupam [Mon, 24 Aug 2020 16:35:49 +0000 (22:05 +0530)]
Mesh: Remove Timer before destroying app object
Change-Id: I4bf2b2b9a29fe43408147537a439299f81bd250e
Signed-off-by: Anupam <anupam.r@samsung.com>
Anupam Roy [Fri, 21 Aug 2020 04:32:52 +0000 (04:32 +0000)]
Mesh: Handle mesh application termination event
This patch handles following
- Keeps track of Mesh Apps Init & Deinit requests
- Handle App termination event & cleanup of resouces
upon termination
- Reset HAL global DBUS resources on mesh stack
deinitializaiotn (network proxy & agent message)
Change-Id: I4c7bc7287492f945131b6a7bb586fafe43aae064
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Abhay Agarwal [Mon, 24 Aug 2020 04:56:22 +0000 (10:26 +0530)]
Mesh: Handle network proxy added event
This patch delays to handle the MESH INIT pending request
till the network proxy added callback is received.
This resolves the issue in which network proxy relates MESH API
calls from application like network creation can fail due to
non-availability of network proxy.
Change-Id: Iee712b76a9cd96b5cb8c903b2c12ce0a692f81e6
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Amit Purwar [Mon, 24 Aug 2020 04:40:45 +0000 (10:10 +0530)]
FRWK: Allows multiple service data in LE advertising
Change-Id: I138df1b79a53ca63edcf0fb987ea126c454769de
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
Deokhyun Kim [Mon, 6 Jul 2020 05:03:24 +0000 (14:03 +0900)]
Check enabled before sending rfcomm details
[Model] Noblesse
[BinType] AP
[Customer] OPEN
[Issue#] P200703-06045
[Request] PLM
[Occurrence Version] R840XXU1BTG1
[Problem] Recovery fails after TX timeout
[Cause & Measure]
[Checking Method]
[Team] Bluetooth
[Developer] Deokhyun Kim
[Solution company] Samsung
[Change Type] Specification change
Change-Id: I163da5c056dd2baa3339dd20c0439c88694d6be9
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Deokhyun Kim [Fri, 21 Aug 2020 04:03:29 +0000 (13:03 +0900)]
Remove abnormal logic for ARTIK530 Success is returned even though stop_scan fails. It can cause dbus timeout.
Change-Id: I477be2638453de37cfbf2cc894a66c5db10d6a3b
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Deokhyun Kim [Tue, 28 Jul 2020 05:05:25 +0000 (14:05 +0900)]
Restart BLE scan even if it's not stopped intentionally.
In case gatt is connected by local api or remote request,
BLE scan is stopped unexpectedly & does not update it to api layer.
BLE scan should be restarted internally, in case of unexpected stop.
Change-Id: I8d7de20f37faacdfdebb16c87a6691fcb5af30a8
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
injun.yang [Mon, 10 Aug 2020 01:51:27 +0000 (10:51 +0900)]
Update LE connection interval after GATT connection completed
[Model] All
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A
[Problem] Connection interval 7.5ms maintained
[Cause & Measure] After GATT connection completed, update interval
[Checking Method] gatt connection
[Team] Convergence BT
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change
Change-Id: Ia48fe3ac6290018631117e322d100d5d194e4cc3
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Deokhyun Kim [Mon, 6 Jul 2020 06:40:56 +0000 (15:40 +0900)]
Handle error value of hid agent
Change-Id: If227159bde4292304583995417996c5af7b9f406
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Pyun DoHyun [Fri, 21 Aug 2020 04:32:52 +0000 (04:32 +0000)]
Merge "Fix the svace issue (DEREF_OF_NULL)" into tizen
Deokhyun Kim [Thu, 30 Jul 2020 07:56:46 +0000 (16:56 +0900)]
Fix mem leak
Change-Id: If133d1f4816cfcf0aad49f887a940bbdd1d318aa
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
DoHyun Pyun [Thu, 20 Aug 2020 23:45:33 +0000 (08:45 +0900)]
Fix the svace issue (DEREF_OF_NULL)
Change-Id: Id9d1f17f169c6e290a3f6d346adadd7733205f5b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Anupam Roy [Thu, 20 Aug 2020 15:55:01 +0000 (21:25 +0530)]
Mesh: Release Network DBUS resources during deinit
When application wants to deinitialize mesh,
Network resources of that application shall be
released by stack. Currently, those resouces
are not released. Also, HAL retains the dynamic
resouces of the Networks, which should be cleaned.
This patch requests release of resources
by calling 'Release' API of stack, which
is introduced in Tizen. When dbus resouces
are cleaned, HAL will automatically release dynamic
resources of networks, upon removal of proxies.
After release, at any point of time, application
can again initialize mesh and 'Attach' the Networks,
that it had created before, with the help of
token, which was aquired during network creation.
Change-Id: I617110d10fdb6d9eaa711f77dcd5a92e6b93a55f
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Anupam Roy [Wed, 19 Aug 2020 15:33:01 +0000 (21:03 +0530)]
Mesh: Handle Multi-application init & deinit logic
This patch handles following:-
- Introduces Network Unload API. This API
will be used by application to unload
all network resources from bt-service.
During mesh application deinit, FRWK
library will call Network Unload to cleanup
resources from service layer. CDB will remain
unaffected due to this.
- Implements init/deinit logic for multiple apps.
bt-service keeps reference count of applications.
mesh stack launch/unlaunch is done single time
based on app reference count logic. Don't allow
to stop mesh stack service, if atleast one app
is using mesh service.
Change-Id: I705c9c4d462036a657184dbdbb131c77af83b3a3
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Deokhyun Kim [Fri, 3 Jul 2020 06:17:44 +0000 (15:17 +0900)]
G_IO_HUP should be checked before G_IO_IN
Change-Id: Id9a4ca2bd1fa59160723b831c97687df36db2d39
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Pyun DoHyun [Thu, 20 Aug 2020 01:33:49 +0000 (01:33 +0000)]
Merge "Add busy return logic when connecting timer is existing" into tizen
Anupam Roy [Wed, 19 Aug 2020 05:40:19 +0000 (11:10 +0530)]
Mesh: Reset launch timer ID upon expiry
This patch resets timer ID, upon timer expiry.
If timer ID is not expired, other application
gets timed out on MESH INIT request, as status
remains in progress.
This patch also handles, stack initialization done
error in FRWK. Already done should be treated as
success.
Change-Id: Ic334498ccfbeca18c7c18efceffd1a03129f9241
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Abhay Agarwal [Tue, 18 Aug 2020 04:39:51 +0000 (10:09 +0530)]
Mesh: Fix crash in node reset
This patch fix crash due to g_free of node information in
delete node setup.
This patch also removes the lauch timer during deinit of mesh.
Change-Id: I29e3406b57fd06042fcdfb88c43ef047422ddbb6
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
Anupam Roy [Mon, 17 Aug 2020 17:29:21 +0000 (22:59 +0530)]
Mesh: Fix bug in fetching node vendor info
This patch handles following:
- Use Node's unicast address to search node in CDB.
Network UUID was wrongly used to search node in CDB,
as only local node's UUID will match with Network UUID,
rest of the nodes(provisioned) can be identified by
only their unique device UUID's. Therefore, unicast
address is the unique identifier of a node within
a network.
- NULL check was missing for node json entry before
returning not found result.
- Added few DEBUG prints.
Change-Id: I5374b21768355197e696b1ad5d12ac5d1bf143aa
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Abhay Agarwal [Mon, 10 Aug 2020 13:07:25 +0000 (18:37 +0530)]
Mesh: Fix network proxy issue
This patch fix an issue of proxy added callback not being called
for network interface due to simultaeneous operations to register
proxy callback and to launch bluetooth-meshd.
Change-Id: Ibab370d9200ba3563e09f5396c4e0e3434a532ed
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
anuj.bhumiya [Fri, 14 Aug 2020 06:34:45 +0000 (12:04 +0530)]
Mesh:Fix Svace issue in bluetooth-frwk
Change-Id: Iaa8072390d470a77bda655af99565f2eed774511
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
Wootak Jung [Fri, 14 Aug 2020 05:04:29 +0000 (14:04 +0900)]
Add busy return logic when connecting timer is existing
Change-Id: I0c27ef5e18688220793fa0549380ebb9623bc3b0
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Anupam Roy [Thu, 13 Aug 2020 10:23:08 +0000 (15:53 +0530)]
Mesh: Add Node Reset API in FRWK
Change-Id: I70a34fc3601861d383fb9c7a82028ce2ac45811b
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Anupam Roy [Thu, 13 Aug 2020 10:10:08 +0000 (15:40 +0530)]
Mesh: Add support for Node Reset in OAL & HAL
This patch adds HAL & OAL API's for remote
node reset functionality.
Change-Id: I6805c62e1edd1c3c1e9f1ec6c302df796a114986
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
DoHyun Pyun [Wed, 12 Aug 2020 05:37:18 +0000 (14:37 +0900)]
Reduce the predefined logic (PredefinedPreprocessor)
Change-Id: Idc1db93b8ab86ca21fd8b2a1f5d324646e057f0b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Pyun DoHyun [Wed, 12 Aug 2020 04:16:04 +0000 (04:16 +0000)]
Merge "Fix SAM tool violations (GlobalVariable)" into tizen
Deokhyun Kim [Mon, 10 Aug 2020 07:57:01 +0000 (16:57 +0900)]
Fix cleanup logic regarding notify fd
Change-Id: I577cd0305e529d0dc259e4d38603ee3db5c2f08d
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>