OSDN Git Service
Sumit Bajpai [Thu, 17 Nov 2016 06:58:16 +0000 (12:28 +0530)]
A2DP: ACK A2dp success to HAL from AV started state.
In a corner case, when A2dp success was acked to HAL from
opened state, HAL used to call queued up suspend request even
before AV state can be moved to started. Since suspend was
received in opened state, it was acked back immediately and
UIPC socket close operations were triggered from HAL. However,
media task was preparing to read over UIPC socket. This race
condition caused socket-read operation to go on forever.
Change-Id: I8833d57f1a50b260cb35f0bf490aee83b074af68
zhenchao [Thu, 10 Nov 2016 07:12:06 +0000 (15:12 +0800)]
Bluetooth: Removes bond when user clicks on cancel pairing
When user clicks on cancel pairing in the pairing
dialog pop up, the pairing done for that remote
device in the stack layer is removed.
Change-Id: Ibb004e19f1c768e92475c4ff041431f28061491b
CRs-Fixed:
1088224
Linux Build Service Account [Tue, 8 Nov 2016 14:11:14 +0000 (06:11 -0800)]
Merge "Remove the stale entry of the APTx thread."
Linux Build Service Account [Tue, 8 Nov 2016 14:11:14 +0000 (06:11 -0800)]
Merge "Don't send avdtp_discover for incoming connections after setconfig_rsp."
Satheesh Kumar Pallemoni [Tue, 18 Oct 2016 14:20:17 +0000 (19:50 +0530)]
Remove the stale entry of the APTx thread.
To remove the stale entry of the APTx thread
and exercise cleanup on actual APTx thread.
CRs-Fixed:
1079216
Change-Id: I228c8e23c38797335cf1cded726fb9a746121880
Sumit Bajpai [Mon, 24 Oct 2016 18:37:10 +0000 (00:07 +0530)]
Don't send avdtp_discover for incoming connections after setconfig_rsp.
For incoming connections, when remote configures a sep in setconfig
request, DUT tries to discover remote seps after setconfig response.
This is not required since remote has already configured a sep.
DUT only needs to send getcapabilites for remote's sep.
The above mentioned logic was present for SBC codec and is now
extended for all codec types.
Change-Id: Id1300d96fa72ddf8a9cd19a4a7f86fa9a563ccde
Luke Zhang [Fri, 6 Nov 2015 02:23:07 +0000 (18:23 -0800)]
Fix the command timeout issue with either LPM or TX idle timer
We can fix it by either starting the idle timer after sending out
each command to prevent power collapse, or by just enabling LPM
mode. We added a new persitent property to select these different
approaches
CRs-fixed:926763
Change-Id: I98e649fa40a4622e3c6bce4ea5c53d51e25413b3
Linux Build Service Account [Sat, 15 Oct 2016 15:10:12 +0000 (09:10 -0600)]
Promotion of bt.lnx.2.1-00021.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
962977 Ib9f34e767d1fbd1dc108c98903d3242bbc9e049b Fix the crash while parsing command complete event
1076455 I7f611e654b5c7319a3279264aa66e63de628e5c5 Bluetooth: KW issues fixed
Change-Id: I823145d46cf33d519519bc40b5e75fc7538b4623
CRs-Fixed:
1076455, 962977
Linux Build Service Account [Fri, 14 Oct 2016 17:31:34 +0000 (10:31 -0700)]
Merge "Bluetooth: KW issues fixed" into bt.lnx.2.1-dev
Linux Build Service Account [Fri, 14 Oct 2016 17:31:34 +0000 (10:31 -0700)]
Merge "Fix the crash while parsing command complete event" into bt.lnx.2.1-dev
Umesh Vats [Tue, 11 Oct 2016 17:44:50 +0000 (10:44 -0700)]
Bluetooth: KW issues fixed
KW issues encountered in system/bt audio related files fixed
Change-Id: I7f611e654b5c7319a3279264aa66e63de628e5c5
CRs-Fixed:
1076455
Linux Build Service Account [Tue, 11 Oct 2016 17:24:36 +0000 (11:24 -0600)]
Promotion of bt.lnx.2.1-00020.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1072515 I5b827679a6095b54b616aa7e62ce9e3207cbfc21 OPP UI progress bar not in sync with data transfer
1074993 Idef2997f2deb7aa4627f7f93c7432795c6c447a4 Revert "Bluetooth:Enable backtrace for malloc and free"
1073828 I24c4df141507c02ff1a85486ca78da4e75ed5e5f Hogp Multiple instance of hid service support
Change-Id: I7441bc348cfb98ae4c1f2320e04ee4555957081b
CRs-Fixed:
1072515,
1074993,
1073828
Linux Build Service Account [Tue, 11 Oct 2016 12:12:07 +0000 (05:12 -0700)]
Merge "Revert "Bluetooth:Enable backtrace for malloc and free"" into bt.lnx.2.1-dev
Satish kumar sugasi [Thu, 28 Jul 2016 22:07:33 +0000 (15:07 -0700)]
Hogp Multiple instance of hid service support
This add changes for hogp Certification to do multiple
hid service discovery of same device, add scpp service
support to properly handle scan interval and scan
window characteristics.
Change-Id: I24c4df141507c02ff1a85486ca78da4e75ed5e5f
Luke Zhang [Sat, 23 Jan 2016 02:26:21 +0000 (18:26 -0800)]
Fix the crash while parsing command complete event
When BT enable times out, SSR is triggered and userial port is closed.
But after that when start up times out, we get a null response command
complete packet, so we should check against null before parsing it.
Also we should clean up input uart stream.
Change-Id: Ib9f34e767d1fbd1dc108c98903d3242bbc9e049b
CRs-fixed:962977
Linux Build Service Account [Fri, 7 Oct 2016 18:51:26 +0000 (11:51 -0700)]
Merge "OPP UI progress bar not in sync with data transfer" into bt.lnx.2.1-dev
Linux Build Service Account [Fri, 7 Oct 2016 01:30:57 +0000 (18:30 -0700)]
Promotion of bt.lnx.2.1-00019.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1062322 I493450eaf8fff6360469a33416cf8bb468eca8eb Update SDP CCB's continuation information in case of ser
Change-Id: I65cab2fce210e72fa8513910887c10c7f48c7484
CRs-Fixed:
1062322
Matadeen Mishra [Wed, 5 Oct 2016 13:11:12 +0000 (06:11 -0700)]
Revert "Bluetooth:Enable backtrace for malloc and free"
This reverts commit
394643c4404ee6dce8a21082eea144e4d25b0d57
Change-Id: Idef2997f2deb7aa4627f7f93c7432795c6c447a4
CRs-Fixed:
1074993
Linux Build Service Account [Wed, 5 Oct 2016 15:38:33 +0000 (08:38 -0700)]
Merge "Update SDP CCB's continuation information in case of server DB deletion" into bt.lnx.2.1-dev
Venkata Jagadeesh Garaga [Mon, 12 Sep 2016 14:43:28 +0000 (20:13 +0530)]
OPP UI progress bar not in sync with data transfer
Reduce the buffer quota per each channel to 10
so that UI and stack data transfer rate will be
in sync
Otherwise all packets will be stocked at stack and
application side tranfer rate looks faster
Revert "GAP: Handle JV sys busy/idle properly in OPP TX/RX"
This reverts commit
151f1f65eec8afc81ceec0110cde6f305a0c1ab8
Change-Id: I5b827679a6095b54b616aa7e62ce9e3207cbfc21
CRs-Fixed:
1072515
Linux Build Service Account [Mon, 3 Oct 2016 18:14:07 +0000 (12:14 -0600)]
Promotion of bt.lnx.2.1-00018.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1066335 Ic96205b5c304acb44eab53f4e2cb150726643bda BT: Serialize stack shutdown, state change callback and
1063890 I9afb5fec10a23725126e472c84b573dcdeacbfe0 BT: Calling HCI reset when Hardware error event occurs
1066796 I29bb6ae17dc5a83459cc5cd4c8cfc6ae59bb4504 GAP : PIN popup shown for dead legacy remotes
1070434 Ib4e8494270cea976d4549e903e78ec8b3398ec39 BT: Changing l2cap sock mutex lock type to static.
1071866 Bluetooth: split-a2dp: APTx-HD support
1068541 Ic3be9669c7cad52e0282a9947313659ef9056a02 Update Interop datatbase to prevent preferred conn updat
Change-Id: Idfe2fb86d32554d9f3ec4582d0f8611655e6a203
CRs-Fixed:
1066796,
1071866,
1070434,
1068541,
1063890,
1066335
Linux Build Service Account [Mon, 3 Oct 2016 10:00:43 +0000 (03:00 -0700)]
Merge "BT: Changing l2cap sock mutex lock type to static." into bt.lnx.2.1-dev
Linux Build Service Account [Mon, 3 Oct 2016 10:00:42 +0000 (03:00 -0700)]
Merge "BT: Serialize stack shutdown, state change callback and cleanup" into bt.lnx.2.1-dev
Linux Build Service Account [Mon, 3 Oct 2016 10:00:42 +0000 (03:00 -0700)]
Merge "BT: Calling HCI reset when Hardware error event occurs" into bt.lnx.2.1-dev
Venkata Jagadeesh Garaga [Wed, 14 Sep 2016 10:33:29 +0000 (16:03 +0530)]
GAP : PIN popup shown for dead legacy remotes
When repairing initiated for legcay remotes pin popup
shown even remote is not in page mode.
As dev record sm4 flag not reset during unpair,pin pop
up shown in UI based on prev sm4.
Change-Id: I29bb6ae17dc5a83459cc5cd4c8cfc6ae59bb4504
CRs-Fixed:
1066796
Linux Build Service Account [Mon, 3 Oct 2016 09:36:45 +0000 (02:36 -0700)]
Merge "Update Interop datatbase to prevent preferred conn updates" into bt.lnx.2.1-dev
Linux Build Service Account [Mon, 3 Oct 2016 09:36:39 +0000 (02:36 -0700)]
Merge "Bluetooth: split-a2dp: APTx-HD support" into bt.lnx.2.1-dev
Linux Build Service Account [Sat, 1 Oct 2016 15:26:06 +0000 (09:26 -0600)]
Promotion of bt.lnx.2.1-00017.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1060064 I4dca2b13f5eea4d51117bf7041f7816ba2dcdb1c Do not set uid_set to NULL in RFCOMM layer
1059643 Ib5040d8ca27cecd43cba12b3fca3383cefa9e9fe Add Gatt listen and adv mode support for Gatt Certificat
Change-Id: I7e2327c2b622d5b3bbbdb9160870f07f6896db64
CRs-Fixed:
1059643,
1060064
Bandari Ramesh [Mon, 26 Sep 2016 14:13:24 +0000 (19:43 +0530)]
BT: Calling HCI reset when Hardware error event occurs
Use Case: During SSR cleanup.
Failure: Crash in Bluetooth process while turning off Bluetooth
Root Cause: In HW error event, controller module was being started
which sends various hci commands. It Is happening during the
shutdown path, hci commands sent by controller initialization causes
crash as hci queue is cleared.
Fix: Sending HCI reset command instead of starting controller
module as part of HW error event.
Change-Id: I9afb5fec10a23725126e472c84b573dcdeacbfe0
CRs-Fixed:
1063890
Linux Build Service Account [Thu, 29 Sep 2016 12:36:26 +0000 (05:36 -0700)]
Merge "Do not set uid_set to NULL in RFCOMM layer" into bt.lnx.2.1-dev
Manu Viswanadhan [Mon, 26 Sep 2016 11:17:51 +0000 (16:47 +0530)]
Update SDP CCB's continuation information in case of server DB deletion
Use case: Remote initiating connection immediately before BT turn off
Failure: During SDP request processing, invalid memory is being
accessed in the SDP server, leading to crash
Steps:
1.Initiate connection from Remote and accept from DUT
2.Immediately turn off BT
Root Cause: Continuation information stored in SDP CCBs regarding the
pointer of the record last sent is not updated when its position is
shifted, as part of record deletion in the server
Fix: Proper updating of the record continuation information when its
position is shifted as part of record deletion in the server
Change-Id: I493450eaf8fff6360469a33416cf8bb468eca8eb
CRs-Fixed:
1062322
Linux Build Service Account [Wed, 28 Sep 2016 10:20:11 +0000 (03:20 -0700)]
Promotion of bt.lnx.2.1-00015.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1050999 Idf8e2bebdc2ca7621aef06dd5f2075ef2c5fa08c Bluetooth: Set alarm's queue to NULL on alarm expired
1070444 Ie5b8b89b5d499e999167ad599fa587cea5dde2e7 GAP: Host sending two sdp req during legacy pairing
1063748 1069656 Iba694e2547abc8e6161997cd136064fe3a411abc aptXHD codec support
1069198 I4a2e429484378d23c996caffb6495407793548d2 SDP: Crash in sdp due to invalid length
Change-Id: I2d4755c678374e1233d3663262894780b25f3340
CRs-Fixed:
1069656,
1050999,
1070444,
1063748,
1069198
Satish kumar sugasi [Sat, 20 Jun 2015 00:35:49 +0000 (17:35 -0700)]
Add Gatt listen and adv mode support for Gatt Certification
Modifies single instance advertisements using gatt listen api and
logic to support differnt advertisement modes.
Change-Id: I9629b2ea03fcefd39702ab2ae6869a4cdebbab83
Modifies Gatt listen to add support for non-connectable adv mode
changes for qualification to do non-connectable advertisement
Change-Id: I26db3040a94edd9742a6c07b430e3ef285c864f6
Add config option to enable LE non-connectable adv mode
This is needed for LE certification test case where LE non-con
nectable advertisement is supported. added runtime config option
to enable this mode, by default in stack this will be off.
Change-Id: Ib5040d8ca27cecd43cba12b3fca3383cefa9e9fe
Bhakthavatsala Raghavendra [Fri, 23 Sep 2016 21:54:42 +0000 (14:54 -0700)]
Bluetooth: split-a2dp: APTx-HD support
Add APTx-HD support in split-a2dp mode
Linux Build Service Account [Tue, 27 Sep 2016 14:57:10 +0000 (07:57 -0700)]
Merge "GAP: Host sending two sdp req during legacy pairing" into bt.lnx.2.1-dev
Linux Build Service Account [Tue, 27 Sep 2016 14:57:10 +0000 (07:57 -0700)]
Merge "SDP: Crash in sdp due to invalid length" into bt.lnx.2.1-dev
Linux Build Service Account [Tue, 27 Sep 2016 14:57:06 +0000 (07:57 -0700)]
Merge "Bluetooth: Set alarm's queue to NULL on alarm expired" into bt.lnx.2.1-dev
Rupesh Tatiya [Mon, 26 Sep 2016 09:59:36 +0000 (15:29 +0530)]
Do not set uid_set to NULL in RFCOMM layer
The resource is created and freed at BTIF layer. Align this code with
L2CAP layer.
CRs-Fixed:
1060064
Change-Id: I4dca2b13f5eea4d51117bf7041f7816ba2dcdb1c
Linux Build Service Account [Fri, 23 Sep 2016 10:43:23 +0000 (04:43 -0600)]
Promotion of bt.lnx.2.1-00014.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1064374 I538e38c4fef81a1210a015b0fc89b9772fc5c288 Fixes for Errors reported by Static Analysis Tool.
Change-Id: I553e207603974797e1e76157cea2fc085608f26f
CRs-Fixed:
1064374
Gurpreet Ghai [Tue, 20 Sep 2016 13:39:03 +0000 (19:09 +0530)]
BT: Changing l2cap sock mutex lock type to static.
Use Case: Bluetooth On/Off scenario, User switch
Steps:
1. Turn ON Bluetooth
2. Switch user
Failure: ANR occurs after switching user.
Root Cause: During user switch, because of unsynchronized state
change event and state change broadcast, all l2cap sockets are
not closed during bredr shutdown. When server close happens after
l2cap sock cleanup, it gets stuck while waiting for mutex which
is destroyed while l2cap sock cleanup.
Fix: Changed the l2cap sock mutex type to static as some functions
using it can be called after l2cap sock cleanup.
CRs-Fixed:
1070434
Change-Id: Ib4e8494270cea976d4549e903e78ec8b3398ec39
Gurpreet Ghai [Mon, 12 Sep 2016 12:06:53 +0000 (17:36 +0530)]
BT: Serialize stack shutdown, state change callback and cleanup
Use Case: Bluetooth On/Off scenario, User switch
Steps:
1. Turn ON Bluetooth
2. Switch user
Also observed on occurrence of enable/disable timeout during On/Off testing.
Failure: Crash while sending state change HAL callback.
Root Cause: In the event when stack cleanup is queued to stack manager
thread when stack shutdown is being processed, stack cleanup starts
execution as soon as stack shutdown is finished.
If the function event_signal_stack_down posted to btif thread at the
end of stack shutdown is executed after stack cleanup crash occurs.
Fix: Serialized the execution of stack shutdown, state change callback
execution and stack cleanup to happen in same order.
CRs-Fixed:
1066335
Change-Id: Ic96205b5c304acb44eab53f4e2cb150726643bda
Venkata Jagadeesh Garaga [Mon, 12 Sep 2016 13:24:42 +0000 (18:54 +0530)]
GAP: Host sending two sdp req during legacy pairing
Host sends sdp req from l2cap closed state without
info res from remote,and one more sdp req triggered
after info rsp from remote.
Hence host went to bad state and not responding to
sdp response from remote
Don't allow sdp req without info rsp from l2cap
closed state to fix this issue
Change-Id: Ie5b8b89b5d499e999167ad599fa587cea5dde2e7
CRs-Fixed:
1070444
Umesh Vats [Fri, 2 Sep 2016 21:19:08 +0000 (14:19 -0700)]
aptXHD codec support
Feature support for aptXHD codec negotiation for a2dp streaming
added
Change-Id: Iba694e2547abc8e6161997cd136064fe3a411abc
Satheesh Kumar Pallemoni [Thu, 8 Sep 2016 05:50:22 +0000 (11:20 +0530)]
Fixes for Errors reported by Static Analysis Tool.
Fixes for Errors reported by Static Analysis Tool.
CRs-Fixed:
1064374
Change-Id: I538e38c4fef81a1210a015b0fc89b9772fc5c288
Linux Build Service Account [Wed, 21 Sep 2016 10:32:20 +0000 (03:32 -0700)]
Promotion of bt.lnx.2.1-00013.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1059557 If72fb066ad984ba4acfe63d1fc3f0453ad6e7588 Split A2p: Fix for stream failure in remote initiated co
1008733 I174b0c44cdef8b5d174a2e39fa34fefc55d4807b Bluetooth: Add AAC codec Support in Split-a2dp mode
1058210 I9c0fc2b9725d6bb6336e9d5cb549104799723ff8 For false A2DPSuspend only change A2DP state to standy
1052605 I242dc42868dee7c27bd778dabbfe1dc06de1a93f Bluetooth: Handle sink cleanup gracefully
Change-Id: Iedffc98ce6294b7d2b9b7db507463d55b0ed77f5
CRs-Fixed:
1059557,
1052605,
1058210,
1008733
Venkata Jagadeesh Garaga [Thu, 15 Sep 2016 10:21:40 +0000 (15:51 +0530)]
SDP: Crash in sdp due to invalid length
Crashed in memcpy as there is no boundary check
for copy length and length exceeds the allocated
buffer size.
Align copy length with source buffer offset
so that copy length will be in boundary of the
allocated buffer size
Change-Id: I4a2e429484378d23c996caffb6495407793548d2
CRs-Fixed:
1069198
Linux Build Service Account [Tue, 20 Sep 2016 07:08:41 +0000 (00:08 -0700)]
Merge "For false A2DPSuspend only change A2DP state to standy" into bt.lnx.2.1-dev
Nitin Arora [Tue, 13 Sep 2016 00:58:21 +0000 (17:58 -0700)]
Update Interop datatbase to prevent preferred conn updates
This patch prevents specific devices from being sent the
connection updated based on the device's preferred connection
updates as indicated by the "Peripheral preferred connection
parameters" characteristic.
CRs-Fixed:
1068541
Change-Id: Ic3be9669c7cad52e0282a9947313659ef9056a02
Kamal Negi [Mon, 19 Sep 2016 08:46:56 +0000 (14:16 +0530)]
Bluetooth: Set alarm's queue to NULL on alarm expired
For non-periodic alarms, set alarm's queue to NULL once alarm
expired. If alarm is not set again after expiry and shutdown happens in
parallel, queue on which alarm set is freed and we eventually try
to take lock on destroyed queue's mutex, resulting in ANR.
CRs-Fixed:
1050999
Change-Id: Idf8e2bebdc2ca7621aef06dd5f2075ef2c5fa08c
Bhakthavatsala Raghavendra [Sat, 30 Jul 2016 02:11:28 +0000 (19:11 -0700)]
Bluetooth: Add AAC codec Support in Split-a2dp mode
Add AAC codec support in split-a2dp mode
Change-Id: I174b0c44cdef8b5d174a2e39fa34fefc55d4807b
Linux Build Service Account [Thu, 15 Sep 2016 22:33:56 +0000 (15:33 -0700)]
Promotion of bt.lnx.2.1-00012.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1055999 I827a0d3e4d31e58b3e508d844b714d5059aeb462 A2DP: Check pending a2dp ctrl cmd
1048502 I8e41d118d1334db39f26eea730b6a6c8e2486c3a Enbale Audio track for user builds
1065659 Ie8b1c060687a7c677dda1ab6b886ff91326d5b89 BT: Updating bt_config on local adapter property change
1065123 Ia3dfb3b4846b8c47980a502d474c349c34b8439b GAP: Accept incoming connection as slave
Change-Id: I82b0e6dcfa3b2ef8d3f3c52d1bdb03382defba2c
CRs-Fixed:
1065659,
1055999,
1048502,
1065123
Venkateshwarlu Domakonda [Fri, 12 Aug 2016 10:31:31 +0000 (16:01 +0530)]
Bluetooth: Handle sink cleanup gracefully
Cleanup the SM during turn off.
Change-Id: I242dc42868dee7c27bd778dabbfe1dc06de1a93f
Linux Build Service Account [Thu, 15 Sep 2016 14:28:39 +0000 (07:28 -0700)]
Merge "Split A2p: Fix for stream failure in remote initiated connection" into bt.lnx.2.1-dev
Linux Build Service Account [Thu, 15 Sep 2016 10:53:58 +0000 (03:53 -0700)]
Merge "GAP: Accept incoming connection as slave" into bt.lnx.2.1-dev
Linux Build Service Account [Thu, 15 Sep 2016 03:00:15 +0000 (20:00 -0700)]
Merge "BT: Updating bt_config on local adapter property change" into bt.lnx.2.1-dev
Linux Build Service Account [Thu, 15 Sep 2016 03:00:13 +0000 (20:00 -0700)]
Merge "Enbale Audio track for user builds" into bt.lnx.2.1-dev
Pramod Sivaraman [Fri, 9 Sep 2016 05:23:50 +0000 (10:53 +0530)]
GAP: Accept incoming connection as slave
Accepting the incoming connection with DUT in slave role
as some remotes can not establish connections in slave role
and incoming connection always fails with these remotes.
Change-Id: Ia3dfb3b4846b8c47980a502d474c349c34b8439b
CRs-Fixed:
1065123
Sagar Verma [Mon, 22 Aug 2016 12:28:38 +0000 (17:58 +0530)]
For false A2DPSuspend only change A2DP state to standy
Allow going to standby only for key A2DPSuspend false value.
CRs-Fixed:
1058210
Change-Id: I9c0fc2b9725d6bb6336e9d5cb549104799723ff8
Linux Build Service Account [Mon, 12 Sep 2016 18:19:35 +0000 (11:19 -0700)]
Promotion of bt.lnx.2.1-00010.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1061959 I5db80fb18c678b0240faddb16d22b7d95c93e3e2 API changes in aptX schduler library
1049734 Ia9eda43128ab44c0d46b61ee035d2d9c5109da05 Bluetooth: Add bdt tool to support test in FFBM mode
1035137 1052242 I0628635db900022d89dc57fdba354ae69896f0f4 Added Remote Device BD address to Outgoing role switch b
980885 I8bcb3ad6aaf6bf5ce25495fce4f34efc6150d86a Fixed the racing problem between HAL_CBACK and cleanup f
1061313 I96cd6756053e5edb45cf3589a527ebe8062405f4 aptX supported needs to be checked during initialization
1055649 I6ac51b24b9fda01726cdc3b43346194d2495f8f0 GAP: Handle JV sys busy/idle properly in OPP TX/RX
1059789 I94ddb964d09e6a588cc254ba39e85817b011651c Bluetooth : Accept incoming connection as slave
Change-Id: Iecc3e44168b219f7e3e0e3ef52d451e947471f61
CRs-Fixed: 980885,
1059789,
1061313,
1035137,
1052242,
1061959,
1055649,
1049734
pramod kotreshappa [Thu, 25 Aug 2016 22:10:22 +0000 (15:10 -0700)]
Split A2p: Fix for stream failure in remote initiated connection
Some carkits and HS send avdtp start soon after a2dp connection.
Dut will start VSC config exchange, but soon after avdtp start is
received from the remote DUT sends suspend request. This fix will
handle this scenario by addition split a2dp flag checks and
resetting the config flag when stream suspend is initiated in the
middle of VSC exchange
Change-Id: If72fb066ad984ba4acfe63d1fc3f0453ad6e7588
Linux Build Service Account [Mon, 12 Sep 2016 17:41:18 +0000 (10:41 -0700)]
Merge "A2DP: Check pending a2dp ctrl cmd" into bt.lnx.2.1-dev
Linux Build Service Account [Mon, 12 Sep 2016 12:26:37 +0000 (05:26 -0700)]
Merge "Bluetooth: Add bdt tool to support test in FFBM mode" into bt.lnx.2.1-dev
Linux Build Service Account [Mon, 12 Sep 2016 12:26:34 +0000 (05:26 -0700)]
Merge "Bluetooth : Accept incoming connection as slave" into bt.lnx.2.1-dev
Linux Build Service Account [Mon, 12 Sep 2016 12:26:34 +0000 (05:26 -0700)]
Merge "Fixed the racing problem between HAL_CBACK and cleanup function" into bt.lnx.2.1-dev
Bandari Ramesh [Thu, 8 Sep 2016 06:51:48 +0000 (12:21 +0530)]
BT: Updating bt_config on local adapter property change
- Added condition to write local adapter property
changes to bt_config.conf file to take immediate
effect
Change-Id: Ie8b1c060687a7c677dda1ab6b886ff91326d5b89
CRs-Fixed:
1065659
pramod kotreshappa [Tue, 16 Aug 2016 01:35:07 +0000 (18:35 -0700)]
A2DP: Check pending a2dp ctrl cmd
Fix for unknown codec format returned from stack during
a2dp reconfig.
Change-Id: I827a0d3e4d31e58b3e508d844b714d5059aeb462
zhenchao [Wed, 7 Sep 2016 11:09:32 +0000 (19:09 +0800)]
Bluetooth: Add bdt tool to support test in FFBM mode
BT run failed in FFBM mode because can not find
/system/bin/bdt.
Change-Id: Ia9eda43128ab44c0d46b61ee035d2d9c5109da05
CRs-Fixed:
1049734
Linux Build Service Account [Fri, 9 Sep 2016 02:31:30 +0000 (19:31 -0700)]
Merge "GAP: Handle JV sys busy/idle properly in OPP TX/RX" into bt.lnx.2.1-dev
Luke Zhang [Sat, 27 Feb 2016 01:23:21 +0000 (17:23 -0800)]
Fixed the racing problem between HAL_CBACK and cleanup function
In btif_rc, we saw a racing problem when HAL_CBACK and cleanup
of bt_rc_callbacks are done simultaneously. The solution is to
avoid delete bt_rc_callbacks directly, instead send a message to
btif_rc thread and let this thread handle the messages sequentially.
CRs-fixed: 980885
Change-Id: I8bcb3ad6aaf6bf5ce25495fce4f34efc6150d86a
Linux Build Service Account [Wed, 7 Sep 2016 14:40:51 +0000 (07:40 -0700)]
Merge "API changes in aptX schduler library" into bt.lnx.2.1-dev
Linux Build Service Account [Wed, 7 Sep 2016 14:40:50 +0000 (07:40 -0700)]
Merge "aptX supported needs to be checked during initialization" into bt.lnx.2.1-dev
Venkata Ramana Rao K [Tue, 16 Aug 2016 14:11:31 +0000 (19:41 +0530)]
Bluetooth : Accept incoming connection as slave
Accepting the incoming connection with DUT in slave role
as some remotes can not establish connections in slave role
and incoming connetcion always fails with these remotes.
Change-Id: I94ddb964d09e6a588cc254ba39e85817b011651c
CRs-Fixed:
1059789
Linux Build Service Account [Wed, 7 Sep 2016 05:37:51 +0000 (23:37 -0600)]
Promotion of bt.lnx.2.1-00007.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1059193 I8deca0c8ff73faafc3da94dcd9ea55e06bd8a31d Just clear IB_CFG_DONE on receiving Peer config request
1055289 Ifdb15c93d2a648bb04da0e9dd7b8949d12270685 Bluetooth : GAP : Add boot timer permission for Cert too
904958 I6160ae04c1905645e9624bf4ecc3a7c945e3bb20 Bluetooth: KW fix for gatt test tool memory failure
1008846 Id953cb811107d1cc0ccaa3683027d61fdfa90fb9 Bluetooth: Fix DUT cannot ccnnect remote headset BT off/
1060313 I1bf50a424d86ac53a5201fff742c822f4c8d1c0b Dequeues direct connection request during cancel conn op
Change-Id: I5e84061801fb231184d733961991bd26209ad92e
CRs-Fixed:
1060313, 904958,
1008846,
1059193,
1055289
Umesh Vats [Thu, 1 Sep 2016 00:29:42 +0000 (17:29 -0700)]
API changes in aptX schduler library
An API, apx_scheduler_start(), has been modified for the aptX
scheduler library. Two new parameters are added:
is_audio_24bit
mtuSize
Changes are done to take care of same.
Change-Id: I5db80fb18c678b0240faddb16d22b7d95c93e3e2
CRs-Fixed:
1061959
Umesh Vats [Tue, 26 Jul 2016 20:33:42 +0000 (13:33 -0700)]
aptX supported needs to be checked during initialization
Currently aptX support is checked when a connection is initiated
from the DUT. Now changes done so that its checked during AV
initialization. This will make sure that we don't adverstize aptX
to remote HS unless its really enabled
Change-Id: I4f1312fc88fa903bdae83a95fdda9e0cfa6bf7ea
A2dp: Check offload capability during a2dp init.
Check offload capability before populating SEPs.
Change-Id: I96cd6756053e5edb45cf3589a527ebe8062405f4
Satheesh Kumar Pallemoni [Tue, 9 Aug 2016 14:48:15 +0000 (20:18 +0530)]
Added Remote Device BD address to Outgoing role switch blacklist
Added Remote Device BD address to Outgoing role switch blacklist.
Don't initiate role switch for blacklisted remotes from DUT.
CRs-Fixed:
1052242
Change-Id: I0628635db900022d89dc57fdba354ae69896f0f4
Venkateshwarlu Domakonda [Mon, 1 Aug 2016 05:40:40 +0000 (11:10 +0530)]
Enbale Audio track for user builds
Enabled the audio track flag for user builds as well.
Change-Id: I8e41d118d1334db39f26eea730b6a6c8e2486c3a
CRs-Fixed:
1048502
Linux Build Service Account [Tue, 6 Sep 2016 07:21:02 +0000 (00:21 -0700)]
Merge "Dequeues direct connection request during cancel conn operation" into bt.lnx.2.1-dev
Linux Build Service Account [Tue, 6 Sep 2016 07:03:55 +0000 (00:03 -0700)]
Merge "Bluetooth : GAP : Add boot timer permission for Cert tools" into bt.lnx.2.1-dev
Venkata Jagadeesh Garaga [Fri, 26 Aug 2016 11:50:59 +0000 (17:20 +0530)]
GAP: Handle JV sys busy/idle properly in OPP TX/RX
Handle JV power manager sys busy and sys idle
properly in OPP TX/RX scenario
Start/restart 1 sec timer on JV sys idle and stop
sniff timer/1 sec timer on JV sys busy to align with
default sniff behavior.
Change-Id: I6ac51b24b9fda01726cdc3b43346194d2495f8f0
CRs-Fixed:
1055649
juncao [Mon, 25 Apr 2016 06:58:54 +0000 (14:58 +0800)]
Bluetooth: Fix DUT cannot ccnnect remote headset BT off/ON
When DUT try to connect a paired power-off headset, there is
no ACL connection at all. Then do BT off, the av sm is still
opening,it will not move to idle and clear the connection
request in the btif layer. At the same time if the Adpater
service is not unbinded during BT off, the btif-queue will
not tear down. Next time BT on, the last connection request
is actully invalid but its state is still busy in the
connection list, then it will block the new connection
request from up layer. The fix will set the sm back to idle
and remove the ongoing connnecton request if sm is opening
state before BT off.
CRs-Fixed:
1008846
Change-Id: Id953cb811107d1cc0ccaa3683027d61fdfa90fb9
Venkata Jagadeesh Garaga [Tue, 16 Aug 2016 14:27:54 +0000 (19:57 +0530)]
Bluetooth : GAP : Add boot timer permission for Cert tools
As CLOCK_BOOTTIME timer does not have boot permission this timer
start fails and hence bt turn on fails from tools.
This change adds boot permission for timers from
Certification tools
Change-Id: Ifdb15c93d2a648bb04da0e9dd7b8949d12270685
CRs-Fixed:
1055289
Linux Build Service Account [Tue, 6 Sep 2016 05:51:20 +0000 (22:51 -0700)]
Merge "Just clear IB_CFG_DONE on receiving Peer config request when channel open" into bt.lnx.2.1-dev
Linux Build Service Account [Tue, 6 Sep 2016 05:51:14 +0000 (22:51 -0700)]
Merge "Bluetooth: KW fix for gatt test tool memory failure" into bt.lnx.2.1-dev
Linux Build Service Account [Sun, 4 Sep 2016 20:05:04 +0000 (14:05 -0600)]
Promotion of bt.lnx.2.1-00006.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1056804 I7f5c4e8f7734821513cb97394d227cf66000a463 Bluetooth: Enable backtrace for malloc and free function
Change-Id: I43075c6c80b429f1e5edea6f62ce480b7fbd300c
CRs-Fixed:
1056804
Linux Build Service Account [Thu, 1 Sep 2016 17:11:44 +0000 (10:11 -0700)]
Merge "Bluetooth: Enable backtrace for malloc and free functions" into bt.lnx.2.1-dev
Linux Build Service Account [Thu, 1 Sep 2016 17:06:38 +0000 (11:06 -0600)]
Promotion of bt.lnx.2.1-00005.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1059275 I25ae78d7f5f85043943ed752d54dc2fee40c4fa6 GAP : Host sends neg link key for headset reconnection
1055177 Id8a093b1503eb3f308f466f30c1a4a6f4c250594 Bluetooth: Notify BT APP about alias as the name if pres
1056433 Ib0bf2e4029e448670ee44f63110e5332aa972580 Allow full dev consolidation after pairing
1056813 Ia5df7eb3909ad773048b59686b17bc377bf35abf Set HF indicators bit only when remote supports it.
1056776 I4c5188c477784e34d531d33b81ce8f443626d61f Fixes for Errors reported by static analysis tool.
Change-Id: I78be8a40eb2378fce97f85746c2d1cbe7e5a6ca8
CRs-Fixed:
1056433,
1059275,
1055177,
1056813,
1056776
Satish kumar sugasi [Thu, 10 Sep 2015 22:00:31 +0000 (15:00 -0700)]
Bluetooth: KW fix for gatt test tool memory failure
This change takes care of NULL pointer deferencing issue by checking
memory allocation for new job process succeed before copying new
command argument passed.
Change-Id: I6160ae04c1905645e9624bf4ecc3a7c945e3bb20
Venkata Jagadeesh Garaga [Fri, 12 Aug 2016 10:01:00 +0000 (15:31 +0530)]
GAP : Host sends neg link key for headset reconnection
Use case: Stack sending neg link key for headset reconnection while 6 ACL
already connected
Precondition:
=============
- Turn ON DUT
- Pair and connect with 6 BLE devices
Step by Step procedure:
=======================
- Pair and connect with SHB9100WT headset
- Play A2DP music and listen A2DP audio over headset
- Turn Off headset and turn On
- Repeat above 2 steps 2 - 3 times
Failure: Host sending negative linkkey even linkkey present in config file as
peer device security flags reset during acl disconnection.
Root Cause: During acl disconnection,array out of index memory accessed
in memcpy.Due to corrupted flag peer device security flags reset abd host
sending negative linkkey for next acl connection.
Change-Id: I25ae78d7f5f85043943ed752d54dc2fee40c4fa6
CRs-Fixed:
1059275
Linux Build Service Account [Wed, 31 Aug 2016 01:49:59 +0000 (18:49 -0700)]
Merge "Allow full dev consolidation after pairing" into bt.lnx.2.1-dev
Linux Build Service Account [Wed, 31 Aug 2016 01:49:24 +0000 (18:49 -0700)]
Merge "Bluetooth: Notify BT APP about alias as the name if present" into bt.lnx.2.1-dev
Mingbo Zhang [Tue, 23 Aug 2016 02:28:26 +0000 (10:28 +0800)]
Just clear IB_CFG_DONE on receiving Peer config request when channel open
In current codes, while l2cap channel has been configured and in
CST_OPEN state, if local receives another configure request from
remote, config_done(IB_CFG_DONE and OB_CFG_DONE) will be cleared.
However, OB_CFG_DONE will be never set again. So, from then on,
data can not be transmitted to remote by this channel. To fix
this issue, we should just clear IB_CFG_DONE and keep OB_CFG_DONE
unchanged on receiving Peer config request when channel open
Change-Id: I8deca0c8ff73faafc3da94dcd9ea55e06bd8a31d
CRs-Fixed:
1059193
Linux Build Service Account [Tue, 30 Aug 2016 07:17:20 +0000 (00:17 -0700)]
Merge "Set HF indicators bit only when remote supports it." into bt.lnx.2.1-dev
Linux Build Service Account [Tue, 30 Aug 2016 06:56:41 +0000 (23:56 -0700)]
Merge "Fixes for Errors reported by static analysis tool." into bt.lnx.2.1-dev
Subramanian Srinivasan [Thu, 21 Aug 2014 23:46:04 +0000 (16:46 -0700)]
Dequeues direct connection request during cancel conn operation
When cancel connection request for a device is sent
from an app and if the current pending connection
request's BD address does not match with this device,
the entries of the connection request pending queue
are also checked. If BD address match occurs with an
entry in the connection request queue, the entry is
removed from the queue.
CRs-Fixed:
1060313
Change-Id: I1bf50a424d86ac53a5201fff742c822f4c8d1c0b
Linux Build Service Account [Mon, 29 Aug 2016 22:59:03 +0000 (16:59 -0600)]
Promotion of bt.lnx.2.1-00003.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1058967 I819281c57c03f60619b488df1dbd92c8598aec68 A2dp: Fix for audio loss with remote device initiated co
1058962 I52a6dd15fa00a85937a2c0eb8e484c393fedee92 A2DP: KW fix
1056709 I9759e5e567b6ebe06e5660539881ba827b15fb1f HID: Prevent sending output report if not changed.
1057493 I7193d085a1de4aa1e4b0ed6ec16a4812c8dc70b5 BT: Enable SoC logging through developer option
1043930 I566f62ce02c8e95c9f4b8d7155132e4434657f66 Bluetooth: HDP: Synchronize hl data operations
Change-Id: I28653de52b849b9fd52c8c3bd727482491346b57
CRs-Fixed:
1043930,
1058967,
1057493,
1058962,
1056709
Linux Build Service Account [Mon, 29 Aug 2016 15:13:34 +0000 (08:13 -0700)]
Merge "BT: Enable SoC logging through developer option" into bt.lnx.2.1-dev
Satheesh Kumar Pallemoni [Thu, 18 Aug 2016 09:18:31 +0000 (14:48 +0530)]
Fixes for Errors reported by static analysis tool.
Fixes for Errors reported by static analysis tool.
CRs-Fixed:
1056776
Change-Id: I4c5188c477784e34d531d33b81ce8f443626d61f
Satheesh Kumar Pallemoni [Fri, 19 Aug 2016 10:10:50 +0000 (15:40 +0530)]
Set HF indicators bit only when remote supports it.
If remote HFP version is 1.7 and sets HF indicators
bit in BRSF flag, don't unset HF indicators bit in
AG's BRSF flag.
CRs-Fixed:
1056813
Change-Id: Ia5df7eb3909ad773048b59686b17bc377bf35abf
Linux Build Service Account [Mon, 29 Aug 2016 03:48:08 +0000 (20:48 -0700)]
Merge "A2dp: Fix for audio loss with remote device initiated connection" into bt.lnx.2.1-dev