summaryrefslogtreecommitdiffstats
path: root/stack/gatt/gatt_utils.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix 128-bit UUID byte order for GATT-over-BR/EDRAndre Eisenbach2015-10-211-1/+1
| | | | | | | | | 128-bit UUIDs for GATT services discovered using SDP are byte-ordered incorrectly. This patch fixes both the SDP discovery as well as the SDP record creation code. Bug: 24344122 Change-Id: Iee4bf33dcbbc5ee0f2380b48330107232bd0401b
* LE Privacy 1.2 and LE secure connectionsSatya Calloji2015-04-131-2/+3
| | | | | | Bug: 19816438 Original author: Chaojing Sun <cjsun@broadcom.com> Change-Id: I5951f4d4e038f8348a62aa6d19b2111bae0b3ecc
* Correct comments and some redundant statements.Steve Gu2015-03-161-7/+12
|
* Enforce GKI API buffer usageChris Manton2015-03-161-5/+5
| | | | Also add another API GKI_queue_length(BUFFER_Q *)
* Logging cleanup: AVRC, MCA, GATT, and SMP.Sharvil Nanavati2014-06-191-58/+58
| | | | Change-Id: I6d1e61ff023b5fd19f144955cff16831cc18c6e6
* Merge BT 4.1 featuresGanesh Ganapathi Batta2014-04-301-81/+105
| | | | | | | | | | | | | | | | 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
* Merge changes Ifc373f95,I95eb887a,I1e6be2ab,Ia6ea939a,I147d0138, ... into ↵Mike J. Chen2014-02-111-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | klp-modular-dev * changes: Make all warnings fatal compilation errors Major warnings cleanup Add macro UNUSED() to bt_utils.h Fix unused parameter warning in static function Add "static" to a static function Fix a number of unused parameter warnings in static functions Fix bug with wrong parameter passed to logu Default send_ind_evt should be FALSE Fix warning "implicit declaration of function 'GAP_BleReadPeerPrefConnParams'" Fix unused parameter warnings in static functions by changing prototype Fix some unused parameter warnings in static functions Fix warnings about implicit declaration of bdcmp and bdcpy Fix warning "comparison is always true due to limited range of data type" Fix warning "suggest braces around empty body in an 'if' statement" Fix warning "comparison is always true due to limited range of data type" Add a function prototype for btm_ble_test_command_complete Change argument to return ptr rather than assign to unused local Fix warning "comparison is always true due to limited range of data type" Fix warnings about implicit declarations Fix warning "implicit declaration of function 'bdcmp'" Fix warning "case label value exceeds maximum value for type" Fix missing initializer warning Fix missing initializer warning Fix warning about missing initializer
| * Major warnings cleanupMike J. Chen2014-02-111-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | resend discovery primary service ATT request with timeoutZhihai Xu2014-02-061-6/+38
|/ | | | | | | | | | | | | | | This is to work around the problem with iphone. The iphone didn't respond with our first ATT request (read By group type Request for for primary service). the clockwork/phone host keep waiting for ATT response until disconnection from iphone due to timeout. The workaround is to resend discovery primary service before disconnection from remote device when response timeout happen. This workaround will be better for us to interop with remote BLE device. bug:12895830 Change-Id: I236af8eca9790f2dae7098061c74cec55348ca6d
* LE: Do not generate an error if a device is already whitelistedAndre Eisenbach2013-08-141-2/+2
| | | | | | | If a device is added to the whitelist that is already listed, no error should be generated. Change-Id: I81ad47eec47157d5ab2b5b25db3ed15bf873794e
* LE: UPF 45 bug fixesAndre Eisenbach2013-08-131-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes the following issues: - Second GATT-over-BR/EDR channel cannot be established when there already is an existing GATT-over-BR/EDR channel - If encryption fails for an LE connection due to a missing key, the security state is not being cleared and blocks all further security processing - When DM discovery of an LE Peripheral device fails with a connection timeout, no further discovery requests can be made - GATT service discovery can get into endless loop when duplicate descriptor definitions are found on the remote device - When GATT over BR/EDR fails, BTA does not give a connection callback to the application initiating the connection - BR/EDR connection to remote platform does not generate API callbacks - Stack crash discovered during UPF after remote disconnects - The host is sending HCI disconnect to invalid HCI handle when SMP fails because of a connection timeout - Possible race condition: If a disconnect is immediately followed by a connection complete, the connection complete cannot be processed in the BTA GATT state machine - Write Complete event is not triggered for Prepare Write requests Change-Id: I539cdedd68007818ff4f0d0213cee1c913f72d0f Conflicts: bta/gatt/bta_gatts_act.c
* LE: Add GATT disable functionsAndre Eisenbach2013-08-141-6/+22
| | | | | | | | | | This patch adds required disable functions to the GATT sub-system to properly unregister with the stack. Without the disable functions in place, turning Bluetooth off with a GATT device connected may lead to unexpected behaviour and cause GATT to fail on sub-sequent stack restarts. Change-Id: I7cb80e96109e2c09882991298d0487b506f5ffdd
* Initial version of BLE support for BluedroidGanesh Ganapathi Batta2013-02-271-46/+166
| | | | Change-Id: I9825a5cef9be2559c34c2a529b211b7d471147cf
* Snapshot cdeccf6fdd8c2d494ea2867cb37a025bf8879bafThe Android Open Source Project2012-12-121-0/+2600
Change-Id: Ia2de32ccb97a9641462c72363b0a8c4288f4f36d