Deokhyun Kim [Wed, 12 Jul 2017 09:42:55 +0000 (18:42 +0900)]
Fix mem leak.
[Model] COMMON
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A
[Problem] Fix mem leak.
[Cause & Measure]
[Checking Method]
[Team] Basic connection
[Developer] Deokhyun Kim
[Solution company] Samsung
[Change Type] Specification change
Change-Id: I9493a35fb86f4b54c52a10eec9bbeb36ff24b886
Pyun DoHyun [Fri, 21 Jul 2017 01:31:51 +0000 (01:31 +0000)]
Merge "tds: unsigned variable check less than zero" into tizen_3.0
Pyun DoHyun [Fri, 21 Jul 2017 01:31:35 +0000 (01:31 +0000)]
Merge "Audio connect issue if 2 Headset already connected" into tizen_3.0
Deokhyun Kim [Thu, 20 Jul 2017 05:00:38 +0000 (14:00 +0900)]
NOT terminate bt-service when recovery timer exists.
bt-service is terminated before recovery callback is invoked even though
recovery timer exists. If recovery timer exists, then bt-service is NOT
terminated and wait for recovery callback.
Change-Id: I3f02398b32f2b7c8fd39f3167dbce43c29561241
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Syam Sidhardhan [Wed, 19 Jul 2017 08:53:54 +0000 (14:23 +0530)]
tds: unsigned variable check less than zero
Sonarqube reported issue, unsigned int value was checked for less
than zero.
Change-Id: Icdfbb631c0f02a05bd275dc18a04f3a3b610708e
Biman Paul [Wed, 19 Jul 2017 06:43:14 +0000 (12:13 +0530)]
Audio connect issue if 2 Headset already connected
Unable to connect to 3rd headset if already connected to 2 headsets
(with one over HFP and other over A2DP)
Global variable which contains the connection request is getting freed
So free the global data when none of device is connected.
Change-Id: Ie01c72e0560183477a3f06455a765153f2f085ad
Deokhyun Kim [Wed, 19 Jul 2017 08:10:03 +0000 (17:10 +0900)]
Fix mem leak.
Change-Id: Idfe461d060344ddd333307ef34a10c12030a6e28
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Deokhyun Kim [Wed, 19 Jul 2017 07:58:20 +0000 (16:58 +0900)]
Support GET_IDLE/SET_IDLE of HID Device.
Change-Id: I46054bd72531533fc9e2609cf484023ab34dab62
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Deokhyun Kim [Wed, 19 Jul 2017 07:55:16 +0000 (16:55 +0900)]
HID Device APIs return NOT_ENABLED error even if BT is disabled.
Change-Id: I9ee955168b7e5788a6b06c8ffb29b3cbc744c480
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Anurag Biradar [Wed, 19 Jul 2017 05:07:21 +0000 (10:37 +0530)]
[bt-service] Fix SVACE issue
WID 1698763 address is passed to a function after deallocating
WID 1708383 Double free of address variable
Don't free in error case, anyway it will be freed in dbus_return
goto label
Change-Id: Ieee9c498013ee31b06011288e5e803c91111edc3
Anurag Biradar [Wed, 19 Jul 2017 04:58:38 +0000 (10:28 +0530)]
bt-service: Disable BT if bluetoothd is terminated
Not able to turn On BT from quick panel
When bluetoothd is terminated and bt-service state is activated then
bt-service is trying to do recover adapter and bt-service changed
state to ACTIVATING and it remain in that state itself.
When bluetoothd is crashed or killed than disable BT completely
instead of recovering the adapter.
Change-Id: Ie25ee80cdf1f89746c3fde18ce2fa9e4c4a54151
Anurag Biradar [Wed, 19 Jul 2017 04:43:41 +0000 (10:13 +0530)]
bt-service: Bluetooth is Turn ON on every boot
Once BT_OFF_DUE_TO_TIMEOUT vconf is set it will never unset the vconf. So, on
each boot or bt-service launch bt is enabled even though BT was not enabled in
previous session
Before enabling BT during launch of bt-service, unset this vconf it is set
Change-Id: I34bebcca8ceeae21c9c972bef21371925b29ffba
Anurag Biradar [Wed, 19 Jul 2017 04:33:04 +0000 (10:03 +0530)]
[bt-core] Fix FactoryTestMode method call
bluetooth-testmode Application is not getting method reply for FactoryTestMode
methode call
bt-core was terminating itself before replying dbus method call
Change-Id: Ife0aabda0e4ecc9040b30271f8397b9d2749a919
Measure: terminate bt-core after replying to dbus method call
Anurag Biradar [Wed, 19 Jul 2017 04:10:50 +0000 (09:40 +0530)]
[bt-audio] Fix dbus method reply for audio connect
Application is showing as Connecting and never came back to
Disconnected or Connected state(Application didn't got dbus
reply for audio connect method call)
We were overwriting the global data which stores request id to which
we need to reply. Because of which bt-service will not able to reply
to dbus request. For Ex. Already Headset A is connected, Applications
sends connection request for Headset B, than bt-service initiates
disconnection for Headset A and Stores Headset B in global wait data.
And When Headset A's HFP profile is connected, Application sends
connection request for Headset C, than bt-service initiates disconnection
for Headset B and overwrite the global wait data with that of Headset C.
Measure: Before checking if any device is connected or not check first
if any device is in connecting state with type. If any device is in
connecting state than return IN_PROGRESS error no need to handle.
Change-Id: I1e721f2e2660274ecef2c3cf551377572e557b3b
Anurag Biradar [Fri, 14 Jul 2017 06:37:47 +0000 (12:07 +0530)]
[httpproxy] Fix invalid memory write
[Problem] Invalid memory write when WriteValue follows offset of 10
and than update value from offset 6 with len of 2.
Consider first set char value is called by offset 10 and value length 2.
API Allocates memory of size (10+2) 12 bytes and when set char value is
called again with offset value of 6 and value length of 2.
API reallocates memory of size (6+2) 8 bytes. After allocating it
copies earlier 12 bytes but new allocated one is only of 8 bytes which
leads to memory corruption.
Measure: reallocate only when current value length can't hold requested
offset + value_length
Change-Id: I17eac3e5df5125894a0c74304e7328a85972c865
Deokhyun Kim [Wed, 5 Jul 2017 02:04:31 +0000 (11:04 +0900)]
Fix SVace issue.
Change-Id: Ib3a04fa87032780368655d08abbc1a58ea8b8faf
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Pyun DoHyun [Tue, 11 Jul 2017 00:08:36 +0000 (00:08 +0000)]
Merge "Allow to use reserved slot for non-wearable devices." into tizen_3.0
Pyun DoHyun [Tue, 11 Jul 2017 00:08:28 +0000 (00:08 +0000)]
Merge "Fix SVace issue." into tizen_3.0
Deokhyun Kim [Tue, 4 Jul 2017 01:52:44 +0000 (10:52 +0900)]
Allow to use reserved slot for non-wearable devices.
Change-Id: Ibe4d17d98d7626505ed646f485815a810bcb7440
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Seungyoun Ju [Thu, 22 Jun 2017 06:21:01 +0000 (15:21 +0900)]
Refactoring GATT client service changed logic
[Problem] N/A
[Cause & Measure]
. Add helper function to convert address
. Reduce an indentation
. Fix memory leak
[Checking Method] Code review
Change-Id: I2be2c3c202c542b20b2f89614aa02b1f3fe7e731
Seungyoun Ju [Thu, 22 Jun 2017 04:35:17 +0000 (13:35 +0900)]
Use proper type for g_dbus_connection_signal_subscribe()
[Problem] g_dbus_connection_signal_subscribe() returns unsigned int for id.
So -1 could be valid id. But it is used to check unsubscribing state.
[Cause & Measure] Change variable type for subscription id to unsigned
int and 0 is used to check unsubscribing state.
[Checking Method] Code review
Change-Id: Iaa6b50ceb93d0e6c02d276440e2dad80504b0471
Seungyoun Ju [Wed, 21 Jun 2017 06:25:59 +0000 (15:25 +0900)]
Fix : LE Connect d-bus method is not returned
[Problem] While advertising is going on, if le connection is initiated
to the device which doesn't have proxy (it means that the device neither
be discovered once nor be paired), d-bus timeout happens in caller side.
[Cause & Measure] When le connection API is called in timer callback,
there is no logic to reply to previous d-bus method call. This patch
adds the logic to return the result in such a case.
[Checking Method] Try to connect to unknown LE device during advertising
Change-Id: Icbeba665eb749b84bc6bb35deeff09747c4a007a
Seungyoun Ju [Wed, 21 Jun 2017 05:52:29 +0000 (14:52 +0900)]
Don't unregister hold advertising information
[Problem] Restarted advertising triggered by LE connection request
doesn't have the information about sender and handle. It causes some
malfunctions (e.g. Connect LE to out-of-range LE device twice. The
second one is requested as Directed Advertising (Slave role request))
[Cause & Measure] Advertising information is flushed once it is stopped
by LE connection request. So even though it is restarted by hold
advertising logic, there is no sender / advertising handle information.
It causes the next time hold advertising failed.
This patch doesn't unregister hold state advertising slot. Because it
will be used again after timer is expired. Or, once timer is cancelled,
it will be unregistered properly.
[Checking Method] Connect LE to out-of-range LE device twice
Change-Id: Ia287da58204348f7deb06117654956bc2948f4e1
Seungyoun Ju [Wed, 24 May 2017 12:42:31 +0000 (21:42 +0900)]
GATT Client : Fix subscription state mis-matched
[Problem] When BLE is not paired and StartNotify is called via
bluetooth_gatt_watch_characteristics(), pairing procedure is started.
We use 5 seconds dbus timeout in that API. So during pairing,
bluetooth_gatt_watch_characteristics() call is failed.
But after pairing is done, bluez starts notify procedure.
So that, subscription is done but application side doesn't know it
and callback is not set.
[Cause & Measure] Too short timeout is used. ATT transaction timeout is
30 seconds. If it is over, ATT connection will be dropped. So until
that, this API shall not be returned. If application needs to be
returned immediately, it should ensure that both devices are paired
before bluetooth_gatt_watch_characteristics() is called.
[Checking Method] Try to pair using
bluetooth_gatt_watch_characteristics() -> Accept pairing request after
5 seconds.
Change-Id: I3d34f85d0e45cb08039dad843190091e2eeeecc8
Deokhyun Kim [Thu, 29 Jun 2017 01:25:31 +0000 (10:25 +0900)]
Fix SVace issue.
Change-Id: I3fd4d6557e4a1cfde753685f2df3375c07db52a4
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Deokhyun Kim [Wed, 28 Jun 2017 07:17:39 +0000 (16:17 +0900)]
Retry enabling adapter 3 times even if it timed out on booting time.
Change-Id: I25906a618cd15fd9013b2da3f1e5f36c5ff883d1
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Seungyoun Ju [Tue, 20 Jun 2017 12:06:59 +0000 (21:06 +0900)]
Fix : Null deference issue
[Problem] If remote device is not connected but _bt_le_conn_update is
called, crash happens.
[Cause & Measure] There is no connected device info. But it is
deferenced. This patch checks NULL for connected device info.
[Checking Method] Try to update LE connection parameter to non-connected
BLE device
Change-Id: Id4fe04ff17392585ec544bcd4f22e33ad5906820
Deokhyun Kim [Wed, 21 Jun 2017 06:27:45 +0000 (15:27 +0900)]
Check whether dbus name is acquired normally.
bt-service is terminated before dbus method is called,
because dbus own_name is too delayed when system is busy.
Change-Id: Ifee0c6dd6aebfa385d1cd2b81c67753cfe28b891
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Injun Yang [Mon, 12 Jun 2017 06:07:02 +0000 (15:07 +0900)]
Handling le connection interval
[Model] All
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A
[Problem] Whenever several application set the le connection interval,
it overwirted and affect on throughput
[Cause & Measure] Manage all demand and keep the minimum interval
[Checking Method] Set le connection interval
[Team] Basic Connection
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change
Change-Id: I1d0ed717741e29fc776c05ba357fdab1799bde3a
Injun Yang [Mon, 12 Jun 2017 04:00:48 +0000 (13:00 +0900)]
Fix the svace issue
[Model] All
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A
[Problem] svace issue
[Cause & Measure] fix the code
[Checking Method] svace tool
[Team] Basic Connection
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change
Change-Id: I00babc2548a4100b0cb6fd72a9b0b783a7612a67
Deokhyun Kim [Mon, 22 May 2017 04:21:50 +0000 (13:21 +0900)]
Recovery logic optimization.
- bt-service controls recovery logic
- bt-service tries recovery up to 3 times
- bt-core does NOT wait for hci InterfaceRemoved event
Change-Id: Id2ee182bc877f100cc5c7b8b84d2d86eac9573cb
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
Injun Yang [Mon, 15 May 2017 02:15:27 +0000 (11:15 +0900)]
Redundant code optimization for GattService event
[Model] All
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A
[Problem] When below interface removed, check the unnecessary condition
org.bluez.GattDescriptor1
org.bluez.GattCharacteristic1
[Cause & Measure] When Characteristic or Descriptor is removed,
checking watcher list is not required.
Just check it for org.bluez.GattService1 interface
[Checking Method] Connection with iOS GM
[Team] Basic Connection
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change
Change-Id: Id587ffe489526c75cdfd9192c721a03a3eebcd9d
DoHyun Pyun [Fri, 28 Apr 2017 03:57:12 +0000 (12:57 +0900)]
Fix the build error for gatt client
Change-Id: Ie62ddc6d077ef07d8e5ce712e1f20ab703c6e040
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Seungyoun Ju [Thu, 20 Apr 2017 12:36:37 +0000 (21:36 +0900)]
Fix : Simultaneous GATT client requests are failed
[Model] COMMON
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A
[Problem] Actually read / write request for each other characteritsics and
descriptors should be allowed. But current implementation doesn't consider
that. So in progress error comes in that situation.
[Cause & Measure] There was only one callback for GATT client request.
So once it is used by other request, new ones are failed until old one
is completed.
This patch makes each request's callback data be passed to dbus.
So, once remote device's response comes and dbus call is returned,
each callback data will be passed to above layer.
[Checking Method] Request GATT operation as client role using several
characteristics and descriptors before one of them is responded.
[Team] Basic connection
[Developer] Seungyoun Ju
[Solution company] Samsung
[Change Type] Specification change
Change-Id: I74eee1ad62df648fe36e805d06570327e5f2c1f8
Seungyoun Ju [Tue, 11 Apr 2017 09:20:17 +0000 (18:20 +0900)]
Disconnect service connection using object path
[Model] COMMON
[BinType] AP
[Customer] OPEN
[Issue#] P170328-03204
[Request] PLM
[Occurrence Version] R360XXE1CQC1
[Problem] RFCOMM socket is not disconnected when
bt_socket_disconnect_rfcomm() is called.
[Cause & Measure] Bluez finds the service connection only using profile
uuid. So when there are two service connections which have same uuid,
wrong one could be selected. In order to select intended one, object
path is required. New method call is added to Bluez to get object path
for RFCOMM socket connection and this patch uses that method call.
[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: Ia139b43ff5d1bfc95af84256c6fea750e3eae817
DoHyun Pyun [Mon, 17 Apr 2017 08:37:21 +0000 (17:37 +0900)]
Change sscanf to strtol function for the secure coding
Change-Id: I665ed7d9ea04b9d861ac5d919eefe987925cf09f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Mon, 3 Apr 2017 00:03:04 +0000 (09:03 +0900)]
Fix svace issue (168145)
Change-Id: I65108912c5672e74c5e913d88052ce3fe0a8d817
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Thu, 30 Mar 2017 08:26:32 +0000 (17:26 +0900)]
Disallow BT headset pairing for DPM mode
Change-Id: I0e759fb6ba1e51ababe368f0b20a7f2dab9d4178
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Wed, 29 Mar 2017 00:22:45 +0000 (09:22 +0900)]
Fix svace issues (183482, 185309)
Change-Id: I4656772ec2347fe5d866530b5df60763ad9ac72d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Sangki Park [Mon, 27 Mar 2017 08:43:11 +0000 (17:43 +0900)]
Remove adapter_proxy unreference
This unnecessary unreference causes the following error log.
> g_dbus_proxy_get_object_path: assertion 'G_IS_DBUS_PROXY (proxy)' failed
The adapter_proxy is a common resource and must be maintained.
Change-Id: I873f657dd31d8795d536d51d8e7519332914cc90
Signed-off-by: Sangki Park <sangki79.park@samsung.com>
DoHyun Pyun [Mon, 27 Mar 2017 06:11:01 +0000 (15:11 +0900)]
Install the license file into the target
Change-Id: I922245bb045c54af8fd2783f71ca72e623ba8a50
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Mon, 27 Mar 2017 01:32:45 +0000 (10:32 +0900)]
Fix svace issues (183569, 183570, ...)
Change-Id: I3ad973688aca2fb1620d63b08d4d0bd457eb1f00
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Lee Hyuk [Fri, 17 Mar 2017 06:00:37 +0000 (15:00 +0900)]
Fix the TBT fail issue (bonding callback called twice)
Change-Id: Ib08c45c4231feea5f507825bbd9bd54ee0864922
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
Seungyoun Ju [Wed, 8 Mar 2017 07:59:11 +0000 (16:59 +0900)]
Change log directory's owner
[Model] COMMON
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A
[Problem] BT hcidump is not gathered
[Cause & Measure] Directory owner is set as invalid user. So bt-hci-logdump.sh
cannot acesss it
[Checking Method] *#9900#
[Team] Basic connection
[Developer] Seungyoun Ju
[Solution company] Samsung
[Change Type] Specification change
Change-Id: Ibe4519fa1521965e3358b1ba24f39cc952893241
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Seungyoun Ju [Fri, 28 Oct 2016 11:13:40 +0000 (20:13 +0900)]
Change log directory's owner
[Model] COMMON
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A
[Problem] BT hcidump is not gathered
[Cause & Measure] Directory owner is set as root. So bt-hci-logdump.sh
cannot acesss it
[Checking Method] *#9900#
[Team] Basic connection
[Developer] Seungyoun Ju
[Solution company] Samsung
[Change Type] Specification change
Change-Id: I9101359e3e8d123cd3ea4d8967aa4f29c22f7479
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Injun Yang [Mon, 6 Mar 2017 05:59:50 +0000 (14:59 +0900)]
Deinitialize adv slot and scanner
- When application request BLE scanning, IN_PROGRESS error returned
- After recover bluetooth, adv slot and scanner is not initialized.
Change-Id: I97dff857079661ac89a62e4c1f4f94714194d9d5
Signed-off-by: Deokhyun Kim <dukan.kim@samsung.com>
DoHyun Pyun [Mon, 6 Mar 2017 04:05:53 +0000 (13:05 +0900)]
Revert "Reduce dbus timeout"
This reverts commit
b77502f481485d060a9595c60cf78db1b98eccf9.
Change-Id: Iad7f7ba66e31ffefa9bba5f12828f90919d05b53
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Mon, 6 Mar 2017 04:04:59 +0000 (13:04 +0900)]
Revert "Modify the dbus timeout value for TM1 GATT server"
This reverts commit
750b7a063dc8d90b24f5cffdfb8a3651de6b3866.
Change-Id: Ia02ecfafbf3bdbedd2969ca797b4d5fa42ea2f4b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Thu, 2 Mar 2017 05:27:03 +0000 (14:27 +0900)]
Modify the dbus timeout value for TM1 GATT server
Change-Id: I47c64e00ef4cc7cf92cfe368e7bd43de68e814e2
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Atul Rai [Thu, 16 Feb 2017 06:40:35 +0000 (12:10 +0530)]
Fix SVACE issues in bluetooth-frwk
SVACE Id: 174996, 174997, 175001, 175403, 175404, 175405, 175408.
Change-Id: I9585ca2777edd2caa8e626cb64834088d5304e82
Signed-off-by: Atul Rai <a.rai@samsung.com>
Atul Rai [Thu, 9 Feb 2017 04:41:09 +0000 (10:11 +0530)]
Fix SVACE issues(Id: 11323, 11324, 169036, 171525, 171526)
Change-Id: Ic10a120b3519c4f849c56ae6745d22ff09a2ddcf
Signed-off-by: Atul Rai <a.rai@samsung.com>
Lee Hyuk [Wed, 25 Jan 2017 08:16:28 +0000 (17:16 +0900)]
Fix the memory leak in bt-core
Change-Id: I24b30732c54705ca14967cc4a55f8d425929998c
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
Injun Yang [Tue, 24 Jan 2017 04:11:13 +0000 (13:11 +0900)]
Reduce dbus timeout
Change-Id: Ia6985fd80495b6bbb26d4b53a685e41faeae9b4d
Signed-off-by: Injun Yang <injun.yang@samsung.com>
Injun Yang [Tue, 24 Jan 2017 04:02:07 +0000 (13:02 +0900)]
Enhnace debug messsage
Change-Id: Ide1f5d210f2eed3af9b10821168d8c93c34d16d5
Signed-off-by: Injun Yang <injun.yang@samsung.com>
Injun Yang [Tue, 24 Jan 2017 02:42:28 +0000 (11:42 +0900)]
Enhance debug message
Change-Id: I771e8ff026fcbd91d863a327ba443ac298968a95
Signed-off-by: Injun Yang <injun.yang@samsung.com>
Lee Hyuk [Mon, 23 Jan 2017 02:33:00 +0000 (11:33 +0900)]
Remove the bt-ipsp daemon
Change-Id: Ie7da124e489c7c692f20dbc050861f9a8f1a4115
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
Pyun DoHyun [Tue, 17 Jan 2017 08:24:12 +0000 (00:24 -0800)]
Merge "Invoke MTU changed callback" into tizen_3.0
Injun Yang [Tue, 17 Jan 2017 08:21:06 +0000 (17:21 +0900)]
Invoke MTU changed callback
[Model] All
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] Internal
[Occurence Version] N/A
[Problem] When remote device request mtu exchange,
mtu changed callback is not invoked on responder
[Cause & Measure] Invoke mtu changed callback
[Checking Method] Request mtu exchange on remote device
[Team] Basic Connection
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change
Change-Id: Ie7c8574adef6a215cc839dd5c2de88d7db9ea314
Signed-off-by: Injun Yang <injun.yang@samsung.com>
Anupam Roy [Mon, 16 Jan 2017 10:25:16 +0000 (15:55 +0530)]
[TDS] Implement TDS Seeker role
This patch implements the Seeker role of
TDS Connection handover profile. Following
requests and events are handled in this patch.
1/ Read complete TDS transport specific blocks
from GATT database of remote TDS provider
2/ Enable CCCD (client characteristic configuration)
parameters in Remote TDS provider.
3/ Activate TDS Control Point in Remote TDS provider.
This will attempt to activate alternate transport
4/ Send following events to bt-api
a/ CCCD Enabled
b/ Activation Response
c/ Activation Indication
Change-Id: I7edbfccfc2b9b7688d27c545248cb49b753c4dd4
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Atul Rai [Thu, 29 Dec 2016 09:40:06 +0000 (15:10 +0530)]
Added Transport Discovery Service Provider Role
This patch adds implementation for Transport Discovery Service
provider role. APIs and events to fulfill TDS provider functionality
are given below.
APIs:
1/ Register/Unregister TDS provider
2/ Create/Destroy a transport provider
3/ Set Transport block data
4/ TDS control point activation response
Events:
1/ TDS control point activation request
Change-Id: Ie6fe5ec1f24075db7bdf761efba74d7d18efd5fa
Signed-off-by: Atul Rai <a.rai@samsung.com>
Gowtham Anandha Babu [Thu, 29 Dec 2016 12:54:30 +0000 (18:24 +0530)]
[Audio] Add mutiple HFP/A2DP support
Rightnow two headsets are establishing call-audio connection.
But media-audio is happening for one of the headsets, because
pulse-audio is registering only one SEP.
Change-Id: I4c538b550b39ae9a13fcd60357974efd7f5d374a
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
Lee Hyuk [Tue, 3 Jan 2017 05:22:35 +0000 (14:22 +0900)]
Add the IPSP daemon and Set Ipv6 Address
Change-Id: Ife805c4e804235750d3948545175905df156474d
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
Anupam Roy [Tue, 3 Jan 2017 08:00:27 +0000 (13:30 +0530)]
GATT client: Fix service change watcher set and unset logic
Change-Id: Idf5a859b615e983e5acca065cd210aea8ed114b7
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Łukasz Stelmach [Thu, 12 Jan 2017 10:42:12 +0000 (11:42 +0100)]
Change service description to avoid confusion
Change the Description filed in the service files to avoid confiusion
with the service provided by platform/upstream/bluetooth.
Change-Id: I3fc10dbd7629ad46b921a8d12e699f90f2b98f56
Injun Yang [Tue, 10 Jan 2017 05:51:21 +0000 (14:51 +0900)]
Fix the typo and add service information
Change-Id: I4fc7675ac83cf421b687e2b52bf1792f4812849e
Signed-off-by: Injun Yang <injun.yang@samsung.com>
DoHyun Pyun [Tue, 10 Jan 2017 04:11:37 +0000 (13:11 +0900)]
Fix the coding style error
Change-Id: I2915111b23bfc3427e63bd27b96c831ac5eed892
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Injun Yang [Mon, 9 Jan 2017 07:03:13 +0000 (16:03 +0900)]
Enhance debug message
Change-Id: I01f434fc671d21c20dff27bac5a2fa1e14c07508
Signed-off-by: Injun Yang <injun.yang@samsung.com>
Lee Hyuk [Tue, 3 Jan 2017 08:47:42 +0000 (17:47 +0900)]
Modify the paired uuid count
Change-Id: I896a92bf800581a0f0584eaddbb955f5c0416a36
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
h.sandeep [Fri, 16 Dec 2016 08:25:09 +0000 (13:55 +0530)]
DPM: Fix DPM GCC6 warning errors.
Change-Id: I828af56f6cfa873af2caaeddb17333db8cd85df9
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
DoHyun Pyun [Wed, 28 Dec 2016 00:14:56 +0000 (09:14 +0900)]
Set the BT device vconf value when HID device is connected / disconnected
Change-Id: Ic784d7c03d72819b3ea2a22bd4fad97d8ed95986
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Pyun DoHyun [Tue, 27 Dec 2016 06:04:37 +0000 (22:04 -0800)]
Merge "Unregister obex-server and media-player" into tizen_3.0
Nagaraj D R [Thu, 15 Dec 2016 10:47:55 +0000 (16:17 +0530)]
Unregister obex-server and media-player
In case of recovery adapter, flightmode, and UPS
media player and obex-server are not unregistered.
This might lead to problmes if bt-service is kept alive.
Change-Id: Ib5e299572ae528facfaf62db4f2959c4acd83f69
Nagaraj D R [Tue, 6 Dec 2016 11:16:56 +0000 (16:46 +0530)]
Fix usage of "ENABLE_TIZEN_2_4"
If "ENABLE_TIZEN_2_4" is not defined, only then UPS
related changes in bt-core should be included.
Change-Id: I2cf4a8999253b95f4dcdb0997e9ab5d53a472f9a
Nagaraj D R [Tue, 27 Dec 2016 05:05:50 +0000 (10:35 +0530)]
Fix "Permission Denied" error for bluez service functions
For few of the bluez service functions, application
is receiving "Permission Denied" error even though it has
required privilege. This is because these service
functions are not added in privilege check routine
Change-Id: Ib3ac40988cd58e188fdcc1746dfa786272b7ac25
Pyun DoHyun [Mon, 26 Dec 2016 09:34:19 +0000 (01:34 -0800)]
Merge "Modify the AVRCP meta data duration type" into tizen_3.0
DoHyun Pyun [Mon, 26 Dec 2016 05:00:08 +0000 (14:00 +0900)]
Revert "DPM: Fix DPM GCC6 warning errors."
This reverts commit
69a889b2872947fc8034b4dd787eb1a210d9a2b0.
Fix the next build error in tizen_3.0
178s] [ 88%] Building C object bt-service/CMakeFiles/bt-service.dir/bt-service-dpm.c.o
[ 179s] /home/abuild/rpmbuild/BUILD/bluetooth-frwk-0.2.156/bt-service/bt-service-dpm.c:35:2: error: excess elements in union initializer [-Werror]
[ 179s] [DPM_POLICY_ALLOW_BLUETOOTH] = { {DPM_BT_ERROR, NULL} },
[ 179s] ^
[ 179s] /home/abuild/rpmbuild/BUILD/bluetooth-frwk-0.2.156/bt-service/bt-service-dpm.c:35:2: error: (near initialization for 'policy_table[0].<anonymous>') [-Werror]
[ 179s] /home/abuild/rpmbuild/BUILD/bluetooth-frwk-0.2.156/bt-service/bt-service-dpm.c:36:2: error: excess elements in union initializer [-Werror]
[ 179s] [DPM_POLICY_BLUETOOTH_DEVICE_RESTRICTION] = { {DPM_STATUS_ERROR, NULL} },
Change-Id: I549af70370af09ace903822e17f993b47bc98c9c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Lee Hyuk [Fri, 23 Dec 2016 06:53:35 +0000 (15:53 +0900)]
Modify the AVRCP meta data duration type
Change-Id: I6918400e9c95bba52903fda92a0a77c60828b1c2
Signed-off-by: Lee Hyuk <hyuk0512.lee@samsung.com>
DoHyun Pyun [Mon, 26 Dec 2016 01:08:54 +0000 (10:08 +0900)]
Fix the svace issue
Change-Id: I1fb7464f2e3fa84ced612d62da7a13c568afc786
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Injun Yang [Fri, 23 Dec 2016 03:48:29 +0000 (12:48 +0900)]
Code cleanup
[Model] All
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] Internal
[Occurence Version] N/A
[Problem] N/A
[Cause & Measure] Remove unused code
[Checking Method] N/A
[Team] Basic Connection
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change
Change-Id: I65dce5534cbac0d8642473d3ca01b137c68b7c7d
Signed-off-by: Injun Yang <injun.yang@samsung.com>
Injun Yang [Tue, 20 Dec 2016 09:34:15 +0000 (18:34 +0900)]
Add HCI error reason
Change-Id: I8f2ea88e609e547e2d4bf526b5431defcbfb17ee
Signed-off-by: Injun Yang <injun.yang@samsung.com>
h.sandeep [Fri, 16 Dec 2016 08:25:09 +0000 (13:55 +0530)]
DPM: Fix DPM GCC6 warning errors.
Change-Id: I152f2a1a11757ef180655e27d063510a47847fd5
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
Pyun DoHyun [Mon, 12 Dec 2016 07:07:20 +0000 (23:07 -0800)]
Merge "Send LE scan result to requester only" into tizen_3.0
Injun Yang [Mon, 12 Dec 2016 01:49:26 +0000 (10:49 +0900)]
Send LE scan result to requester only
Change-Id: I62f69dc111e568217775da9ab7a153293304f8c9
Signed-off-by: Injun Yang <injun.yang@samsung.com>
Syam Sidhardhan [Fri, 9 Dec 2016 11:38:33 +0000 (17:08 +0530)]
Fix progress percentage on DUT while waiting for remote authorization
Soon after TransferStarted event, TransferProgress event
has been send with value. Due to this, if we transfer a small file (100KB),
while waiting for remote authorization, the file progress on DUT shows
some percentage (> 0 depending on file size).
Change-Id: I5ebf9293e78d2701bb47da127f9f68eb7ba2eb90
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
DoHyun Pyun [Fri, 9 Dec 2016 05:10:05 +0000 (14:10 +0900)]
Fix TCT fail issue for the obex server
Change-Id: I398c44efba5b6dcb43d641fdb406ab3ab79c9b4b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Fri, 9 Dec 2016 02:07:56 +0000 (11:07 +0900)]
Add the arch64 build flag for the emulator64 arch
Change-Id: I42506ec29060281cebf007094b11e7e48aa1c112
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Thu, 8 Dec 2016 05:00:55 +0000 (14:00 +0900)]
Add -Werror option in the bt-service folder
Change-Id: Icb690ecc5b848a374bdf9950ad28449c47606c55
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Piotr Dabrowski [Thu, 8 Dec 2016 08:42:59 +0000 (09:42 +0100)]
Warnings fixed for BT MAP
Change-Id: Idb9eecc02ceba2a46ab1067a0309466655d13440
Seungyoun Ju [Wed, 7 Dec 2016 08:38:49 +0000 (17:38 +0900)]
Remove unnecessary check
[Model] COMMON
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A
[Problem] g_malloc always returns proper memory location. If it is not
available, abort will happenes. So its return value doesn't need to
check.
[Cause & Measure] g_malloc's return value was checked.
[Checking Method] Code review
[Team] Basic connection
[Developer] Seungyoun Ju
[Solution company] Samsung
[Change Type] Specification change
Change-Id: I97cb2ba2011fa20a908007ce4dcd5350ea6d0c6f
DoHyun Pyun [Thu, 8 Dec 2016 05:46:53 +0000 (14:46 +0900)]
Remove the map client code into the emulator
Change-Id: Ie8a1a245a615fea010d803a6c711ed35e32ade4f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Thu, 8 Dec 2016 04:50:44 +0000 (13:50 +0900)]
Fix the svace issues for MAP functions
Change-Id: I007b2ff32429334901f284d43082dae6e009ea86
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Thu, 8 Dec 2016 04:47:24 +0000 (13:47 +0900)]
Check the privelege for MAP APIs as the platform level
Change-Id: I0bef92ac56fa75833be6fca134d49fbfb40106e9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Thu, 8 Dec 2016 04:46:44 +0000 (13:46 +0900)]
Fix the coding style errors
Change-Id: Iaadf5045dbfa5e9c2d77d4b58afcbf62a75a7ecd
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
DoHyun Pyun [Thu, 8 Dec 2016 00:55:17 +0000 (09:55 +0900)]
Enable the previlege check for public release
Change-Id: Ie65f47308f4efd7dd9fd8d0abaa0e177c999a2c7
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Piotr Dabrowski [Fri, 18 Nov 2016 08:58:48 +0000 (09:58 +0100)]
[bluetooth-frwk] pushMessage
Change-Id: I47f99f194f1992cf8c6ef7127dd48c6bfd5e9fbc
Piotr Dabrowski [Fri, 11 Nov 2016 10:25:45 +0000 (11:25 +0100)]
[bluetooth-frwk] bt_map_client_message_object_h
Change-Id: I12eccc5b3f2bda2e39d9bf5f45c70aa2d6f309c4
Piotr Dabrowski [Thu, 17 Nov 2016 13:45:05 +0000 (14:45 +0100)]
[bluetooth-frwk] listFolders filter, refactor, removed GVariant, cleanup
Change-Id: Ifcd1cf3311f1f64b78c92de4bf366f9515e39073
Piotr Kosko [Wed, 9 Nov 2016 07:01:50 +0000 (08:01 +0100)]
[bluetooth-frwk] added getMessage implementation
Change-Id: Iedb4fc0d4bd721a496112c1aed36ae79ef0093f4
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
Piotr Dabrowski [Wed, 9 Nov 2016 15:39:46 +0000 (16:39 +0100)]
[bluetooth-frwk] listMessages
Change-Id: Ibc633c9c9e930da5cc296917d7821d0f2294971a
Lukasz Bardeli [Fri, 4 Nov 2016 13:32:56 +0000 (14:32 +0100)]
[bluetooth-frwk] fix in listFolders and listFilterFields
Change-Id: I4ef2f1416dd94dd5e390c69f15116e354c5c70cf
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>