OSDN Git Service

android-x86/system-bt.git
7 years agoPromotion of bt.lnx.2.1.c1-00034.
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: 200148410907161105610

7 years agoMerge "BT: Resetting BTA dm state while sending disable event" into bt.lnx.2.1.c1-dev
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

7 years agoMerge "Do not use remote device's preferred connection params." 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

7 years agoBT: Disable outgoing profile connection in collision
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

7 years agoPromotion of bt.lnx.2.1.c1-00033.
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

7 years agoMerge "Fix for the issues reported by static analysis tool." into bt.lnx.2.1.c1-dev
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

7 years agoPromotion of bt.lnx.2.1.c1-00032.
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

7 years agoMerge "Prevents rejection of valid max connection interval parameter update requests...
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

7 years agoPromotion of bt.lnx.2.1.c1-00031.
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

7 years agoMerge "Bluetooth: fix fd leak during add/remove gatt service" into bt.lnx.2.1.c1-dev
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

7 years agoBT: Resetting BTA dm state while sending disable event
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

7 years agoPromotion of bt.lnx.2.1.c1-00030.
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

7 years agoMerge "RFCOMM: Incoming connection from car radio failing" into bt.lnx.2.1.c1-dev
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

7 years agoPromotion of bt.lnx.2.1.c1-00029.
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

7 years agoPrevents rejection of valid max connection interval parameter update requests
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

7 years agoRFCOMM: Incoming connection from car radio failing
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

7 years agoBluetooth: fix fd leak during add/remove gatt service
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

7 years agoPut a check to avoid buffer overflow.
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

7 years agoFix for the issues reported by static analysis tool.
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

7 years agoPromotion of bt.lnx.2.1.c1-00028.
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

7 years agoMerge "Bluetooth: Fix gatt disconnection issue from GattServer" into bt.lnx.2.1.c1-dev
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

7 years agoPromotion of bt.lnx.2.1.c1-00027.
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

7 years agoBluetooth: Fix cannot show music information correctlly
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

7 years agoBluetooth: Fix gatt disconnection issue from GattServer
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

7 years agoPromotion of bt.lnx.2.1.c1-00024.
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: 110123111061461100764

7 years agoMerge "Bluetooth: Reset the pairing_cb for bredr/cross key pairing address"
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"

7 years agoMerge "Proper handling of AV Discover and GetCaps commands" into bt.lnx.2.1.c1-dev
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

7 years agoProper handling of AV Discover and GetCaps commands
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

7 years agoDo not use remote device's preferred connection params.
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

7 years agoSynchronise the apt-x media worker thread for start and cleanup
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

7 years agoPromotion of bt.lnx.2.1.c1-00021.
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

7 years agoMerge "Fixes for Issues reported by static analysis tool."
Linux Build Service Account [Tue, 27 Dec 2016 19:15:25 +0000 (11:15 -0800)]
Merge "Fixes for Issues reported by static analysis tool."

7 years agoFixes for Issues reported by static analysis tool.
Satheesh Kumar Pallemoni [Wed, 30 Nov 2016 15:34:22 +0000 (21:04 +0530)]
Fixes for Issues reported by static analysis tool.

Fix uninitialized variable, Arrya out of bound etc. in the
fludroid code space.

CRs-Fixed: 1105261
Change-Id: I3c95af9defffa6763b069149943baabef1c6fdc3

7 years agoPromotion of bt.lnx.2.1.c1-00020.
Linux Build Service Account [Fri, 23 Dec 2016 15:25:23 +0000 (08:25 -0700)]
Promotion of bt.lnx.2.1.c1-00020.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1090082   I1a4efd61323c75d7a5f4b0b483e1230b3a160aa7   GAP: Host initiates sniff during OPP file transfer
1090693   Ib6e94b77a72f643308ca0c8f60ee1417a7e6caec   Bluetooth: Prevent LE connection request after SMP over

Change-Id: I774a670b48e72ef860f7dbb39b8a550c5fa79be4
CRs-Fixed: 10900821090693

7 years agoMerge "GAP: Host initiates sniff during OPP file transfer" into bt.lnx.2.1.c1-dev
Service qcabuildsw [Fri, 23 Dec 2016 14:24:12 +0000 (06:24 -0800)]
Merge "GAP: Host initiates sniff during OPP file transfer" into bt.lnx.2.1.c1-dev

7 years agoMerge "Bluetooth: Prevent LE connection request after SMP over BR" into bt.lnx.2...
Service qcabuildsw [Fri, 23 Dec 2016 14:22:55 +0000 (06:22 -0800)]
Merge "Bluetooth: Prevent LE connection request after SMP over BR" into bt.lnx.2.1.c1-dev

7 years agoPromotion of bt.lnx.2.1.c1-00019.
Linux Build Service Account [Wed, 21 Dec 2016 13:26:55 +0000 (06:26 -0700)]
Promotion of bt.lnx.2.1.c1-00019.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1097891   I90c9191c07330e0eef4ff910c2350c0e2ec209c0   Start the Tx idle timer if  wake_state is LPM_WAKE_ASSER
1089413   I58ff55ad5a243995ff2ac46b3ab10708b4f14a9d   Bluetooth: Improve HOGP input report error handling

Change-Id: Ieee48940554e2850bdc3c4b520548eea7a4cec9b
CRs-Fixed: 10894131097891

7 years agoMerge "Start the Tx idle timer if wake_state is LPM_WAKE_ASSERTED" into bt.lnx.2...
Service qcabuildsw [Tue, 20 Dec 2016 12:00:53 +0000 (04:00 -0800)]
Merge "Start the Tx idle timer if  wake_state is LPM_WAKE_ASSERTED" into bt.lnx.2.1.c1-dev

7 years agoMerge "Bluetooth: Improve HOGP input report error handling" into bt.lnx.2.1.c1-dev
Service qcabuildsw [Tue, 20 Dec 2016 11:58:52 +0000 (03:58 -0800)]
Merge "Bluetooth: Improve HOGP input report error handling" into bt.lnx.2.1.c1-dev

7 years agoPromotion of bt.lnx.2.1.c1-00017.
Linux Build Service Account [Sun, 18 Dec 2016 12:11:49 +0000 (04:11 -0800)]
Promotion of bt.lnx.2.1.c1-00017.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1098783   Id90118bc5e049dc0befa086d113995854c9ca6d5   Handle AG enable and disable events properly

Change-Id: Ib59532d21b27b8d751fb0bae68af1491f9b63627
CRs-Fixed: 1098783

7 years agoBluetooth: Reset the pairing_cb for bredr/cross key pairing address
Matadeen Mishra [Thu, 24 Dec 2015 15:33:52 +0000 (21:03 +0530)]
Bluetooth: Reset the pairing_cb for bredr/cross key pairing address

In between SDP if pairing and unpairing happen,device will get stuck
in pairing pairing_cb sturcture is not getting reset.
Reset the pairing_cb structure for bredr or cross key pairing address
only

Change-Id: I50ac058acc2703b1ecc1c0cfb604fd67aff63c67
CRs-Fixed: 1101231

7 years agoStart the Tx idle timer if wake_state is LPM_WAKE_ASSERTED
Luke Zhang [Mon, 5 Dec 2016 21:53:42 +0000 (13:53 -0800)]
Start the Tx idle timer if  wake_state is LPM_WAKE_ASSERTED

Previously our intenal code was changed to start Tx idle timer only
if the wake_state is LPM_WAKE_W4_TX_DONE. Changed it back to start Tx
idle timer if the wake_state is LPM_WAKE_ASSERTED as well

CRs-fixed: 1097891
Change-Id: I90c9191c07330e0eef4ff910c2350c0e2ec209c0

7 years agoBluetooth: Prevent LE connection request after SMP over BR
Pradeep Panigrahi [Fri, 24 Jul 2015 19:30:39 +0000 (12:30 -0700)]
Bluetooth: Prevent LE connection request after SMP over BR

This change performs LE specific discovery from LE auth cmpl
event, only if the SMP has been performed over CID = 6. In
case of cross key transport, discovery occurs in default way,
over BR transport because the LE remote might not be available
to connect back

CRs-fixed: 1090693

Change-Id: Ib6e94b77a72f643308ca0c8f60ee1417a7e6caec

7 years agoMerge "Handle AG enable and disable events properly"
Linux Build Service Account [Wed, 14 Dec 2016 19:04:50 +0000 (11:04 -0800)]
Merge "Handle AG enable and disable events properly"

7 years agoPromotion of bt.lnx.2.1.c1-00016.
Linux Build Service Account [Wed, 14 Dec 2016 15:38:07 +0000 (08:38 -0700)]
Promotion of bt.lnx.2.1.c1-00016.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1038828   Ieb1f23f9a8a937b21f7c5eca92da3b0b821400e6   DO NOT MERGE btif: check overflow on create_pbuf size
1090097   I8c51eb3d007584308d1ae06e678fe1a6c04e264c   BT: Modify implementation for command timeout crashdump

Change-Id: Iaf3660e7f4ba37e9b9e48182ed7127f1fb75595a
CRs-Fixed: 10388281090097

7 years agoMerge "BT: Modify implementation for command timeout crashdump collection"
Linux Build Service Account [Wed, 14 Dec 2016 05:45:47 +0000 (21:45 -0800)]
Merge "BT: Modify implementation for command timeout crashdump collection"

7 years agoDO NOT MERGE btif: check overflow on create_pbuf size
Marie Janssen [Thu, 12 May 2016 22:30:16 +0000 (15:30 -0700)]
DO NOT MERGE btif: check overflow on create_pbuf size

Bug: 27930580
Change-Id: Ieb1f23f9a8a937b21f7c5eca92da3b0b821400e6
(cherry picked from commit 514139f4b40cbb035bb92f3e24d5a389d75db9e6)

7 years agoBluetooth: Improve HOGP input report error handling
Pradeep Panigrahi [Wed, 9 Nov 2016 10:09:43 +0000 (15:39 +0530)]
Bluetooth: Improve HOGP input report error handling

This fixes com.android.bluetooth crash when receiving HOGP input report
for unknown characteristic.

CRs-fixed: 1089413

Change-Id: I58ff55ad5a243995ff2ac46b3ab10708b4f14a9d

7 years agoPromotion of bt.lnx.2.1.c1-00014.
Linux Build Service Account [Sun, 11 Dec 2016 11:33:44 +0000 (04:33 -0700)]
Promotion of bt.lnx.2.1.c1-00014.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1095995   Iacc558f34fb9ed0d970fc034e865d964da98609a   Fix for issues reported by Static analysis tool.

Change-Id: Idb215f3b79d47ba97a156186bdd3071723ca5eb2
CRs-Fixed: 1095995

7 years agoPromotion of bt.lnx.2.1.c1-00013.
Linux Build Service Account [Sat, 10 Dec 2016 15:07:35 +0000 (08:07 -0700)]
Promotion of bt.lnx.2.1.c1-00013.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------

Change-Id: Ic6427edc7a503012431cd9aa517d5fdbd41fc183

7 years agoMerge "Fix for issues reported by Static analysis tool."
Linux Build Service Account [Sat, 10 Dec 2016 13:18:41 +0000 (05:18 -0800)]
Merge "Fix for issues reported by Static analysis tool."

7 years agoTo Backport the N-Mr1 Changes
AnjaneeDevi Kapparapu [Fri, 9 Dec 2016 07:25:31 +0000 (12:55 +0530)]
To Backport the N-Mr1 Changes

To  Backport the N-Mr1 Changes

Merge remote-tracking branch 'origin/bt.lnx.2.1.c1-rel' into bt.lnx.2.1.c1-dev
Change-Id: Ia2fed80d1d171b2430f1cbec414cd6e156a39545
CRs-Fixed: 1099415

7 years agoHandle AG enable and disable events properly
Satish Kodishala [Thu, 1 Dec 2016 10:32:00 +0000 (16:02 +0530)]
Handle AG enable and disable events properly

For AG enable and disable events, NULL pointer is
passed as argument from bta to btif. Handle NULL pointer
for the events received in btif.

CRs-Fixed: 1098783
Change-Id: Id90118bc5e049dc0befa086d113995854c9ca6d5

7 years agoMerge "Promotion of bt.lnx.2.1.c1-00012."
Linux Build Service Account [Thu, 8 Dec 2016 13:14:33 +0000 (05:14 -0800)]
Merge "Promotion of bt.lnx.2.1.c1-00012."

7 years agoCompilation fix: N-MR1 merge
Lalit Kansara [Tue, 6 Dec 2016 12:22:45 +0000 (17:52 +0530)]
Compilation fix: N-MR1 merge

Change-Id: I345c84222923f4497297178f14a649496623a5fc

7 years agoMerge commit '699c01a12eec65e768fc6d41f4913ad6f1529b34' into remote
Vara Prasad A V S G [Wed, 7 Dec 2016 15:04:10 +0000 (20:34 +0530)]
Merge commit '699c01a12eec65e768fc6d41f4913ad6f1529b34' into remote

Conflicts:
stack/gatt/gatt_attr.c

Change-Id: I1879008ac9714512cf1ed1081062bf824b82a83d

7 years agoFix for issues reported by Static analysis tool.
Satheesh Kumar Pallemoni [Wed, 7 Dec 2016 05:52:24 +0000 (11:22 +0530)]
Fix for issues reported by Static analysis tool.

Fix for issues reported by Static analysis tool.

Change-Id: Iacc558f34fb9ed0d970fc034e865d964da98609a
CRs-Fixed: 1095995

7 years agoGAP: Host initiates sniff during OPP file transfer
Venkata Jagadeesh Garaga [Thu, 27 Oct 2016 10:55:45 +0000 (16:25 +0530)]
GAP: Host initiates sniff during OPP file transfer

As sys idle triggered on l2cap tx empty link may go
to sniff during large file transfers which takes more
than 5 sec transmission time.

This fix trigger sys idle for each sdu transmitted
and keeps the link active until file transfer complete

Change-Id: I1a4efd61323c75d7a5f4b0b483e1230b3a160aa7
CRs-Fixed: 1090082

7 years agoPromotion of bt.lnx.2.1.c1-00012.
Linux Build Service Account [Tue, 6 Dec 2016 16:38:32 +0000 (09:38 -0700)]
Promotion of bt.lnx.2.1.c1-00012.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1087262   I97c7076840d45700739f56c01585aaec4aa5ca9d   Start the Tx idle timer before sending out HCI command

Change-Id: I812659f93d55bb4c3316b50b8bb1689b676b8c14
CRs-Fixed: 1087262

7 years agoMerge commit '07772caf5ca22365dd62bc042de179a4da55f665' into remote
Naveen Kumar [Tue, 6 Dec 2016 14:02:12 +0000 (19:32 +0530)]
Merge commit '07772caf5ca22365dd62bc042de179a4da55f665' into remote

Conflicts:
device/include/interop_database.h

Change-Id: Ib74501079c29033065b1fa2335777c69edcfda23

7 years agoMerge commit '699c01a12eec65e768fc6d41f4913ad6f1529b34' into remote
Lalit Kansara [Tue, 6 Dec 2016 11:04:32 +0000 (16:34 +0530)]
Merge commit '699c01a12eec65e768fc6d41f4913ad6f1529b34' into remote

Conflicts:
audio_a2dp_hw/audio_a2dp_hw.c
bta/ag/bta_ag_cmd.c
bta/ag/bta_ag_int.h
bta/ag/bta_ag_sco.c
bta/av/bta_av_aact.c
bta/dm/bta_dm_act.c
bta/include/bta_ag_api.h
btif/src/btif_av.c
btif/src/btif_hf.c
btif/src/btif_rc.c
stack/btm/btm_dev.c
stack/gatt/gatt_main.c
stack/l2cap/l2c_ble.c

Change-Id: Id151e8554f51ff49ce7307d8cc3c3ca706620c7a

7 years agoBT: Modify implementation for command timeout crashdump collection
Manu Viswanadhan [Thu, 10 Nov 2016 14:20:14 +0000 (19:50 +0530)]
BT: Modify implementation for command timeout crashdump collection

- Start hardware error timer for all crashdump scenarios even when
  the property is not set by the user.
- Don't close hal immediately after SSR cleanup is called as the
  WCNSS filter would be terminated and hardware error event cannot
  be informed to the stack after crashdump collection.
- Correct the timeout set for hardware error event timer.

Change-Id: I8c51eb3d007584308d1ae06e678fe1a6c04e264c
CRs-Fixed: 1090097

7 years agoPromotion of bt.lnx.2.1.c1-00010.
Linux Build Service Account [Wed, 30 Nov 2016 17:28:02 +0000 (10:28 -0700)]
Promotion of bt.lnx.2.1.c1-00010.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1092992   I9cdbc5d81f35b3b4b4e49fd1509c847104d9e321   HID: Add Moto Keyboard KZ500 to blacklist
1091770   I6fa3744242f736cb1c361614c50b87b222de085b   Send empty attributes in getelementattribute & getitemat

Change-Id: I3fc3e855a97949bd67c54af5cbb92c68e116bcd6
CRs-Fixed: 10929921091770

7 years agoStart the Tx idle timer before sending out HCI command
Luke Zhang [Tue, 29 Nov 2016 22:31:59 +0000 (14:31 -0800)]
Start the Tx idle timer before sending out HCI command

In order to prevent pending command timer from starting before Tx
idle timer holds the wake lock, we start Tx idle timer before sending
out command.

Change-Id: I97c7076840d45700739f56c01585aaec4aa5ca9d

7 years agoMerge "Send empty attributes in getelementattribute & getitemattribute rsp."
Linux Build Service Account [Tue, 29 Nov 2016 08:03:26 +0000 (00:03 -0800)]
Merge "Send empty attributes in getelementattribute & getitemattribute rsp."

7 years agoMerge "HID: Add Moto Keyboard KZ500 to blacklist"
Linux Build Service Account [Tue, 29 Nov 2016 08:03:25 +0000 (00:03 -0800)]
Merge "HID: Add Moto Keyboard KZ500 to blacklist"

7 years agoPromotion of bt.lnx.2.1.c1-00009.
Linux Build Service Account [Sat, 26 Nov 2016 21:03:07 +0000 (14:03 -0700)]
Promotion of bt.lnx.2.1.c1-00009.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1092371   I8833d57f1a50b260cb35f0bf490aee83b074af68   A2DP: ACK A2dp success to HAL from AV started state.

Change-Id: I93ac27a8cbcb487b6e8d1ce4acd120071d4560dd
CRs-Fixed: 1092371

7 years agoMerge "A2DP: ACK A2dp success to HAL from AV started state."
Linux Build Service Account [Fri, 25 Nov 2016 04:41:53 +0000 (20:41 -0800)]
Merge "A2DP: ACK A2dp success to HAL from AV started state."

7 years agoSend empty attributes in getelementattribute & getitemattribute rsp.
Sumit Bajpai [Tue, 25 Oct 2016 11:04:07 +0000 (16:34 +0530)]
Send empty attributes in getelementattribute & getitemattribute rsp.

For the attributes which are not present or empty, we were not sending
empty string to remote. The change allows sending empty attributes
as well with len=0 and value as empty string.

Change-Id: I6fa3744242f736cb1c361614c50b87b222de085b

7 years agoPromotion of bt.lnx.2.1-00038.
Linux Build Service Account [Wed, 23 Nov 2016 22:11:04 +0000 (15:11 -0700)]
Promotion of bt.lnx.2.1-00038.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1091117                                               Bluetooth: Increase Codec config structure size
1083051   Id1300d96fa72ddf8a9cd19a4a7f86fa9a563ccde   Don't send avdtp_discover for incoming connections after
1088224   Ibb004e19f1c768e92475c4ff041431f28061491b   Bluetooth: Removes bond when user clicks on cancel pairi
1088753   I061c78a7aaa1ab58a2fc554d026305a0124eee77   GAP: Increase max remote ext feature pages to 3
1091192   Ib0ed919d6145078fb9fc4214caae15ab6e7be780   Bluetooth: Added SPP version 1.2 to SDP record.
926763   I98e649fa40a4622e3c6bce4ea5c53d51e25413b3   Fix the command timeout issue with either LPM or TX idle
1072160   I8ab7460865b609610df73c82fd1b9b0b628da69c   Bluetooth: Add boot timer permission for bdt

Change-Id: I544a614859e78a44d5401d8872b45e305459eef0
CRs-Fixed: 1091117107216010887531088224, 926763, 10911921083051

7 years agoPromotion of bt.lnx.2.1.c1-00008.
Linux Build Service Account [Wed, 23 Nov 2016 21:27:16 +0000 (14:27 -0700)]
Promotion of bt.lnx.2.1.c1-00008.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1079156   Ic63339f4f46eda70e575a4103974766d54a9d624   Revert "Register for Service Changed notifications for u
1088753   I061c78a7aaa1ab58a2fc554d026305a0124eee77   GAP: Increase max remote ext feature pages to 3
1092368   I06409dd9d1c4a8aa8a4871a809f212deef7e7673   Avrcp: Do not disconnect standalone avrcp connection.
1072160   I3c8b8574a38b48f1af42efb319fe2ba8d5b536a5   Bluetooth: Add boot timer permission for bdt

Change-Id: I5b7cacf2f0d3db5a9c4ef1de723cb6282869d216
CRs-Fixed: 1072160108875310923681079156

7 years agoMerge "GAP: Increase max remote ext feature pages to 3"
Linux Build Service Account [Wed, 23 Nov 2016 14:09:02 +0000 (06:09 -0800)]
Merge "GAP: Increase max remote ext feature pages to 3"

7 years agoMerge "Avrcp: Do not disconnect standalone avrcp connection."
Linux Build Service Account [Wed, 23 Nov 2016 14:09:02 +0000 (06:09 -0800)]
Merge "Avrcp: Do not disconnect standalone avrcp connection."

7 years agoMerge "Revert "Register for Service Changed notifications for untrusted devices""
Linux Build Service Account [Wed, 23 Nov 2016 14:09:01 +0000 (06:09 -0800)]
Merge "Revert "Register for Service Changed notifications for untrusted devices""

7 years agoMerge "Bluetooth: Add boot timer permission for bdt" into bt.lnx.2.1-dev
Service qcabuildsw [Tue, 22 Nov 2016 22:58:39 +0000 (14:58 -0800)]
Merge "Bluetooth: Add boot timer permission for bdt" into bt.lnx.2.1-dev

7 years agoMerge "Bluetooth: Removes bond when user clicks on cancel pairing" into bt.lnx.2...
Service qcabuildsw [Tue, 22 Nov 2016 22:57:37 +0000 (14:57 -0800)]
Merge "Bluetooth: Removes bond when user clicks on cancel pairing" into bt.lnx.2.1-dev

7 years agoMerge "GAP: Increase max remote ext feature pages to 3" into bt.lnx.2.1-dev
Service qcabuildsw [Tue, 22 Nov 2016 22:57:35 +0000 (14:57 -0800)]
Merge "GAP: Increase max remote ext feature pages to 3" into bt.lnx.2.1-dev

7 years agoMerge "Bluetooth: Added SPP version 1.2 to SDP record." into bt.lnx.2.1-dev
Service qcabuildsw [Tue, 22 Nov 2016 22:57:26 +0000 (14:57 -0800)]
Merge "Bluetooth: Added SPP version 1.2 to SDP record." into bt.lnx.2.1-dev

7 years agoHID: Add Moto Keyboard KZ500 to blacklist
Hemant Gupta [Tue, 22 Nov 2016 06:15:02 +0000 (11:45 +0530)]
HID: Add Moto Keyboard KZ500 to blacklist

Add Moto Keyboard KZ500 to blacklist so that digitizer descriptor
can be removed from SDP report descriptor allowing keyboard to function
properly with DUT.

CRs-Fixed: 1092992
Change-Id: I9cdbc5d81f35b3b4b4e49fd1509c847104d9e321

7 years agoMerge "Don't send avdtp_discover for incoming connections after setconfig_rsp." into...
Service qcabuildsw [Mon, 21 Nov 2016 22:55:09 +0000 (14:55 -0800)]
Merge "Don't send avdtp_discover for incoming connections after setconfig_rsp." into bt.lnx.2.1-dev

7 years agoMerge "Bluetooth: Increase Codec config structure size" into bt.lnx.2.1-dev
Service qcabuildsw [Mon, 21 Nov 2016 22:55:03 +0000 (14:55 -0800)]
Merge "Bluetooth: Increase Codec config structure size" into bt.lnx.2.1-dev

7 years agoAvrcp: Do not disconnect standalone avrcp connection.
Sumit Bajpai [Thu, 10 Nov 2016 04:42:56 +0000 (10:12 +0530)]
Avrcp: Do not disconnect standalone avrcp connection.

For devices which support RC but don't support A2DP,
do not disconnect RC connection when AV connection fails.

Change-Id: I06409dd9d1c4a8aa8a4871a809f212deef7e7673

7 years agoBluetooth: Add boot timer permission for bdt
zhenchao [Wed, 28 Sep 2016 09:59:03 +0000 (17:59 +0800)]
Bluetooth: Add boot timer permission for bdt

As CLOCK_BOOTTIME timer does not have boot permission.
This timer start fails and hence bt turn on fails from
bdt. This change adds boot permission for timers from
bdt.

Change-Id: I8ab7460865b609610df73c82fd1b9b0b628da69c
CRs-Fixed: 1072160

7 years agoBluetooth: Add boot timer permission for bdt
zhenchao [Wed, 28 Sep 2016 09:59:03 +0000 (17:59 +0800)]
Bluetooth: Add boot timer permission for bdt

As CLOCK_BOOTTIME timer does not have boot permission.
This timer start fails and hence bt turn on fails from
bdt. This change adds boot permission for timers from
bdt.

Change-Id: I3c8b8574a38b48f1af42efb319fe2ba8d5b536a5
CRs-Fixed: 1072160

7 years agoBluetooth: Removes bond when user clicks on cancel pairing
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

7 years agoPromotion of bt.lnx.2.1-00035.
Linux Build Service Account [Fri, 18 Nov 2016 07:03:57 +0000 (00:03 -0700)]
Promotion of bt.lnx.2.1-00035.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1090097   I8c51eb3d007584308d1ae06e678fe1a6c04e264c   BT: Modify implementation for command timeout crashdump
1089877   I54047b9e42dace39bf616d8e4baa46bf8447b1bf   AVRCP: Connection failure due to collision.
1062320   Id5945da87f00eb7ab77a5f217c95cc43f0136e06   Removing unnecessary creation of semaphore as part of st

Change-Id: Ia7fd7c27d1a833159ede934db01941aca0b5f786
CRs-Fixed: 106232010900971089877

7 years agoBluetooth: Increase Codec config structure size
Bhakthavatsala Raghavendra [Thu, 17 Nov 2016 03:47:48 +0000 (19:47 -0800)]
Bluetooth: Increase Codec config structure size

Increase Codec config structure size to accomadate
larger codec config data

7 years agoFix the command timeout issue with either LPM or TX idle timer
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

7 years agoBluetooth: Added SPP version 1.2 to SDP record.
Matadeen Mishra [Wed, 17 Feb 2016 10:40:23 +0000 (16:10 +0530)]
Bluetooth: Added SPP version 1.2 to SDP record.

 Added SPP version 1.2 to SDP record. SPP 1.0 is deprecated.

Change-Id: Ib0ed919d6145078fb9fc4214caae15ab6e7be780
CRs-Fixed: 1091192

7 years agoA2DP: ACK A2dp success to HAL from AV started state.
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

7 years agoRemoving unnecessary creation of semaphore as part of stack cleanup
Manu Viswanadhan [Fri, 14 Oct 2016 11:35:35 +0000 (17:05 +0530)]
Removing unnecessary creation of semaphore as part of stack cleanup

Removing unnecessary creation of semaphore as part of stack cleanup,
which results in FD leak.

Change-Id: Id5945da87f00eb7ab77a5f217c95cc43f0136e06
CRs-Fixed: 1062320

7 years agoMerge "BT: Modify implementation for command timeout crashdump collection" into bt...
Service qcabuildsw [Thu, 17 Nov 2016 00:45:57 +0000 (16:45 -0800)]
Merge "BT: Modify implementation for command timeout crashdump collection" into bt.lnx.2.1-dev

7 years agoMerge "AVRCP: Connection failure due to collision." into bt.lnx.2.1-dev
Service qcabuildsw [Thu, 17 Nov 2016 00:45:55 +0000 (16:45 -0800)]
Merge "AVRCP: Connection failure due to collision." into bt.lnx.2.1-dev

7 years agoPromotion of bt.lnx.2.1.c1-00007.
Linux Build Service Account [Wed, 16 Nov 2016 18:56:27 +0000 (11:56 -0700)]
Promotion of bt.lnx.2.1.c1-00007.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1088224   Ibb004e19f1c768e92475c4ff041431f28061491b   Bluetooth: Removes bond when user clicks on cancel pairi

Change-Id: I7048b63a1c55d4fa1d814e28bbb5f231293dd3ce
CRs-Fixed: 1088224

8 years agoGAP: Increase max remote ext feature pages to 3
Venkata Jagadeesh Garaga [Wed, 9 Nov 2016 05:10:20 +0000 (10:40 +0530)]
GAP: Increase max remote ext feature pages to 3

Increase max remote ext feature pages to 3 from
2 as some latest remotes supporting 3 extended
pages also

Change-Id: I061c78a7aaa1ab58a2fc554d026305a0124eee77
CRs-Fixed: 1088753

8 years agoPromotion of bt.lnx.2.1-00034.
Linux Build Service Account [Wed, 16 Nov 2016 05:18:04 +0000 (22:18 -0700)]
Promotion of bt.lnx.2.1-00034.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1087142   Iaba6fe5ec8d7125fc03ba948bdf55c08419305db   Before AG knowing remote's HFP version, don't unset HF i

Change-Id: Ia429691250b447876d09de7dd7c738b7eb20205f
CRs-Fixed: 1087142

8 years agoMerge "Before AG knowing remote's HFP version, don't unset HF indicators." into bt...
Service qcabuildsw [Tue, 15 Nov 2016 23:45:00 +0000 (15:45 -0800)]
Merge "Before AG knowing remote's HFP version, don't unset HF indicators." into bt.lnx.2.1-dev

8 years agoBT: Modify implementation for command timeout crashdump collection
Manu Viswanadhan [Thu, 10 Nov 2016 14:20:14 +0000 (19:50 +0530)]
BT: Modify implementation for command timeout crashdump collection

- Start hardware error timer for all crashdump scenarios even when
  the property is not set by the user.
- Don't close hal immediately after SSR cleanup is called as the
  WCNSS filter would be terminated and hardware error event cannot
  be informed to the stack after crashdump collection.
- Correct the timeout set for hardware error event timer.

Change-Id: I8c51eb3d007584308d1ae06e678fe1a6c04e264c
CRs-Fixed: 1090097

8 years agoPromotion of bt.lnx.2.1-00033.
Linux Build Service Account [Tue, 15 Nov 2016 11:57:55 +0000 (04:57 -0700)]
Promotion of bt.lnx.2.1-00033.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1058786   I1d5264e74c750f18d778bd676b7f13590c8b1034   BT: Modified logging framework for unified logging

Change-Id: I412f0f2f6e479af2bb2b305b6bb45e666196be17
CRs-Fixed: 1058786

8 years agoRevert "Register for Service Changed notifications for untrusted devices"
Satomi [Tue, 9 Aug 2016 15:19:03 +0000 (08:19 -0700)]
Revert "Register for Service Changed notifications for untrusted devices"

Git-commit:
This reverts commit 5f0e23d532f4f90d081ccc0e294f404eb5e5b688.

Instead of reusing service discovery data, gatt profile initiates
discovery by service uuid before regular service discovery is started,
and both discovery procedures interfere with each other.
As a result, link is dropped.

Bug: 30462943
Bug: 30481143
CRs-fixed: 1079156

Change-Id: Ic63339f4f46eda70e575a4103974766d54a9d624
Signed-off-by: Satomi <michitsuta@casio.co.jp>
(cherry picked from commit 42657c2f2350c0b546f9b0d45e3167ed9f58f62e)