OSDN Git Service

android-x86/system-bt.git
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 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 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

7 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

7 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

7 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

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-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

7 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)

7 years agoAVRCP: Connection failure due to collision.
pramod kotreshappa [Tue, 8 Nov 2016 12:10:53 +0000 (04:10 -0800)]
AVRCP: Connection failure due to collision.

Check for incoming connection status before initiating outgoing
connection in order avoid collision resulting in AVRCP connection
failure.

Change-Id: I54047b9e42dace39bf616d8e4baa46bf8447b1bf

7 years agoMerge "BT: Modified logging framework for unified logging" into bt.lnx.2.1-dev
Service qcabuildsw [Tue, 15 Nov 2016 01:23:19 +0000 (17:23 -0800)]
Merge "BT: Modified logging framework for unified logging" into bt.lnx.2.1-dev

7 years agoPromotion of bt.lnx.2.1-00032.
Linux Build Service Account [Sat, 12 Nov 2016 03:49:04 +0000 (20:49 -0700)]
Promotion of bt.lnx.2.1-00032.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1086765   I329f29be2a01705117232c838ac32e9f490cf062   Bluetooth: AVRCP version black listing enhancement
1081844   I431b94f05dfb2ee048efab4d7c6e587a2d81769a   Bluetooth: Avoid excessive logging for SOC logging Handl
1080728   Ia78cf030f24dd355b80f6ca2469258b1415e7029   BT: Enable SoC logging through developer option for cher
1086942                                               Bluetooth: Negotiate AAC bitrate based on remote capabil
1088666   I95fdea50fad6fddd38ecd4a6c7b61ae7b1a1fa44   Bluetooth: Mazda carkit rejecting abs. vol. notification
1088457   If43b7d974d4551b3b26b281682a889cbf8bb6e8f   Set DUT role as slave
1086289   If125d03e413e178914610997b73ef6f961d0234f   Revert "Only add RPA devices to the resolving list"
1082495   Id06d50fa319d034efb60ed31f61d42b9967249d2   Bluetooth: Add retry mechanism for CC and RNR failure of

Change-Id: Ib4248e9a634ad2d35ebe0b25ef3b417772d83481
CRs-Fixed: 10824951080728108676510884571088666108628910869421081844

7 years agoMerge "Set DUT role as slave" into bt.lnx.2.1-dev
Service qcabuildsw [Sat, 12 Nov 2016 00:13:11 +0000 (16:13 -0800)]
Merge "Set DUT role as slave" into bt.lnx.2.1-dev

7 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

7 years agoBluetooth: Mazda carkit rejecting abs. vol. notifications
Umesh Vats [Fri, 11 Nov 2016 01:33:47 +0000 (17:33 -0800)]
Bluetooth: Mazda carkit rejecting abs. vol. notifications

AVRCP notify command from DUT is wrongly being rejected from remote.
As a workaround, Mazda carkit is being black listed

Change-Id: I95fdea50fad6fddd38ecd4a6c7b61ae7b1a1fa44
CRs-Fixed: 1088666

7 years agoMerge "Bluetooth: Add retry mechanism for CC and RNR failure of pairing" into bt...
Service qcabuildsw [Thu, 10 Nov 2016 21:43:18 +0000 (13:43 -0800)]
Merge "Bluetooth: Add retry mechanism for CC and RNR failure of pairing" into bt.lnx.2.1-dev

7 years agoMerge "BT: Enable SoC logging through developer option for cherokee" into bt.lnx...
Service qcabuildsw [Thu, 10 Nov 2016 21:43:18 +0000 (13:43 -0800)]
Merge "BT: Enable SoC logging through developer option for cherokee" into bt.lnx.2.1-dev

7 years agoMerge "Bluetooth: Avoid excessive logging for SOC logging Handle" into bt.lnx.2.1-dev
Service qcabuildsw [Thu, 10 Nov 2016 21:43:14 +0000 (13:43 -0800)]
Merge "Bluetooth: Avoid excessive logging for SOC logging Handle" into bt.lnx.2.1-dev

7 years agoSet DUT role as slave
Venkateshwarlu Domakonda [Wed, 19 Oct 2016 10:34:58 +0000 (16:04 +0530)]
Set DUT role as slave

Do not send role switch while accepting incoming/outgoing connection
for Jeep Uconnect which is crashing after AVDTP connection.

CRs-Fixed: 1088457

Change-Id: If43b7d974d4551b3b26b281682a889cbf8bb6e8f

7 years agoMerge "Bluetooth: AVRCP version black listing enhancement" into bt.lnx.2.1-dev
Service qcabuildsw [Thu, 10 Nov 2016 19:17:00 +0000 (11:17 -0800)]
Merge "Bluetooth: AVRCP version black listing enhancement" into bt.lnx.2.1-dev

7 years agoMerge "Bluetooth: Negotiate AAC bitrate based on remote capability" into bt.lnx.2...
Service qcabuildsw [Thu, 10 Nov 2016 19:16:58 +0000 (11:16 -0800)]
Merge "Bluetooth: Negotiate AAC bitrate based on remote capability" into bt.lnx.2.1-dev

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.c1-00006.
Linux Build Service Account [Thu, 10 Nov 2016 05:21:23 +0000 (22:21 -0700)]
Promotion of bt.lnx.2.1.c1-00006.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1083051   Id1300d96fa72ddf8a9cd19a4a7f86fa9a563ccde   Don't send avdtp_discover for incoming connections after
1079216   I228c8e23c38797335cf1cded726fb9a746121880   Remove the stale entry of the APTx thread.

Change-Id: I038529f3fb6bd4d75a449a70fec58614cd8c30ca
CRs-Fixed: 10830511079216

7 years agoMerge "Revert "Only add RPA devices to the resolving list"" into bt.lnx.2.1-dev
Service qcabuildsw [Tue, 8 Nov 2016 22:24:09 +0000 (14:24 -0800)]
Merge "Revert "Only add RPA devices to the resolving list"" into bt.lnx.2.1-dev

7 years agoPromotion of bt.lnx.2.1-00030.
Linux Build Service Account [Tue, 8 Nov 2016 15:14:32 +0000 (08:14 -0700)]
Promotion of bt.lnx.2.1-00030.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1081756                                               Bluetooth: Reset state on suspend recived in the middle

Change-Id: Ia0d50e823771263d31f57ae68cf919b63dc268cd
CRs-Fixed: 1081756

7 years agoMerge "Remove the stale entry of the APTx thread."
Linux Build Service Account [Tue, 8 Nov 2016 14:11:14 +0000 (06:11 -0800)]
Merge "Remove the stale entry of the APTx thread."

7 years agoMerge "Don't send avdtp_discover for incoming connections after setconfig_rsp."
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."

7 years agoBefore AG knowing remote's HFP version, don't unset HF indicators.
Satish Kodishala [Fri, 4 Nov 2016 09:51:15 +0000 (15:21 +0530)]
Before AG knowing remote's HFP version, don't unset HF indicators.

Remote is initiating SLC before AG could query for remote's HFP version.
Since AG initialize remote's HFP version as 1.1, we are unsetting HF
indicators bit though remote supports HF indicators. Add additional
check if remote supports HF indicators along with remote's HF version
before unsetting HF indicators bit in our BRSF flag

CRs-Fixed: 1087142
Change-Id: Iaba6fe5ec8d7125fc03ba948bdf55c08419305db

7 years agoBluetooth: Negotiate AAC bitrate based on remote capability
Bhakthavatsala Raghavendra [Tue, 8 Nov 2016 02:15:35 +0000 (18:15 -0800)]
Bluetooth: Negotiate AAC bitrate based on remote capability

Negotiate AAC bitrate based on remote capability

7 years agoBluetooth: AVRCP version black listing enhancement
Umesh Vats [Fri, 4 Nov 2016 22:24:29 +0000 (15:24 -0700)]
Bluetooth: AVRCP version black listing enhancement

Support BT address and remote name based AVRCP version based
blacklisting of remotes and blaclist Mercedes C300 car kit.

CRs-Fixed: 1086765

Change-Id: I329f29be2a01705117232c838ac32e9f490cf062

7 years agoBluetooth: Reset state on suspend recived in the middle of encoder update
Bhakthavatsala Raghavendra [Mon, 24 Oct 2016 19:21:00 +0000 (12:21 -0700)]
Bluetooth: Reset state on suspend recived in the middle of encoder update

Reset the AVDTP state when there is a susepnd recieved in the
middle if encoder update

7 years agoRemove the stale entry of the APTx thread.
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

7 years agoPromotion of bt.lnx.2.1-00029.
Linux Build Service Account [Sat, 5 Nov 2016 06:20:17 +0000 (00:20 -0600)]
Promotion of bt.lnx.2.1-00029.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1024975   Iecf18eb6c133a2808982f0c0905cf4507c95685f   Bluetooth-Wipower: Enable WiPower feature.
1085139                                               Bluetooth: Avoid advertising AAC capability in non split
751436   I55e64c676a25e0a9378e54c5f0f27fbb9274b8b6   Increase limit of bluetooth devices connectable simultan

Change-Id: I2061914cb418414b1d2268d1b92b47cd6bb731bc
CRs-Fixed: 1085139, 751436, 1024975

7 years agoRevert "Only add RPA devices to the resolving list"
Nitin Arora [Fri, 4 Nov 2016 22:30:57 +0000 (15:30 -0700)]
Revert "Only add RPA devices to the resolving list"

This reverts commit 7e51e6694eec132a70697305db7e60a53c906a36.
The change is needed since the attempt to prevent adding
the public address type remotes to the resolving list breaks
the link key to LTK procedure by not adding the corresponding
LE IRK to the resolving list since the address type of the LE
transport is unknown at the time of BR/EDR pairing.

Change-Id: If125d03e413e178914610997b73ef6f961d0234f
CRs-Fixed: 1086289

7 years agoPromotion of bt.lnx.2.1.c1-00005.
Linux Build Service Account [Fri, 4 Nov 2016 16:29:50 +0000 (10:29 -0600)]
Promotion of bt.lnx.2.1.c1-00005.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
926763   I98e649fa40a4622e3c6bce4ea5c53d51e25413b3   Fix the command timeout issue with either LPM or TX idle

Change-Id: I649b075e05175b371bd0b7d8037db2bb226f47d1
CRs-Fixed: 926763

7 years agoBT: Modified logging framework for unified logging
Gurpreet Ghai [Mon, 10 Oct 2016 06:11:05 +0000 (11:41 +0530)]
BT: Modified logging framework for unified logging

- A new process is introduced for BT logging to
  capture all logs with log level 6.

- Changes made in existing logging framework to
  send all logs to new BT logger process
  irrespective of logging level of each module.

- Logs will be captured from BT ON to OFF.

- Logger process is started on as part stack init
  and stopped on cleanup.

CRs-Fixed: 1058786
Change-Id: I1d5264e74c750f18d778bd676b7f13590c8b1034

7 years agoBluetooth: Avoid advertising AAC capability in non split A2dp case
Bhakthavatsala Raghavendra [Mon, 31 Oct 2016 23:53:51 +0000 (16:53 -0700)]
Bluetooth: Avoid advertising AAC capability in non split A2dp case

Avoid advertising AAC capability in non-split a2dp mode

7 years agoIncrease limit of bluetooth devices connectable simultaneously
Satish kumar sugasi [Tue, 1 Sep 2015 02:10:46 +0000 (19:10 -0700)]
Increase limit of bluetooth devices connectable simultaneously

Increase limit of L2CAP links to 16.Maximum number of connectable devices
was being limited to 7 due to defined limit of L2CAP links. The limit is
now increased to be same as maximum number of L2CAP channels,
which is currently defined as 16.

Change-Id: I55e64c676a25e0a9378e54c5f0f27fbb9274b8b6

7 years agoMerge "Bluetooth-Wipower: Enable WiPower feature." into bt.lnx.2.1-dev
Service qcabuildsw [Sat, 29 Oct 2016 01:02:54 +0000 (18:02 -0700)]
Merge "Bluetooth-Wipower: Enable WiPower feature." into bt.lnx.2.1-dev

7 years agoPromotion of bt.lnx.2.1-00026.
Linux Build Service Account [Fri, 28 Oct 2016 16:52:45 +0000 (10:52 -0600)]
Promotion of bt.lnx.2.1-00026.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1080979                                               Bluetooth: Proper codec exchange for APTx-HD
1080023   I7a925c9faf8004ce631bc73b5a3ae15af8d42796   Only add RPA devices to the resolving list
1069555   I4b9e1bb59cf561c1253521b9c8d6940b3e1a4f76   Bluetooth: Trigger reconfigure on disconnect of playing
1078442   I1958fc7a40808c2c32f8540ba351e00f62c1bfbf   Configure BT for raw PCM handling for Split A2dp

Change-Id: I3e92de8a7f8bda6246eb0d79e95fc264fa758882
CRs-Fixed: 1069555108097910784421080023

7 years agoDon't send avdtp_discover for incoming connections after setconfig_rsp.
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

7 years agoDon't send avdtp_discover for incoming connections after setconfig_rsp.
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

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 agoConfigure BT for raw PCM handling for Split A2dp
Ayan Ghosh [Tue, 27 Sep 2016 09:19:30 +0000 (14:49 +0530)]
Configure BT for raw PCM handling for Split A2dp

 - Send Pronto specific vendor specific commands to SOC for LAW usecase.
 - Return 16 bit PCM config to Audio for Pronto speific implementation.

Change-Id: I1958fc7a40808c2c32f8540ba351e00f62c1bfbf

7 years agoBluetooth: Add retry mechanism for CC and RNR failure of pairing
Srinu Jella [Mon, 12 Oct 2015 15:16:39 +0000 (20:46 +0530)]
Bluetooth: Add retry mechanism for CC and RNR failure of pairing

- Add retry mechanism for RNR and create connection failures
  occured as part of pairing procedure.

- With this chnage it will retry for one time if create
  connection or RNR failed as part of pairing procedure.

Change-Id: Id06d50fa319d034efb60ed31f61d42b9967249d2
CRs-Fixed: 1082495

7 years agoBluetooth: Avoid excessive logging for SOC logging Handle
Pramod Sivaraman [Tue, 25 Oct 2016 06:13:16 +0000 (11:43 +0530)]
Bluetooth: Avoid excessive logging for SOC logging Handle

SOC Logging uses handle 0x0edc ACL handle to send the data.
This fix will avoid printing any extra error message for the
data sent via this handle.

Change-Id: I431b94f05dfb2ee048efab4d7c6e587a2d81769a
CRs-Fixed: 1081844

7 years agoMerge "Bluetooth: Proper codec exchange for APTx-HD" into bt.lnx.2.1-dev
Service qcabuildsw [Mon, 24 Oct 2016 22:05:13 +0000 (15:05 -0700)]
Merge "Bluetooth: Proper codec exchange for APTx-HD" into bt.lnx.2.1-dev

7 years agoMerge "Only add RPA devices to the resolving list" into bt.lnx.2.1-dev
Service qcabuildsw [Fri, 21 Oct 2016 22:58:43 +0000 (15:58 -0700)]
Merge "Only add RPA devices to the resolving list" into bt.lnx.2.1-dev

7 years agoBluetooth: Proper codec exchange for APTx-HD
Bhakthavatsala Raghavendra [Fri, 21 Oct 2016 18:41:16 +0000 (11:41 -0700)]
Bluetooth: Proper codec exchange for APTx-HD

Proper codec exchange APTx-HD with multimedia

7 years agoBT: Enable SoC logging through developer option for cherokee
Matadeen Mishra [Fri, 14 Oct 2016 06:43:34 +0000 (12:13 +0530)]
BT: Enable SoC logging through developer option for cherokee

Enable/Disable SoC Logging through developer option.

SoC Logging enable/disable only for Cherokee device.

Change-Id: Ia78cf030f24dd355b80f6ca2469258b1415e7029
CRs-Fixed: 1080728

7 years agoOnly add RPA devices to the resolving list
Nitin Arora [Sat, 8 Oct 2016 00:30:07 +0000 (17:30 -0700)]
Only add RPA devices to the resolving list

This change makes sure that the remote devices which are being
added to the resolving list are RPAs and they do not have a public
address type.
This is needed to address the new privacy specification where,
by default, the controller only searches for RPAs in the
advertisements if a corresponding entry is present in the
resolving list.

CRs-Fixed: 1080023
Change-Id: I7a925c9faf8004ce631bc73b5a3ae15af8d42796

7 years agoBluetooth: Trigger reconfigure on disconnect of playing device multi-a2dp scenario
Bhakthavatsala Raghavendra [Mon, 17 Oct 2016 21:24:11 +0000 (14:24 -0700)]
Bluetooth: Trigger reconfigure on disconnect of playing device multi-a2dp scenario

Trigger reconfigure, when playing device disconnected in multi-a2dp scenario
so that audio resumes on the other headset

Change-Id: I4b9e1bb59cf561c1253521b9c8d6940b3e1a4f76

7 years agoBluetooth-Wipower: Enable WiPower feature.
Kiran Kelageri [Mon, 17 Oct 2016 02:38:08 +0000 (19:38 -0700)]
Bluetooth-Wipower: Enable WiPower feature.

Enabling WiPower feature on lastest PL, this
feature enables wireless charging capablity
on the target.

Change-Id: Iecf18eb6c133a2808982f0c0905cf4507c95685f
CRs-Fixed: 1024975

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

7 years agoMerge "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 "Bluetooth: KW issues fixed" into bt.lnx.2.1-dev

7 years agoMerge "Fix the crash while parsing command complete event" 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

7 years agoBluetooth: KW issues fixed
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

7 years agoPromotion of bt.lnx.2.1-00020.
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: 107251510749931073828

7 years agoMerge "Revert "Bluetooth:Enable backtrace for malloc and free"" into bt.lnx.2.1-dev
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

7 years agoHogp Multiple instance of hid service support
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

7 years agoFix the crash while parsing command complete event
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

7 years agoMerge "OPP UI progress bar not in sync with data transfer" into bt.lnx.2.1-dev
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

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

7 years agoRevert "Bluetooth:Enable backtrace for malloc and free"
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

7 years agoMerge "Update SDP CCB's continuation information in case of server DB deletion" into...
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

7 years agoOPP UI progress bar not in sync with data transfer
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

7 years agoPromotion of bt.lnx.2.1-00018.
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: 106679610718661070434106854110638901066335

7 years agoMerge "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:43 +0000 (03:00 -0700)]
Merge "BT: Changing l2cap sock mutex lock type to static." into bt.lnx.2.1-dev

7 years agoMerge "BT: Serialize stack shutdown, state change callback and cleanup" into bt.lnx...
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

7 years agoMerge "BT: Calling HCI reset when Hardware error event occurs" 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

7 years agoGAP : PIN popup shown for dead legacy remotes
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