summaryrefslogtreecommitdiffstats
path: root/stack/mcap
Commit message (Collapse)AuthorAgeFilesLines
* MCAP: Check response length in mca_ccb_hdl_rspMyles Watson2019-02-031-3/+17
| | | | | | | | Bug: 116319076 Test: Send a short MCAP response Change-Id: I0452f7d2c0f4ecccc7a6501773e26b403b116179 (cherry picked from commit 0ab53ca2af26f70126d6d9d6600d090a720758fa) CVE-2018-9592
* Add packet length checks in mca_ccb_hdl_reqCheney Ni2018-11-181-1/+11
| | | | | | | Bug: 110791536 Test: manual Change-Id: Ica5d8037246682fdb190b2747a86ed8d44c2869a (cherry picked from commit 4de7ccdd914b7a178df9180d15f675b257ea6e02)
* Allocate buffers of the right size when BT_HDR is includedPavlin Radoslavov2017-09-171-3/+3
| | | | | | | | | Bug: 63146105 Test: External script Change-Id: I1f2c871e3fcf57aabdad9d07905e6dae643bd496 Merged-In: I1f2c871e3fcf57aabdad9d07905e6dae643bd496 (cherry picked from commit 8810ffba990f8f53172c445ebde8707525bb7813) CVE-2017-0781
* BT: Fixed Static Analysis IssuesMatadeen Mishra2015-10-065-19/+62
| | | | | | | | | | - This fix avoids NULL pointer dereferences, Array Index Out of Bounds Exceptions and Banned funciton in the bluedroid code space of Bluetooth. CRs-Fixed: 890309, 890321 Change-Id: I24ae794ee01b65b5ab15c73cd82677b0481910ad
* Bluetooth: LE-L2CAP-COC on M.Balraj Selvaraj2015-10-062-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | LE L2CAP Connection Oriented Channel implementation for credit based flow control on LE L2CAP. - This feature is enabled only when BLE feature is enabled. - Handled signalling commands on channel id 5 to establish the connection of LE COC. - Implemented the SM for LE L2CAP channel to handle events from App layer and hci layer. - Introduced security levels for LE L2CAP channels. - Introduced tranport variable for major functions where BREDR and LE shares common data structures. - Implemented segmentation and reassembly of LE L2CAP SDU. - Introduced congestion mechanism for LE L2CAP channel - As the new LE L2CAP callbacks not required for existing BREDR services, made it as null for newly introduced LE L2CAP callbacks. - New APIs introduced for LE L2CAP connection establishment. - New APIs provided for LE L2CAP security procedure. - Relevent L2cap APIs from Test app interface exposed to the test tool. - New macros, definitions, structures introduced for LE L2CAP channel establishment/data tranfer. CRs-Fixed: 776657 Change-Id: I50a24374659f9802cbc92421db139f75f2790f2e
* Merge commit '4bf68bf020c7fd1aabcdc4b5d8f5fbb8bacdec9d' into merge_workPrerepa Viswanadham2015-04-102-13/+17
|\ | | | | | | Change-Id: Ibc6d6e691b7f97611d16f96220346dfd6ffbbf52
| * Static code analysis cleanups and minor bug fixesVenkatRaghavan VijayaRaghavan2015-04-061-12/+17
| | | | | | | | | | | | | | | | | | | | | | - Fix for initializing all the un-initialized variables - Handling system call failure like socket,fcntl etc... - In btpan_tap_close validate tap_if_down and close the socket. - Invalid memset size, which could have potential memory issue - Change -1 to INVALID_FD where appropriate Bug: 19417758 Change-Id: Id31832f8678b2d72c80740c29b946a94e7ae0197
| * Fix missing #includes needed for glibcScott James Remnant2015-04-021-0/+1
| | | | | | | | | | | | | | | | Some standard library functions are used while relying on bionic headers including the headers the functions were actually declared on. Add those missing #includes so that bluetooth.default.so will compile on glibc. Change-Id: Ied9f89ce5a05911fca63f6bfe1b8cc8196ab3b1c
* | Merge commit 'f7f839985b3931682363d2ef3b7c5cae55a842ee' into mergeEtan Cohen2015-03-314-17/+16
|\| | | | | | | Change-Id: Iaaec1ea0bf3009b7e32a9a60f697631a3f56e889
| * Eliminate unusable wcassert code in favor of plain old C asssert.Sharvil Nanavati2015-03-162-13/+13
| | | | | | | | | | | | | | | | The WC_* macros only expand to something meaningful when _DEBUG is also defined. However, on enabling _DEBUG, bluedroid fails to build because the wc_assert function is not defined anywhere. We can get what I imagine is the equivalent behavior by switching over to the standard C assert macro.
| * Make build more strict by adding more warning flags.Sharvil Nanavati2015-03-161-2/+1
| | | | | | | | | | | | This change introduces -Wunused-but-set-variable to help catch programming errors. It also undefines NDEBUG so assertions are fatal and defines LOG_NDEBUG=1 to suppress LOGV.
| * Removing unnecessary BTAPI #defines.June R. Tate-Gans2015-03-161-2/+2
| |
* | Fix some more missing libc includes.Ian Coolidge2015-02-061-0/+3
|/ | | | | | stddef and signal are not pulled in transitively in glibc. Change-Id: I7a834bbdc31ae2aee4cb700a223c1636fda42afa
* Logging cleanup: AVRC, MCA, GATT, and SMP.Sharvil Nanavati2014-06-196-82/+82
| | | | Change-Id: I6d1e61ff023b5fd19f144955cff16831cc18c6e6
* Merge BT 4.1 featuresGanesh Ganapathi Batta2014-04-301-2/+5
| | | | | | | | | | | | | | | | The features include: - LE Peripheral Mode - Link Layer topology (LE Central & Peripheral Concurrency) - Dual Mode Topology (Ability to choose LE transport when connecting with other Dual Mode devices) - Fast advertising Interval - Limited Discovery Time Changes - GAP Authentication and Lost Bond - Dual Mode Addressing - Common Profile and Service Error Code - 32 bit UUIDs Change-Id: Ic6701da4cf6aaa390ff2c8816b43157f36b7fb42
* Major warnings cleanupMike J. Chen2014-02-113-0/+16
| | | | | | | | | | | | Mostly fixing unused parameter warnings. A few other warnings also fixed like possible use of unitialized variables (no real issue found, just compiler couldn't follow the path), signed vs unsigned warning. Also fixed some typos, indent issues, removal of dead code, etc. Change-Id: I95eb887aefc4d559d7921f71a0af5f3bfb01ac01 Signed-off-by: Mike J. Chen <mjchen@google.com>
* Initial version of BLE support for BluedroidGanesh Ganapathi Batta2013-02-273-14/+17
| | | | Change-Id: I9825a5cef9be2559c34c2a529b211b7d471147cf
* Snapshot cdeccf6fdd8c2d494ea2867cb37a025bf8879bafThe Android Open Source Project2012-12-128-0/+3986
Change-Id: Ia2de32ccb97a9641462c72363b0a8c4288f4f36d