OSDN Git Service
Linux Build Service Account [Mon, 19 Jun 2017 10:11:49 +0000 (04:11 -0600)]
Promotion of bt.lnx.2.1.c1-00058.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
2005284 Ic1debdee4b2140eb6400fecbaacb5909fbce6535 BT : Introduced an internal queue in hci thread to hold
2033948 I43f47e61a31cf917a4ddc1a9e6c5c13a25f8730d SDP: Dont start SDP search with invalid BD Addr
Change-Id: I1ea61f551a23b1b36492188a1f6c177caca3f135
CRs-Fixed:
2005284,
2033948
Linux Build Service Account [Sat, 17 Jun 2017 03:21:52 +0000 (20:21 -0700)]
Merge "BT : Introduced an internal queue in hci thread to hold commands"
CNSS_WLAN Service [Fri, 16 Jun 2017 05:55:44 +0000 (22:55 -0700)]
Merge "SDP: Dont start SDP search with invalid BD Addr" into bt.lnx.2.1.c1-dev
Bandari Ramesh [Fri, 31 Mar 2017 12:45:00 +0000 (18:15 +0530)]
BT : Introduced an internal queue in hci thread to hold commands
- Added an internal queue to avoid making hci thread busy
due to unavailability of credits.
CRs-Fixed:
2005284
Change-Id: Ic1debdee4b2140eb6400fecbaacb5909fbce6535
Linux Build Service Account [Fri, 9 Jun 2017 13:11:03 +0000 (07:11 -0600)]
Promotion of bt.lnx.2.1.c1-00057.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
2050966 Id624f0eb656dc782948d14542e4d321abff4339f Fix: btapp will crash when pair request from both DUT &
2054878 Ied08635e3f786a175dab192a5aba069f33d3f36f RFCOMM: stop multiplexer disconnect timer while reconnec
Change-Id: I62ff1687eb03958327a1638c3eaa238eaaf6934c
CRs-Fixed:
2050966,
2054878
CNSS_WLAN Service [Fri, 9 Jun 2017 11:32:26 +0000 (04:32 -0700)]
Merge "Fix: btapp will crash when pair request from both DUT & Remote device simultaneously" into bt.lnx.2.1.c1-dev
Tim Jiang [Tue, 23 May 2017 10:07:24 +0000 (06:07 -0400)]
Fix: btapp will crash when pair request from both DUT & Remote device simultaneously
Invalid p_rec_dev->p_callback pointer cause this issue.
CRs-Fixed:
2050966
Change-Id: Id624f0eb656dc782948d14542e4d321abff4339f
zhenchao [Thu, 18 May 2017 08:11:26 +0000 (16:11 +0800)]
RFCOMM: stop multiplexer disconnect timer while reconnect DLC
In very low rate, re-send file failed due to rfcomm multiplexer
disconnect timer timeout while reconnect RFCOMM DLC. During
reconnection, sender sent SABM to establish DLC and await UA.
But multiplexer disconnect timer of receiver timeout so that
rfcomm connection disconnect.
Change-Id: Ied08635e3f786a175dab192a5aba069f33d3f36f
CRs-Fixed:
2054878
Linux Build Service Account [Wed, 31 May 2017 06:40:50 +0000 (00:40 -0600)]
Promotion of bt.lnx.2.1.c1-00054.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
2018001 I41682be1476d4c1c4ee58061407b94cfd2a2657a Cancel the link idle timer during gatt_connect
Change-Id: Idf3650c26fcb7032f701dc062925dd0f1f2dacaa
CRs-Fixed:
2018001
Linux Build Service Account [Tue, 30 May 2017 21:12:58 +0000 (14:12 -0700)]
Merge "Cancel the link idle timer during gatt_connect"
Linux Build Service Account [Wed, 17 May 2017 09:20:35 +0000 (03:20 -0600)]
Promotion of bt.lnx.2.1.c1-00053.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
2017829 I04ec116773bd8bfd033c76e9645acc06138b52e0 Fix time consuming doing Bluetooth OFF/ON while a2dp ste
2039987 Ieff690edd3aa527a0639483ec8e1e3b661f0ecc4 resolve merge conflicts of
a3ee2e35 to nyc-dev
Change-Id: Ia9e80ba5c1eca5ac8efe68c6f7630540c0011086
CRs-Fixed:
2017829,
2039987
CNSS_WLAN Service [Wed, 17 May 2017 07:32:28 +0000 (00:32 -0700)]
Merge "Fix time consuming doing Bluetooth OFF/ON while a2dp steaming." into bt.lnx.2.1.c1-dev
Linux Build Service Account [Sat, 13 May 2017 11:39:27 +0000 (04:39 -0700)]
Merge "resolve merge conflicts of
a3ee2e35 to nyc-dev"
Linux Build Service Account [Fri, 12 May 2017 10:33:34 +0000 (04:33 -0600)]
Promotion of bt.lnx.2.1.c1-00052.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
2038030 I7fdb0433353ba5793470313d205a68e8eb3fb5ac SDP: Add logic to downgrade PBAP version for blacklisted
2031104 Ic7f0bb53dce9fe1b72bf34c61c0b6ea3daf1e025 Configure correct remote MTU
1095999 I7bcff61d36249fd1a2d2101ec4745b7f7426fe0f Fix timestamp error in btsnoop log
Change-Id: I753581064525c4773fa11f12ed9fc0787412eb6a
CRs-Fixed:
1095999,
2031104,
2038030
Pavlin Radoslavov [Tue, 14 Mar 2017 21:46:15 +0000 (14:46 -0700)]
resolve merge conflicts of
a3ee2e35 to nyc-dev
Bug:
34946955
Change-Id: Ieff690edd3aa527a0639483ec8e1e3b661f0ecc4
Merged-In: I0b6f50dee05a58db8c043b4d01fb58c9acbeede9
(cherry picked from commit
1c6662b6263298b97122ab308d8dde1d5ed66ef7)
siminy [Tue, 25 Apr 2017 07:03:10 +0000 (15:03 +0800)]
SDP: Add logic to downgrade PBAP version for blacklisted device
As some remote devices go in bad state on parsing PBAP 1.2 SDP record.
Add them to PBAP version downgrade blacklist.Upgrade PBAP version
downgrade logic from to include name based blacklist and also remove
SDP attributes not suppported in PBAP 1.1 specifications like
GoepL2capPsm, SupportedFeatures.
CRs-Fixed:
2038030
Change-Id: I7fdb0433353ba5793470313d205a68e8eb3fb5ac
juncao [Fri, 10 Mar 2017 08:19:15 +0000 (16:19 +0800)]
Fix time consuming doing Bluetooth OFF/ON while a2dp steaming.
When BT off, DUT send the avdtp suspend cmd to remote, at the same time
BT also do BREDR cleanup work, it shall make av state machine goes
into closing state. It will not repsonde to suspend response from remote,
hence the A2DP COMMND form audio HAL doesn't got ACK. The fix shall
ACK the pending command before clear the UIPC channel.
Change-Id: I04ec116773bd8bfd033c76e9645acc06138b52e0
CRs-Fixed:
2017829
Linux Build Service Account [Fri, 5 May 2017 11:19:49 +0000 (04:19 -0700)]
Merge "Fix timestamp error in btsnoop log"
Linux Build Service Account [Fri, 5 May 2017 11:19:48 +0000 (04:19 -0700)]
Merge "Configure correct remote MTU"
zhenchao [Thu, 1 Dec 2016 09:43:43 +0000 (17:43 +0800)]
Fix timestamp error in btsnoop log
Overflow occurs while caculate the time of packet arrival.
Type convert timestamp to 64-bit unsigned integer to avoid
overflow issue.
CRs-Fixed:
1095999
Change-Id: I7bcff61d36249fd1a2d2101ec4745b7f7426fe0f
Linux Build Service Account [Thu, 27 Apr 2017 20:19:51 +0000 (14:19 -0600)]
Promotion of bt.lnx.2.1.c1-00049.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
2020549 I29cf2824d12a26aaedde31e156f1b7bf69af65e6 Fix HOGP report handling with HOGP devices
Change-Id: Ida529f2b6481183c814c5d28ac611f4c888f384e
CRs-Fixed:
2020549
Linux Build Service Account [Wed, 26 Apr 2017 17:42:17 +0000 (11:42 -0600)]
Promotion of bt.lnx.2.1.c1-00048.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
2019703 I89720e636acf645a6cd9288a45ac543d7cd3da21 Double Audio stream output buffer size.
2019822 I227659b7e6973589c72c50af46a54878bdab5b32 check controller state before handling gatt client reque
2029615 Ie052c7ecafe4816a8c2fbc212a3b52a25b08543c Fix BLE stability issues when BT is being turned off
2029248 I1e54ded102d38cd42b3df40d405205a79b08928b uipc: retry to create srv chan if EADDRINUSE error
Change-Id: Ic2cf93a7a9f487d32090d71ba452a8865ac7cba2
CRs-Fixed:
2029615,
2029248,
2019703,
2019822
Linux Build Service Account [Wed, 26 Apr 2017 16:49:12 +0000 (09:49 -0700)]
Merge "Fix HOGP report handling with HOGP devices"
CNSS_WLAN Service [Wed, 26 Apr 2017 13:01:25 +0000 (06:01 -0700)]
Merge "uipc: retry to create srv chan if EADDRINUSE error" into bt.lnx.2.1.c1-dev
Pradeep Panigrahi [Thu, 16 Mar 2017 05:35:28 +0000 (11:05 +0530)]
check controller state before handling gatt client request.
Add change to ensure that controller interface is ready before
trying to handle client request for cleaning up the client
interface . This will fix stability issues,where assert is
happening while we try to access controller module before its ready.
CRs-fixed:
2019822
Change-Id: I227659b7e6973589c72c50af46a54878bdab5b32
CNSS_WLAN Service [Tue, 25 Apr 2017 10:22:30 +0000 (03:22 -0700)]
Merge "Fix BLE stability issues when BT is being turned off" into bt.lnx.2.1.c1-dev
Venkata Jagadeesh Garaga [Fri, 14 Apr 2017 09:35:01 +0000 (15:05 +0530)]
SDP: Dont start SDP search with invalid BD Addr
When any profile initiates SDP search with null bd addr
connection fails with page time out and SDP state machine
will stuck in search active state until bt reset.
Hence dont allow any service search with NULL bd addr
Change-Id: I43f47e61a31cf917a4ddc1a9e6c5c13a25f8730d
juncao [Tue, 25 Apr 2017 09:44:16 +0000 (17:44 +0800)]
Configure correct remote MTU
Remote MTU shall be configured to L2CAP_DEFAULT_MTU if
there is no MTU in configuration request
Change-Id: Ic7f0bb53dce9fe1b72bf34c61c0b6ea3daf1e025
CRs-Fixed:
2031104
Pradeep Panigrahi [Thu, 30 Mar 2017 19:15:22 +0000 (00:45 +0530)]
Fix BLE stability issues when BT is being turned off
Incorporates the following changes to take care of BLE
stability issues:
1) Third party apps are not in sync with bluetooth adapter and
sometimes call gatt client/server calls while bluetooth is
turning off, causing assert. Add change to not process the
application request at btif, if the bluetooth adapter is not
ready or is turning off.
2) return max adv instance count as 0 if controller interface is
not ready.
Change-Id: Ie052c7ecafe4816a8c2fbc212a3b52a25b08543c
Satheesh Kumar Pallemoni [Fri, 24 Mar 2017 11:37:15 +0000 (17:07 +0530)]
Double Audio stream output buffer size.
To align with the frame size, double Audio
stream output buffer size.
CRs-Fixed:
2019703
Change-Id: I89720e636acf645a6cd9288a45ac543d7cd3da21
Linux Build Service Account [Fri, 14 Apr 2017 08:47:18 +0000 (02:47 -0600)]
Promotion of bt.lnx.2.1.c1-00046.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
Ia79483c72d3b0cfc1e339f9f4ac65295e68e8e5d Add dumpsys support for LE connection parameter updates
I3c165843bb76c372b76bdc18a7d9226345d39037 Fix incorrect check for empty out-of-band pairing data
Iaf1b1dd746dd52ab7e50b870efacde2b8dd0bed6 DO NOT MERGE ANYWHERE Fix the timestamp in btsnoop forma
I73ad281437760e1d61dd4e504401b270eb77e3e6 DO NOT MERGE ANYWHERE LE Connection Parameter Update Cal
I1732be86dd888586c603112fb6c3010974b54a13 DO NOT MERGE ANYWHERE Add Wear-specific feature to overr
I7f8a052e78706c8c72c5102b38cfe9ce200ae0d9 Remove position dependent lookup tables in AT command pa
Ibd9301a990f12a94e8043b9c29a480f068251ba8 Fix how LE connection parameters are set after connectin
Ibd8f8b85eb59be8bfbb8a7c83b5935802624a748 Move btsnoop_hci.log to /data/misc/bluetooth/logs
Iea2a997c4ea074687a5d50860e9229f0e1b82659 Fix A2DP metrics session duration
Ic96205b5c304acb44eab53f4e2cb150726643bda Serialize stack shutdown, state change callback and clea
If2ca53c7b22a346e7236514ea7b461695c923f74 Cleanup GATT cache when remote device is disconnected
Ibe500e332dba8f44485b44bcac32d11be52520a6 Add extra logs by default inside sdp_copy_raw_data()
I27619098df33a641cb089b82cf4d4ffd3c6e6aea Fix NPE when discovering invalid GATT datatbase
I28cf4f6d5dcfb7a0bfb6aa652d939e16fbdcdcde DO NOT MERGE ANYWHERE Auto Connection Parameter Update f
I4bb3fb02cffdcc5b1273f8ace281826eccce6639 Improve HOGP input report error handling
Ide9dee819e1db24a39c05b086cd4c0b558ca23ef [DO NOT MERGE] Remove incorrect assert in btm_read_rssi_
I2cc6f9304725938b63b211d615eb1941eac60edf Fix A2DP Metrics Logging Capacity
I10984920afd4d77f07a5ac75736f8dcd69b13af8 Corrected default value assignments in Bluetooth A2DP Me
I216142090fe99b25ef7697fceceb278b761a182b Add LE Secure Connection data parsing (3/4)
I61f06a9d878dd72154d6621eb094dcea5f701cbc Assign pairing code to bta_dm_cb before device name reso
I683eccd53d40e79ec03545166b18ffa1922f0fb2 Fix HFP AT command BIA failures
Iac8684bdfd02b18cce260bedefb829e8f7285361 Mask out HFP 1.7 feature bits if peer version is <1.7
I7f8a052e78706c8c72c5102b38cfe9ce200ae0d9 Remove position dependent lookup tables in AT command pa
I51cb73666ac58e4792d9cba0d6f16dad30a0ff39 Add LeakyBondedQueue to libosi
Idc0315e9e3f9e17c3cf56fa483c8e21eb3590f01 BLE OOB Pairing - parse address type (1/5)
I4540230c792490f79e4cca24cb4b34a1c383422f DO NOT MERGE ANYWHERE Do not update sco_state when no ma
Change-Id: Iad5b862b89b66ceb0345caf8f5a3c0bf44b0c21c
Bharat Pawar [Wed, 5 Apr 2017 09:49:40 +0000 (15:19 +0530)]
N-MR2 N2G47H merge '
5a9925784a4a34811ae29608b67dee4a580c226b' - conflicts
Change-Id: Icc1ccd435f30b32723d218078bfedbca647c210d
Mingbo Zhang [Tue, 28 Mar 2017 05:40:31 +0000 (13:40 +0800)]
uipc: retry to create srv chan if EADDRINUSE error
In very rare cases, socket cannot be closed in time.
Then we will fail to create the same socket immediately.
So need to retry after EADDRINUSE error happens
Change-Id: I1e54ded102d38cd42b3df40d405205a79b08928b
CRs-Fixed:
2029248
Linux Build Service Account [Tue, 4 Apr 2017 10:28:32 +0000 (04:28 -0600)]
Promotion of bt.lnx.2.1.c1-00045.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
2009617 I65a477a2976e863ef38b9ff85ecdc72303a46654 Open acceptor channel for RC on cleanup
Change-Id: Ib8cca801b21da9bcdec5ab31402037ee6c23fd50
CRs-Fixed:
2009617
Service qcabuildsw [Tue, 4 Apr 2017 07:29:09 +0000 (00:29 -0700)]
Merge "Open acceptor channel for RC on cleanup" into bt.lnx.2.1.c1-dev
Linux Build Service Account [Fri, 31 Mar 2017 13:13:38 +0000 (07:13 -0600)]
Promotion of bt.lnx.2.1.c1-00044.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
2020250 Id0d5a323daabcd0a50193bb7bc6fde18fde3c5ad BT_BOND: Report repeated_attempts failure to application
1106139 I970c8679bf27801fe46f8dd757d6435ed500f77f A2dp connection failing with connection timeout
Change-Id: I1d47008ef989e05f63891a6b85160bb0be8915b0
CRs-Fixed:
1106139,
2020250
Service qcabuildsw [Fri, 31 Mar 2017 09:44:25 +0000 (02:44 -0700)]
Merge "BT_BOND: Report repeated_attempts failure to application" into bt.lnx.2.1.c1-dev
Service qcabuildsw [Fri, 31 Mar 2017 09:43:49 +0000 (02:43 -0700)]
Merge "A2dp connection failing with connection timeout" into bt.lnx.2.1.c1-dev
Ayan Ghosh [Mon, 20 Feb 2017 14:20:57 +0000 (19:50 +0530)]
Open acceptor channel for RC on cleanup
Open acceptor channel for RC on cleanup
as if there will be no listening acceptor
then some Remotes unable to connect AVRC
connection upon remote restart.
CRs-Fixed:
2009617
Change-Id: I65a477a2976e863ef38b9ff85ecdc72303a46654
Pradeep Panigrahi [Thu, 16 Mar 2017 10:50:51 +0000 (16:20 +0530)]
Fix HOGP report handling with HOGP devices
This fixes com.android.bluetooth crash when receiving HOGP reports
for unknown characteristic.
CRs-fixed:
2020549
Change-Id: I29cf2824d12a26aaedde31e156f1b7bf69af65e6
Pradeep Panigrahi [Wed, 22 Mar 2017 06:02:40 +0000 (11:32 +0530)]
Cancel the link idle timer during gatt_connect
When app use link count becomes zero, we start an link idle
timeout of 1 sec, post which we send disconnection. Meanwhile
if we get connect request from app to hold the link before
the 1 sec timer expiration, we should cancel the link idle
timer, other wise the link will get disconnected irrespective
of app use link count being greater than zero. Add change to
cancel the link idle timer while updating app's link hold count
CRs-Fixed:
2018001
Change-Id: I41682be1476d4c1c4ee58061407b94cfd2a2657a
juncao [Wed, 15 Mar 2017 10:53:24 +0000 (18:53 +0800)]
BT_BOND: Report repeated_attempts failure to application
This change will ensure BT stack to send repeated attempts
failure reason code to upper application.
Change-Id: Id0d5a323daabcd0a50193bb7bc6fde18fde3c5ad
CRs-Fixed:
2020250
Linux Build Service Account [Wed, 15 Mar 2017 03:12:10 +0000 (21:12 -0600)]
Promotion of bt.lnx.2.1.c1-00042.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1082873 Id942389cb44b048061a7457372d642e39bf75767 Enable authentication for a2dp
Change-Id: I5ffc52dfd0a85f16fd86046ef006edf79609db26
CRs-Fixed:
1082873
Service qcabuildsw [Tue, 14 Mar 2017 06:50:00 +0000 (23:50 -0700)]
Merge "Enable authentication for a2dp" into bt.lnx.2.1.c1-dev
Linux Build Service Account [Tue, 7 Mar 2017 09:22:56 +0000 (02:22 -0700)]
Promotion of bt.lnx.2.1.c1-00040.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
2012478 Ice128c5595f6e7a53958db2e388d25fc25733fc0 Handle LE enhanced conn complete for rpa resolve
Change-Id: Ibe272abddc8c7f0379f8edb0f8dcde7ccb6635a4
CRs-Fixed:
2012478
siminy [Tue, 28 Feb 2017 10:12:18 +0000 (18:12 +0800)]
Handle LE enhanced conn complete for rpa resolve
Handle LE Enhanced Connection Complete Event when
handling random address complete on connection
complete event.
CRs-Fixed:
2012478
Change-Id: Ice128c5595f6e7a53958db2e388d25fc25733fc0
Linux Build Service Account [Mon, 27 Feb 2017 11:42:51 +0000 (04:42 -0700)]
Promotion of bt.lnx.2.1.c1-00039.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1105371 I7b213ac73ba5107f5da7d11305cd349e4d310062 BT: Pairing fails when it coincides with role switch wit
Change-Id: Iead240d54247ed8bf355d1b48f9eb343cd9b6860
CRs-Fixed:
1105371
Service qcabuildsw [Mon, 27 Feb 2017 10:23:48 +0000 (02:23 -0800)]
Merge "BT: Pairing fails when it coincides with role switch with 3rd device" into bt.lnx.2.1.c1-dev
Linux Build Service Account [Thu, 23 Feb 2017 08:58:05 +0000 (01:58 -0700)]
Promotion of bt.lnx.2.1.c1-00038.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1109370 I6514825ab7880099188c2360cdf7eab00f23442f HID: Correct Max latency used for SSR
Change-Id: Ic550ebbf453a5918275b7666b8593805f2ba456f
CRs-Fixed:
1109370
Service qcabuildsw [Thu, 23 Feb 2017 07:42:16 +0000 (23:42 -0800)]
Merge "HID: Correct Max latency used for SSR" into bt.lnx.2.1.c1-dev
Nitin Arora [Fri, 19 Aug 2016 00:54:22 +0000 (17:54 -0700)]
BT: Pairing fails when it coincides with role switch with 3rd device
Authentication complete after role switch with a device after
role switch caused initialization of sdp and finally change
in bond state machine. This becomes a problem a bonding activity
is also in progress.
Added condition to ensure initialization of sdp only when
authentication complete has arrived from the same device for
which bonding was initialized.
Change-Id: I7b213ac73ba5107f5da7d11305cd349e4d310062
CRs-Fixed:
1105371
Linux Build Service Account [Sat, 11 Feb 2017 04:52:54 +0000 (21:52 -0700)]
Promotion of bt.lnx.2.1.c1-00035.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1106396 I7b612323891eb4205b2dd6dcd8df7a527d875f09 PAN: decrease number of PAN connection while BNEP connec
Change-Id: I92eb9e11e45e2fe6305a22fbf5b06a064b26b61e
CRs-Fixed:
1106396
zhenchao [Fri, 30 Dec 2016 05:45:12 +0000 (13:45 +0800)]
PAN: decrease number of PAN connection while BNEP connect fail
While BNEP connect request and BNEP connect indication occur at
the same time. BNEP connect would fail, but PAN connection number
is not decreased by one after return failure. So that subsequent
PAN connection always fail.
CRs-Fixed:
1106396
Change-Id: I7b612323891eb4205b2dd6dcd8df7a527d875f09
Linux Build Service Account [Wed, 8 Feb 2017 04:25:49 +0000 (21:25 -0700)]
Promotion of bt.lnx.2.1.c1-00034.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1090716 I7fb52edbd304c48358eb8269001de2b18d36029f Do not use remote device's preferred connection params.
2001484 I48e4b5117bec9cb26fc22a2b3c83a7254b7b03de BT: Disable outgoing profile connection in collision
1105610 I866617f1f443c90a0a9ee16a90bafea709e262cd BT: Resetting BTA dm state while sending disable event
Change-Id: I789ab1975d5d02556df5f54c1755a2dd3cf7b4a1
CRs-Fixed:
2001484,
1090716,
1105610
Service qcabuildsw [Wed, 8 Feb 2017 03:24:49 +0000 (19:24 -0800)]
Merge "BT: Resetting BTA dm state while sending disable event" into bt.lnx.2.1.c1-dev
Service qcabuildsw [Wed, 8 Feb 2017 03:24:09 +0000 (19:24 -0800)]
Merge "Do not use remote device's preferred connection params." into bt.lnx.2.1.c1-dev
Venkata Jagadeesh Garaga [Mon, 30 Jan 2017 09:59:13 +0000 (15:29 +0530)]
BT: Disable outgoing profile connection in collision
Disable outgoing profile connection in collision case
for Honda HFT Remote Device.
Change-Id: I48e4b5117bec9cb26fc22a2b3c83a7254b7b03de
CRs-fixed:
2001484
Linux Build Service Account [Thu, 2 Feb 2017 18:09:32 +0000 (11:09 -0700)]
Promotion of bt.lnx.2.1.c1-00033.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1113999 I5a8c9e76fca4f80c1f2a3513344f79042cc5728b Fix for the issues reported by static analysis tool.
Change-Id: I268793b33b6757b0dbfc51eea69999d4ca35e55c
CRs-Fixed:
1113999
Service qcabuildsw [Thu, 2 Feb 2017 17:07:56 +0000 (09:07 -0800)]
Merge "Fix for the issues reported by static analysis tool." into bt.lnx.2.1.c1-dev
Linux Build Service Account [Wed, 1 Feb 2017 09:26:38 +0000 (02:26 -0700)]
Promotion of bt.lnx.2.1.c1-00032.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
934966 I59afb07c9f8c1eb4cb1fc4c938710ec24761debb Prevents rejection of valid max connection interval para
Change-Id: I1bf108b24a9d34285e4f6fa47d9d41027427674e
CRs-Fixed: 934966
Service qcabuildsw [Wed, 1 Feb 2017 06:31:44 +0000 (22:31 -0800)]
Merge "Prevents rejection of valid max connection interval parameter update requests" into bt.lnx.2.1.c1-dev
Linux Build Service Account [Mon, 30 Jan 2017 11:31:25 +0000 (04:31 -0700)]
Promotion of bt.lnx.2.1.c1-00031.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1113473 I5676534a0c05a81e508e7ed9495b739ca3be0493 Bluetooth: fix fd leak during add/remove gatt service
Change-Id: I69b726fe52db59ffefc24d6758eecb11c6cd1aee
CRs-Fixed:
1113473
Service qcabuildsw [Mon, 30 Jan 2017 09:01:40 +0000 (01:01 -0800)]
Merge "Bluetooth: fix fd leak during add/remove gatt service" into bt.lnx.2.1.c1-dev
Gurpreet Ghai [Thu, 29 Dec 2016 14:42:16 +0000 (20:12 +0530)]
BT: Resetting BTA dm state while sending disable event
Problem: When disable timer fires after waiting for closure
of ACL connections, bta dm disable event is sent. However,
the bta dm state is not reset. This causes, next enable
sequence to return without starting modules.
Error: When controller module is not initialized during enable
sequence and controller module functions are accessed, assert
occurs causing Bluetooth process to crash.
Fix: The disable event must be sent from proper channel by
calling the appropriate callback even in the case of timeout.
CRs-Fixed:
1105610
Change-Id: I866617f1f443c90a0a9ee16a90bafea709e262cd
Linux Build Service Account [Fri, 27 Jan 2017 06:08:53 +0000 (23:08 -0700)]
Promotion of bt.lnx.2.1.c1-00030.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1113361 Ia8671d83523c368fbf1441fe42a66067fb99d1fd RFCOMM: Incoming connection from car radio failing
Change-Id: I67cd4b2c9275c5b052a84a23bb8760cb222d3626
CRs-Fixed:
1113361
Service qcabuildsw [Fri, 27 Jan 2017 04:57:08 +0000 (20:57 -0800)]
Merge "RFCOMM: Incoming connection from car radio failing" into bt.lnx.2.1.c1-dev
Linux Build Service Account [Tue, 24 Jan 2017 12:52:07 +0000 (05:52 -0700)]
Promotion of bt.lnx.2.1.c1-00029.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1108527 I96a23f49075b825b5d33327980a420e52d624372 Put a check to avoid buffer overflow.
Change-Id: I9031238538245707e1a3530d6c6a2d61a803602c
CRs-Fixed:
1108527
Pradeep Panigrahi [Tue, 3 Nov 2015 07:59:55 +0000 (13:29 +0530)]
Prevents rejection of valid max connection interval parameter update requests
Min connection interval is updated to BTM_BLE_CONN_INT_LIMIT(11.25 ms)
if the requested min is < 11.25 ms. The L2CAP connection update request
is rejected if max connection interval requested is < 11.25 ms since
max connection interval becomes less than the min connection interval
(11.25 ms) in the host logic in l2cble_process_sig_cmd fucntion. Hence,
max connection interval parameter requests with 7.5 ms are rejected
currently.
CRs-fixed: 934966
Change-Id: I59afb07c9f8c1eb4cb1fc4c938710ec24761debb
venkata Jagadeesh Garaga [Thu, 12 Jan 2017 10:51:49 +0000 (16:21 +0530)]
RFCOMM: Incoming connection from car radio failing
When incoming rfcomm connection(multiplexer channel)
established,trigger port start cnf if at least one
opening port is pending from DUT side,otherwise
DUT starts 2 sec mcb inactivity timer and
initiates rfcomm disc after 2 sec which causes
incoming connection failures.
Change-Id: Ia8671d83523c368fbf1441fe42a66067fb99d1fd
CRs-Fixed:
1113361
Jack He [Fri, 20 Jan 2017 19:17:44 +0000 (11:17 -0800)]
Corrected default value assignments in Bluetooth A2DP Metrics
* In certain cases btif_media_task_stop_aa_req() could be called before
btif_media_task_start_aa_req() is called, resulting in session_start_us
to be 0. In this case, audio_duration_ms = time_now_us() - 0 will be a
very large number that is not the actual audio duration.This CL marks
audio_duration_ms as -1 in the above situation so that we can
differentiate between valid and invalid audio durations
* Set default timer and counter values to 0 when
tx_queue_dequeue_stats.total_updates > 1
* Move update_scheduling_stats for tx_queue_enqueue_stats to
btif_media_task_aa_handle_timer as we intend to capture the time
intervals for enqueue scheduling instead of time intervals between
frame enqueue (i.e. one scheduling event can enqueue multiple frames)
* Use tx_queue_enqueue_stats instead of *dequeue* since only enqueue is
triggered by timer event
Bug:
33694310
Test: Code compilation, BtFunhausMetricsTest
Change-Id: I10984920afd4d77f07a5ac75736f8dcd69b13af8
Venkata Jagadeesh Garaga [Thu, 8 Dec 2016 11:56:01 +0000 (17:26 +0530)]
A2dp connection failing with connection timeout
Steps:
1. Pair and connect carkit from DUT
2. Disconnect the carkit from DUT
3. Unpair DUT from carkit menu and initiate pair from carkit
Pairing and a2dp connection should be successful
Failure: Paring and a2dp connection failing
Root Cause: As stack posting authentication failure to upper layers
when SOC gives key missing error code remote removed from
DUT paired list, but same time lower layers keep retrying
for missing key and leading to connection failure.
Fix: Don't post authentication complete to upper layers when stack
re trying for security in key missing or transaction collision cases
Change-Id: I970c8679bf27801fe46f8dd757d6435ed500f77f
CRs-fixed:
1106139
Pradeep Panigrahi [Thu, 5 Jan 2017 19:00:03 +0000 (00:30 +0530)]
Bluetooth: fix fd leak during add/remove gatt service
Fix a crash issue which is caused due to FD leak, while we
are adding service from a gattServer.
Use Case:
Add service/Remove service from LE application
Failure: Bluetooth crash because FD leak is causing
the limit of open file descriptors to be exhausted.
Fix: While adding service we were allocating memory for same service
buffer twice causing fd leak. Add change to avoid redundant memory
allocation during service addition.
CRs-fixed:
1113473
Change-Id: I5676534a0c05a81e508e7ed9495b739ca3be0493
Satheesh Kumar Pallemoni [Mon, 16 Jan 2017 09:20:18 +0000 (14:50 +0530)]
Put a check to avoid buffer overflow.
Possible buffer overflow due to unvalidated user supplied length
in a2dp_ctrl_receive(). To avoid this keep a check on the length
of the received data.
CRs-Fixed:
1108527
Change-Id: I96a23f49075b825b5d33327980a420e52d624372
Satheesh Kumar Pallemoni [Fri, 20 Jan 2017 09:50:54 +0000 (15:20 +0530)]
Fix for the issues reported by static analysis tool.
Fix for the issues reported by static analysis tool.
CRs-Fixed:
1113999
Change-Id: I5a8c9e76fca4f80c1f2a3513344f79042cc5728b
Linux Build Service Account [Fri, 20 Jan 2017 09:20:51 +0000 (02:20 -0700)]
Promotion of bt.lnx.2.1.c1-00028.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1108916 I1ce373960a88e489eb9a707e996052ba248387e7 Bluetooth: Fix gatt disconnection issue from GattServer
Change-Id: I34a6850e5d0dd87f5db4df983cba165f738ce682
CRs-Fixed:
1108916
Service qcabuildsw [Fri, 20 Jan 2017 06:02:45 +0000 (22:02 -0800)]
Merge "Bluetooth: Fix gatt disconnection issue from GattServer" into bt.lnx.2.1.c1-dev
juncao [Wed, 18 Jan 2017 06:25:06 +0000 (14:25 +0800)]
HID: Correct Max latency used for SSR
This change ensure BT HID host will use correct Max latency when
host initates sniff subrating
CRs-Fixed:
1109370
Change-Id: I6514825ab7880099188c2360cdf7eab00f23442f
Jack He [Tue, 17 Jan 2017 23:41:30 +0000 (15:41 -0800)]
Fix A2DP Metrics Logging Capacity
* Set the maximum number of wake events logged to 1000
* Stop logging wake log name as it takes too much memory
* Add counters for each of the repeated values in BluetoothLog so that
the true number of events can be determined while oldest event get
dropped
* Log Bluetooth session disconnect reasons using enum instead of string
in order to save memory usage
* Apply changes to bluetooth.proto in ag/
1460462 on system/bt
Bug:
33694310
Test: Code compilation and unit tests
Change-Id: I2cc6f9304725938b63b211d615eb1941eac60edf
Jakub Pawlowski [Mon, 16 Jan 2017 12:05:57 +0000 (04:05 -0800)]
Fix NPE when discovering invalid GATT datatbase
When doing a discovery of invalid GATT database, where two services are
added with same start handle, characteristics are added to the first
one, where descriptors are added to the later. This cause NPE when
adding descriptor.
Bug:
34280184
Test: manual test
Change-Id: I27619098df33a641cb089b82cf4d4ffd3c6e6aea
(cherry picked from commit
8957fdca4f6a1ba963b81983e8a40a82c3b1122d)
Linux Build Service Account [Tue, 17 Jan 2017 15:29:19 +0000 (08:29 -0700)]
Promotion of bt.lnx.2.1.c1-00027.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1095997 Iee3b796342f53148d0722b5aad00f1e9267199fe Bluetooth: Fix cannot show music information correctlly
Change-Id: I73b8ec23992bc87b8c3d9ea9098efbb3bbed7af7
CRs-Fixed:
1095997
juncao [Fri, 2 Dec 2016 07:37:59 +0000 (15:37 +0800)]
Bluetooth: Fix cannot show music information correctlly
Some customer want to remove the avrcp browsing feature, as they
donnot have valid media player that support avrcp browsing. Though
AVCT_BROWSE_INCLUDED is defined as false, DUT shall still set the
browsing supported bit according to blacklist, thus only reset the
browsing bit when the AVCT_BROWSE_INCLUDED equals to true.
Change-Id: Iee3b796342f53148d0722b5aad00f1e9267199fe
CRs-Fixed:
1095997
Pradeep Panigrahi [Tue, 10 Jan 2017 04:54:58 +0000 (10:24 +0530)]
Bluetooth: Fix gatt disconnection issue from GattServer
Fix disconnection logic for gatt server case, to ensure connection
is cancelled for pending connections and disconnect is sent only for
established connection.
CRs-fixed:
1108916
Change-Id: I1ce373960a88e489eb9a707e996052ba248387e7
Jacky Cheung [Tue, 10 Jan 2017 18:12:20 +0000 (18:12 +0000)]
Merge "Serialize stack shutdown, state change callback and cleanup" into cw-f-dev
am:
718b632f2b
Change-Id: I1ce4066cb7598d38cd2963ff2a9800a8f9f5debe
Gurpreet Ghai [Tue, 10 Jan 2017 18:12:19 +0000 (18:12 +0000)]
Serialize stack shutdown, state change callback and cleanup
am:
352b8e89ea
Change-Id: Icace606e4c596074c4a120678d65511c78f683c4
Jacky Cheung [Tue, 10 Jan 2017 18:02:33 +0000 (18:02 +0000)]
Merge "Serialize stack shutdown, state change callback and cleanup" into cw-f-dev
Andre Eisenbach [Tue, 10 Jan 2017 02:21:38 +0000 (18:21 -0800)]
resolve merge conflicts of
316589aa to nyc-mr2-dev
Change-Id: I1a5e1b3d09b5bc5d13eda31fd633146536dbd7ee
Andre Eisenbach [Mon, 9 Jan 2017 23:05:41 +0000 (23:05 +0000)]
Remove position dependent lookup tables in AT command parser
am:
8d3cf5988a
Change-Id: I0a690f1538c49fbed743ccf324d240dbb8c927c8
Jack He [Fri, 9 Dec 2016 03:29:00 +0000 (19:29 -0800)]
Fix A2DP metrics session duration
* Fixed A2DP duration counting. It is now counting from music play start
to music play end.
* Start logging a2dp connection as Bluetooth sessions. Currently, only
A2DP connections are logged. Thus the bluetooth session length will be
the total connection length and the length within A2DP session message
will be the audio connection length.
* Add a audio_duration_millis field in A2DPSession to record audio duration
* Add bonded memory constraint for metrics entries
* Use a builder mechanism to only build metrics upon dumping
* Refactor metrics module into BluetoothMetricsLogger class
* Created unit test for BluetoothMetricsLogger
Bug:
33694310
Test: Code compilation, Unit test, BtFunhausMetricsTest
Merged-In: Iea2a997c4ea074687a5d50860e9229f0e1b82659
Change-Id: Iea2a997c4ea074687a5d50860e9229f0e1b82659
(cherry picked from commit
f3175629208a64b190dde4dcf5f92cacef70d3e9)
Jack He [Tue, 20 Dec 2016 19:57:17 +0000 (11:57 -0800)]
Add LeakyBondedQueue to libosi
* LeakyBondedQueue is a fixed size queue that leaks oldest item when
reaching its capacity. This is useful in creating memory bonded data
structure where freshness is more important than full coverage.
* The queue is protected by a simple mutex and is thread-safe, although
improvements could be made to lock enqueue and dequeue separately, it
is not implemented at this moment due to lack of demand
* The queue uses unique_ptr to automatically free its content when it is
destructed
* Add several tests to verify its API and memory management
* This data structure will be firstly used in the metrics module
Bug:
33781460
Test: Code compilation, unit tests
Merged-In: I51cb73666ac58e4792d9cba0d6f16dad30a0ff39
Change-Id: I51cb73666ac58e4792d9cba0d6f16dad30a0ff39
(cherry picked from commit
a22dd221033bb6b4052544c4489934a4ba2a3416)
Mingbo Zhang [Thu, 29 Sep 2016 10:16:24 +0000 (18:16 +0800)]
Enable authentication for a2dp
enable authentication for a2dp to avoid a2dp connected
when device unbonded.
Change-Id: Id942389cb44b048061a7457372d642e39bf75767
CRs-Fixed:
1082873
Gurpreet Ghai [Mon, 12 Sep 2016 12:06:53 +0000 (17:36 +0530)]
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.
Test: code compilation.
Change-Id: Ic96205b5c304acb44eab53f4e2cb150726643bda
(cherry picked from commit
16e112b1861d8f1147325372608c905627e00e88)
Andre Eisenbach [Sat, 23 Jul 2016 06:15:11 +0000 (23:15 -0700)]
Remove position dependent lookup tables in AT command parser
The various position dependent lookup tables in the AT command parser
were out of sync, causing invalid responses to the AT+CBPS command for
example.
This patch gets rid of positionally dependent enums for simple lookup
tables that correlate all the values for easier, less error prone
maintenance of the related tables.
This re-instates a previously reverted patch after fixing incorrect
field order in tBTA_AG_INDICATOR_MAP.
Change-Id: I7f8a052e78706c8c72c5102b38cfe9ce200ae0d9
Fixes:
29978908
Linux Build Service Account [Sat, 31 Dec 2016 03:32:48 +0000 (20:32 -0700)]
Promotion of bt.lnx.2.1.c1-00024.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1101231 I50ac058acc2703b1ecc1c0cfb604fd67aff63c67 Bluetooth: Reset the pairing_cb for bredr/cross key pair
1100764 I5474f15f6d9fa02c853dfd1a34d09603c709f5e5 Synchronise the apt-x media worker thread for start and
1106146 I629fac228369e1aadd1aa509eb03c59dc840a252 Proper handling of AV Discover and GetCaps commands
Change-Id: I8b26ec663a811c1435af71e7cf34b4eee84a47f9
CRs-Fixed:
1101231,
1106146,
1100764
Linux Build Service Account [Sat, 31 Dec 2016 02:00:00 +0000 (18:00 -0800)]
Merge "Bluetooth: Reset the pairing_cb for bredr/cross key pairing address"
Service qcabuildsw [Sat, 31 Dec 2016 01:15:44 +0000 (17:15 -0800)]
Merge "Proper handling of AV Discover and GetCaps commands" into bt.lnx.2.1.c1-dev
Ayan Ghosh [Mon, 12 Dec 2016 13:03:05 +0000 (18:33 +0530)]
Proper handling of AV Discover and GetCaps commands
Proper handling of collision scenarios encountered in handling
of AV Discover and GetCaps commands.
When collision is detected in GetCaps command execution because
of remote doing setconfig in between, instead of ignoring the
failure, disconnect AV link to avoid other dicrepancies seen
during codec selection during stream start.
CRs-Fixed:
1106146
Change-Id: I629fac228369e1aadd1aa509eb03c59dc840a252
Pradeep Panigrahi [Wed, 16 Nov 2016 07:35:39 +0000 (13:05 +0530)]
Do not use remote device's preferred connection params.
Add change to not use remote's preferred connection params
and let remote request for required params. This prevents
IOT issues with remote devices which does not handle the same
parameters properly when requested by master device.
Revert "Fix sluggish HID devices"
This reverts commit
3165425aff5744bf682a2887e9704e66f8d34a87.
CRs-fixed:
1090716
Change-Id: I7fb52edbd304c48358eb8269001de2b18d36029f
Sagar Verma [Wed, 30 Nov 2016 19:11:51 +0000 (00:41 +0530)]
Synchronise the apt-x media worker thread for start and cleanup
- Synchronise the start and stop of Apt-x media thread as during
stress testing the libraries were unloaded or worker threads got
freed before invoking the media start/stop functions.
CRs-Fixed:
1100764
Change-Id: I5474f15f6d9fa02c853dfd1a34d09603c709f5e5
Linux Build Service Account [Wed, 28 Dec 2016 05:11:20 +0000 (22:11 -0700)]
Promotion of bt.lnx.2.1.c1-00021.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1105261 I3c95af9defffa6763b069149943baabef1c6fdc3 Fixes for Issues reported by static analysis tool.
Change-Id: I1c0235ff46b661bffb90e89f4edf9d1805eaba82
CRs-Fixed:
1105261
Linux Build Service Account [Tue, 27 Dec 2016 19:15:25 +0000 (11:15 -0800)]
Merge "Fixes for Issues reported by static analysis tool."