summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Prevent abort in case of command timeoutstaging/lineage-15.0_rebase-android-8.0.0_r23Luke Zhang2017-10-281-1/+1
| | | | | | | | In case of command timeout, if we have crash SOC and collect ram dumps, then we do not need to call abort() anymore. CRs-fixed: 2074622 Change-Id: I13a0fc0fbaa21ee2ef400d6295eecad0865ffcad
* Bluetooth: Read BLE vendor capability to proceed on Secure connSrinu Jella2017-10-287-9/+66
| | | | | | | | | | | - Read BLE vendor capability to proceed on enablement of secure connection support from Host. - If BLE vendor capability is supported from the controller then secure connection is enabled from Host. CRs-Fixed: 1041642 Change-Id: I64e79d4e6fff7d9f1b0ea7272250e8155f5888e2
* Add support for FM vendor operations such as ON/OFFSatish kumar sugasi2017-10-281-0/+6
| | | | | | This adds FM ON/OFF and HCI init operations Change-Id: I476a8017343f9bc8dd8f30cc5ce14c8d05515caf
* release-request-ef177764-b092-4138-885c-f9ecf5a80dc4-for-git_oc-dr1-release- ↵android-build-team Robot2017-08-084-10/+68
|\ | | | | | | | | | | 4253863 snap-temp-L73600000090287988 Change-Id: I39de6f3a1039f5288efd4988815fff042c21907f
| * Advertisement parsing fix for zero paddingJakub Pawlowski2017-08-073-2/+56
| | | | | | | | | | | | | | | | | | | | | | When AD data is zero padded, and Scan Response is appended at end, data becomes invalid. Instead, zero paddning must be removed first. Test: AdvertiseDataParserTest.RemoveTrailingZeros Bug: 38489707 Change-Id: I229ca3db6c92bc06bc1429e72412417010721063 Merged-In: I229ca3db6c92bc06bc1429e72412417010721063 (cherry picked from commit 35a9ea352d59e6d261eba1254814f7238e3ed022)
| * Use a mutex to protect the scheduling of tBTA_PM_TIMERPavlin Radoslavov2017-08-061-8/+12
| | | | | | | | | | | | | | Bug: 63689331 Test: Code compilation Change-Id: If062f7b3e2c17cb5a1ac2c8ef0813a2fe5c5a5f5 (cherry picked from commit a34d33ff2a3fe3562c1e003d870a0716f83568bf)
* | release-request-ce5644bf-c7ec-4125-96f7-5f9bba4fe5ad-for-git_oc-dr1-release- ↵android-build-team Robot2017-08-061-1/+3
|\| | | | | | | | | | | 4249716 snap-temp-L41100000089724307 Change-Id: I27b4e42ef82c6a86dcf6830843888ff6998ca2e3
| * Protect the btif config state with a lock during cleanupPavlin Radoslavov2017-08-041-1/+3
| | | | | | | | | | | | | | Bug: 64186300 Test: Code compilation, enable/disable Bluetooth Change-Id: Ic2397a128d59c9cc69cbd8252734b69eb7c02501 (cherry picked from commit a4febd6d0460ee0f5834822ca406a4b8bab28cf1)
* | release-request-c1d158b7-bec8-489c-b291-f2070225a3d9-for-git_oc-dr1-release- ↵android-build-team Robot2017-08-042-1/+2
|\| | | | | | | | | | | 4245011 snap-temp-L08000000089163353 Change-Id: I7d27bef1fadd9c1386ef3dde271de2249c8d842d
| * Merge "Added another entry to the INTEROP_2MBPS_LINK_ONLY interoperability ↵Pavlin Radoslavov2017-08-041-0/+1
| |\ | | | | | | | | | database" into oc-dr1-dev
| | * Added another entry to the INTEROP_2MBPS_LINK_ONLY interoperability databasePavlin Radoslavov2017-08-031-0/+1
| | | | | | | | | | | | | | | | | | Bug: 64357126 Test: Audio streaming to the affected carkit Change-Id: I160eb3775c77fe400798f038d2aae7dd7825aacb
| * | Merge "Revert "Allow collection of Bluetooth firmware dumps in bugreports ↵Pankaj Kanwar2017-08-031-1/+1
| |\ \ | | |/ | |/| | | | (3/3)"" into oc-dr1-dev
| | * Revert "Allow collection of Bluetooth firmware dumps in bugreports (3/3)"Pankaj Kanwar2017-08-031-1/+1
| | | | | | | | | | | | | | | | | | This reverts commit 0580dd639cb10fafb6953d8a724db030df5030db. Change-Id: I37f9ba5a9ace655d1d12404926a158fb9a4001a7
* | | release-request-62c3045b-4fac-455c-b27e-5c82d9790366-for-git_oc-dr1-release- ↵android-build-team Robot2017-08-0321-42/+292
|\| | | | | | | | | | | | | | | | | 4241171 snap-temp-L59500000088705621 Change-Id: I78f7a3590f1910a7bbab4fb6b237dfb65ebb2e65
| * | Don't reuse AVDTP internal state for different purposesPavlin Radoslavov2017-08-026-21/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A number of issues were exposed by carkits that proactively try to discover the codecs supported by the Phone and explicitly select the A2DP codec. * Don't reuse p_scb->p_cap for storing the most recent fetched capability and for storing the result configuration while reconfiguring the stream. Instead, use p_scb->cfg for storing the result configuration. * Don't try to reconfigure the audio stream before all peer's capabilities have been retrieved. * Don't reset p_scb->sep_info_idx after fetching all capabilities inside bta_av_save_caps(), otherwise the stream reconfiguration logic is confused. Apparently, p_scb->sep_info_idx is overused for both: (a) Pointing where to store the next capability while fetching the capabilities. (b) Storing the selected the SEP after the codec selection is completed. Resetting p_scb->sep_info_idx to 0 creates logical confusion when the actual selected SEP index is 0. * Add extra debug log messages Test: Connecting to and streaming with various carkits Bug: 64128712 Change-Id: I5f57e9069d5402bcbb17613470ac0d29c8e45069
| * | Add A2DP_DumpCodecInfo() APIPavlin Radoslavov2017-08-0214-20/+91
| | | | | | | | | | | | | | | | | | | | | | | | The API can be used to display A2DP codec info when using |LOG_DEBUG|. Test: Code compilation Bug: 64128712 Change-Id: I04379b45f24adb7008365d38ccc8aa7f49ed4b73
| * | Merge "AE: Set secondary adv max skip to zero" into oc-dr1-devTreeHugger Robot2017-08-021-1/+1
| |\ \
| | * | AE: Set secondary adv max skip to zeroSunny Kapdi2017-08-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Setting secondary adv max skip to zero to guarantee when the AUX Tx happens. This way the App can use the primary advertising interval to dictate the AUX Tx interval. Bug: 62552121 Change-Id: Id66222e4f8a583c42acafb6532f81a817504e606
* | | | release-request-b48c560e-9c1f-40e2-9c27-9f0f277ca978-for-git_oc-dr1-release- ↵android-build-team Robot2017-08-024-3/+17
|\| | | | | | | | | | | | | | | | | | | | | | | 4237094 snap-temp-L35500000088245667 Change-Id: I54182b8f25050c11d101a095a2afdc3d171d7c48
| * | | Merge "Use the correct AVDTP version-specific features" into oc-dr1-devTreeHugger Robot2017-08-014-3/+17
| |\ \ \
| | * | | Use the correct AVDTP version-specific featuresSatish Kodishala2017-07-314-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Failure: A2DP is not reconnected after power cycling DUT BT. Root cause: AVDTP v1.3 feature request (AVDT_GetAllCapReq) sent by DUT as remote supports the same, but this 1.3 feature is not completely supported by DUT which leads to erroneous behavior. Fix: Use AVDT_GetAllCapReq request only when both host and remote AVDTP version are 1.3 and above. Test: 1.Pair to CarKit; 2.Connect to CarKit; 3.Do BT power cycle @ DUT Bug: 35657623 Change-Id: I66c2d7d8fe8506b74282bcca93595e1cbf5c2565 (cherry picked from commit 9cd9ef4c3818d2c7949f52703b3c2ba0e0f43f2f)
* | | | | release-request-b6ab0986-e497-499a-b55d-25aa156be8cf-for-git_oc-dr1-release- ↵android-build-team Robot2017-08-012-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4233813 snap-temp-L73000000087867826 Change-Id: I587af6c9812c903d6f83adbdb0dedd8a2ee55847
| * | | | Merge "Fix processing of Inquiry results data" into oc-dr1-devTreeHugger Robot2017-08-011-1/+1
| |\ \ \ \ | | |/ / / | |/| | |
| | * | | Fix processing of Inquiry results dataSubramanian Srinivasan2017-07-311-1/+1
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Process inquiry results data based on the data length sent from the lower stack layers and not by using HCI_EXT_INQ_RESPONSE_LEN. Bug: 62589724 Change-Id: Iee4a2c8f0dfb459404b28ba21061f7ced9f8455c (cherry picked from commit 9bd6250eba5e624c94c66f053f5603dca8e0e4f1)
| * | | DO NOT MERGE ANYWHERE Allow the Bluetooth MAC address to be updated ↵Tyler Freeman2017-08-010-0/+0
| |\ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | asynchronously (3/3) am: fead72d124 -s ours am: 672ca0faf5 -s ours am: 0e379aaef1 -s ours Change-Id: I7cf536bdf1ab3c56ca5e1357749ef1b939dd703a
| | * | DO NOT MERGE ANYWHERE Allow the Bluetooth MAC address to be updated ↵Tyler Freeman2017-08-010-0/+0
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | asynchronously (3/3) am: fead72d124 -s ours am: 672ca0faf5 -s ours Change-Id: Icf9b2a90b0adb3d9645bd6839ed9c244ba8c8c26
| | | * \ DO NOT MERGE ANYWHERE Allow the Bluetooth MAC address to be updated ↵Tyler Freeman2017-08-010-0/+0
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | asynchronously (3/3) am: fead72d124 -s ours Change-Id: I96daa5c94b8ac75e2e7faf00911274ba72dff51b
| | | | * | DO NOT MERGE ANYWHERE Allow the Bluetooth MAC address to be updated ↵Tyler Freeman2017-07-312-11/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | asynchronously (3/3) There are intermittent issues where either the returned Bluetooth MAC address to Java framework is uninitialized or this address update arrives too late. This fix will do 2 things: (1) Returns error when MAC address is unavailable in the native code. (2) Updates the MAC address later by adding a new broadcast event. Test: Check address for these cases: factory reset, system reboot, and Bluetooth re-enable. Bug: 36709382 (cherry picked from commit 7dc0525365025e17e289869288b1b7d5146306cc) Merged-In: I7b1c526ee227897c003ac921078f317f96b92604 Change-Id: I9810484a136c69d487a4b415c9265913db6c5cce
| * | | | | Fix the MAC address for INTEROP_2MBPS_LINK_ONLY entryPavlin Radoslavov2017-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 62394764 Test: Code compilation Change-Id: I3e6d8bb8258d6cc56ce05d7f17dda445859f011a (cherry picked from commit b60955f9c72d8481a1a2d92d46d59e2fd31139c9)
* | | | | | release-request-c1e89bbc-a9dd-4c96-8532-caeb99fb86d6-for-git_oc-dr1-release- ↵android-build-team Robot2017-07-302-0/+25
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4229604 snap-temp-L39800000087367876 Change-Id: Ief18e9f890888fc094c5b344cdff619766d49b64
| * | | | | Add interoperability mechanism to restrict the AVDTP MTU for AAC codecPavlin Radoslavov2017-07-282-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, add an interoperability entry for devices that are known to have AAC-related issues. Test: A2DP streaming to Headsets Bug: 63725151 Change-Id: Ic9b6640da44ebc28bfa63a19a87f0543d69bc576 (cherry picked from commit b866da0bc1254103146912077bcb49128963dee7)
* | | | | | release-request-bb5b45da-eaa6-4d79-aca0-d3dca522258f-for-git_oc-dr1-release- ↵android-build-team Robot2017-07-273-40/+81
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4221981 snap-temp-L58600000086509073 Change-Id: I0bda72b33b72bba2d8b1a7636054d6d6824a97a5
| * | | | | Merge "Retry authentication in key-missing or pairing collision use case" ↵TreeHugger Robot2017-07-271-36/+47
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | into oc-dr1-dev
| | * | | | | Retry authentication in key-missing or pairing collision use caseMatadeen Mishra2017-07-261-36/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: A2DP connection failing with connection timeout Steps: 1. Pair and connect car kit from DUT 2. Disconnect the car kit from DUT 3 Unpair DUT from car kit menu and initiate pairing from car kit. Pairing and A2DP connection should be successful. Failure: Paring and A2DP connections fail Root Cause: As the 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 Test: manual Bug: 35448920 Change-Id: I970c8679bf27801fe46f8dd757d6435ed500f77f (cherry picked from commit 35752e32fb5d859c012f6d06f2c22fa6b1f84174)
| * | | | | | Merge "Remove unwanted space characters from dialing number" into oc-dr1-devTreeHugger Robot2017-07-271-4/+25
| |\ \ \ \ \ \ | | |/ / / / / | |/| | | | |
| | * | | | | Remove unwanted space characters from dialing numberStanley Tng2017-07-261-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Certain car kits might send an AT command with space characters in the dialing number. This commit adds a workaround to trim these unwanted space characters. Bug: 6340999 Test: Manual test with a car kit but purposely added numbers with spaces. Change-Id: I9c238bc625fff8503c45cbbfaeb8bdd15b8a7d9a (cherry picked from commit 54a1461a29a8c71dd010d418ec1b23012bf32805)
| * | | | | | Use a mutex to protect the consistency of the tBTA_PM_TIMER statePavlin Radoslavov2017-07-261-0/+9
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 63689331 Test: Code compilation Change-Id: Id8ab78473e1f766d5a76b967024b7ff4af499667 (cherry picked from commit f470def4e91301b7b161b88b0428476ecce4f324)
* | | | | | release-request-52da03e1-319b-479f-b7b2-2df79bc638cf-for-git_oc-dr1-release- ↵android-build-team Robot2017-07-234-12/+29
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4207440 snap-temp-L67200000085022454 Change-Id: I5d6a42d9833f5eaa7c21f1b27c966e933029ff51
| * | | | | Merge "Revert "Always restrict the AVDTP MTU for SBC codec to ↵TreeHugger Robot2017-07-221-7/+14
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | MAX_2MBPS_AVDTP_MTU(663)"" into oc-dr1-dev
| | * | | | | Revert "Always restrict the AVDTP MTU for SBC codec to MAX_2MBPS_AVDTP_MTU(663)"Pavlin Radoslavov2017-07-201-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 9eee3a772b3f23e5c33845422203f0dec07be234. Not needed anymore - handled by the interoperability database. Bug: 62394764 Bug: 34127145 Test: Audio streaming to headset that supports 3Mbps Change-Id: I143c07c171e0fe9ef882c5e506545187f9e41498 (cherry picked from commit a97b0381c8626320151c246cfd9a71dedcf635ff)
| * | | | | | Merge "DO NOT MERGE ANYWHERE: Revert "Revert "Fix the interoperability ↵TreeHugger Robot2017-07-222-1/+12
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | mechanism for 2Mbps-only links for audio""" into oc-dr1-dev
| | * | | | | | DO NOT MERGE ANYWHERE: Revert "Revert "Fix the interoperability mechanism ↵Pavlin Radoslavov2017-07-212-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for 2Mbps-only links for audio"" This reverts commit ff1c56c3675079b3905739abffc3a6035529a248. The original issue in oc-mr1-dev has been resolved by: https://googleplex-android-review.git.corp.google.com/#/c/2576565/ Change-Id: I8bac8dca7939bac1865fe820e3c7b8252ce99478 Merged-In: Idaa25e18c0b017d8859aab723244fdc2613fc159
| * | | | | | | Reduce error conditions which cause link key deletion on auth completeAndre Eisenbach2017-07-211-4/+3
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This inverts previous conditions which attempt to limit what error conditions cause link key deletion and instead of excluding error codes it provides a shorter list of codes which actually DO cause link key deletion. As a result, temporary failures caused by page timeouts, random disconnects etc. should no longer cause link key deletion by accident. Fixes: 63507123 Test: manual Change-Id: I8d51403b8d233a3c335313b8f257a562c3d01109 (cherry picked from commit 51fb9c0e0cfbda559bf6377c183928ae48a24629)
| * | | | | | Revert "Fix the interoperability mechanism for 2Mbps-only links for audio"Andrew Scull2017-07-212-12/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 039f9a8f09ab25b4b16acfd9aca3733108d02b28. Reason for revert: Failing build in oc-mr1-dev Change-Id: I186c116d4b26cd4b92938066309a898b82ef90bc Merged-In: Idaa25e18c0b017d8859aab723244fdc2613fc159
| * | | | | | Fix the interoperability mechanism for 2Mbps-only links for audioPavlin Radoslavov2017-07-212-1/+12
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, added two new entries to the INTEROP_2MBPS_LINK_ONLY interoperability database. Bug: 62394764 Test: Audio streaming to headset that supports 3Mbps Change-Id: Idaa25e18c0b017d8859aab723244fdc2613fc159 Merged-In: Idaa25e18c0b017d8859aab723244fdc2613fc159 (cherry picked from commit 0dec1807c6770a2e5f8b673588922046ed272255)
* | | | | | release-request-5b56a53d-a8e3-4705-b74f-5b671f2123c3-for-git_oc-dr1-release- ↵android-build-team Robot2017-07-193-3/+10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4193779 snap-temp-L25500000083614009 Change-Id: If17bf9ad9845f409746191d1867140f479041b47
| * | | | | Do not delete pairing on HCI connection timeoutAndre Eisenbach2017-07-181-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I67121f3f6d34cd82e243af11ecd735684c4ca67d (cherry picked from commit f54d7e2719e36016f8dfa70757ae750909765776) Fixes: 63796670 Test: manual
| * | | | | Merge "Add missing extension length check while parsing BNEP control ↵Pavlin Radoslavov2017-07-180-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | packets" into mnc-dev am: fdcad53f8e am: fd94c15a5a am: 0cea290eee am: 97922c7401 am: c0008b6c2f am: 42b29f1ce6 am: 5328c7a32d am: 33f4a8065e am: 471e964d69 am: 1c780fabd5 Change-Id: Id09d66ad7aed3b9d88c8ed2426a190cb01e4e440
| | * | | | Merge "Add missing extension length check while parsing BNEP control ↵Pavlin Radoslavov2017-07-180-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | packets" into mnc-dev am: fdcad53f8e am: fd94c15a5a am: 0cea290eee am: 97922c7401 am: c0008b6c2f am: 42b29f1ce6 am: 5328c7a32d am: 33f4a8065e am: 471e964d69 Change-Id: I2285382ec2b4f7629fca84740933bb85b22fbfab
| | | * | | Merge "Add missing extension length check while parsing BNEP control ↵Pavlin Radoslavov2017-07-180-0/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | packets" into mnc-dev am: fdcad53f8e am: fd94c15a5a am: 0cea290eee am: 97922c7401 am: c0008b6c2f am: 42b29f1ce6 am: 5328c7a32d am: 33f4a8065e Change-Id: I460a7805ba5d6ce28751bfba59245026ab09d49b