summaryrefslogtreecommitdiffstats
path: root/stack/include/l2c_api.h
Commit message (Collapse)AuthorAgeFilesLines
* Split A2dp implementationAyan Ghosh2015-12-011-0/+13
| | | | | | | | | | Implement Split A2dp to process AVDTP Signalling commands from host and media packet handling from Controller. Host uses vendor specific commands to let controller know the media channel configurations for controller to form the media packets accordingly. Change-Id: I7a98177a8125fd70b057bb514f0d870971a45bcf
* Bluetooth: LE-L2CAP-COC on M.Balraj Selvaraj2015-10-061-2/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* LE Privacy 1.2 and LE secure connectionsSatya Calloji2015-04-131-1/+3
| | | | | | Bug: 19816438 Original author: Chaojing Sun <cjsun@broadcom.com> Change-Id: I5951f4d4e038f8348a62aa6d19b2111bae0b3ecc
* L2CAP and SDP Search API for BT profiles (2/2)Kim Schulz2015-04-101-2/+4
| | | | | | | | | | | | | | Added support for exposing L2CAP to Java such that OBEX over L2CAP is made possible. Added support to create SDP records as a seperate step.(as opposed to creating a SDP record when a BluetoothSocket is created). This allows both a RFCOMM channel and a L2CAP PSM to be included in a SDP record. (Additionally the content of the SDP record is set by the profile in Java, in stead of beeing hardcoded in the socket layer.) This completes the L2CAP channel exposure to Java. Change-Id: Iaf68a07d910145cdd33e940d73cd680f79164100
* Add connection-specific function L2CA_SetConnectionCallbacks.Sharvil Nanavati2015-03-161-0/+7
| | | | | This function allows a client to specify callback routines per- connection instead of per-PSM.
* L2CAP: expose a function to return the RCID and ACL handle for a given LCID.Sharvil Nanavati2015-03-161-0/+8
|
* Remove L2CAP_CORRUPT_ERTM_PKTS macroZach Johnson2015-03-161-65/+0
| | | | In general, test code and production code should not coexist in the same file.
* Removing unnecessary BTAPI #defines.June R. Tate-Gans2015-03-161-55/+55
|
* LE: Add notification sent and congestion callbacks (2/4)Andre Eisenbach2014-06-251-0/+9
| | | | | | | | | | | | | | | | | | | | This change introduces two new callbacks for applications to better handle LE notification flow control and transport congestion. The notification callback is invoked when the remote platform confirms an indication or when a local notification has been passed to the controller. No new notifications should be sent until a callback is received. Congestion callbacks are triggered when a GATT operation cannot be sent to the local Bluetooth controller. Repeatedly calling writeCharacteristic() for example will eventually trigger a congestion callback. Applications cannot send additional data until a further callback is received, indicating that the congestion has cleared up. Also fixes a memory leak issue that can trigger GKI exception for certain GATT operations. Change-Id: Ib470c15ca1f577573a632e9afe4cb9e86680fd8c
* Merge BT 4.1 featuresGanesh Ganapathi Batta2014-05-061-15/+8
| | | | | | | | | | | | | | | | | | | 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 Conflicts: stack/btu/btu_hcif.c
* Use standard C99 integral types. This offers better type safety.Sharvil Nanavati2014-05-061-1/+1
| | | | | | | Notice that I had to change a couple of function declarations because the compiler caught the inconsistency with the new typedefs. Change-Id: I202fd1dc086de41e1cfe083eb1a5f74a942d01e5
* BLE stack doesn't handle multiple l2cap_conn_update requestsZhihai Xu2013-12-181-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | we can define 4 bits as flags: 1. L2C_BLE_CONN_UPDATE_DISABLE: if set it means disable update connection parameter. otherwise enable 2.L2C_BLE_NEW_CONN_PARAM: if set, it means we have new connection parameter which is needed to be configured if possible(after update done or enable). 3.L2C_BLE_UPDATE_PENDING: if set, it means waiting for connection parameter update finished. this flag will be cleared in btu_ble_ll_conn_param_upd_evt. will be set when we call btsnd_hcic_ble_upd_ll_conn_params 4.L2C_BLE_NOT_DEFAULT_PARAM: if set, it means we don't use the default connection parameter. so when we disable update, we need to configure default connection parameter. with these 4 flags, we can replace all these states: UPD_ENABLED, UPD_DISABLED, UPD_PENDING and UPD_UPDATED. so we can cover all the corner cases which aren't handled by original code. bug:11450715 Change-Id: I6673d4783a8063bf9e8a213c6669800f86e67945
* Initial version of BLE support for BluedroidGanesh Ganapathi Batta2013-02-271-10/+0
| | | | Change-Id: I9825a5cef9be2559c34c2a529b211b7d471147cf
* Snapshot cdeccf6fdd8c2d494ea2867cb37a025bf8879bafThe Android Open Source Project2012-12-121-0/+1185
Change-Id: Ia2de32ccb97a9641462c72363b0a8c4288f4f36d