summaryrefslogtreecommitdiffstats
path: root/stack/gatt
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge "support peripheral mode feature to connect iphone to android device." ↵Zhihai Xu2014-02-251-1/+1
|\ \ \ | |/ / |/| | | | | into klp-modular-dev
| * | support peripheral mode feature to connect iphone to android device.Zhihai Xu2014-02-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | enable BLE_PERIPHERAL_MODE_SUPPORT flag and fix the bug the discoverability flag is not set in advertisement packet, which cause the central device(iphone) can not find android device during scan. use displayOnly IO cap for dory, so dory can display the pin, and the iphone(central device) will input the pin. bug:12797572 Change-Id: Ie15ea9e340e3692df846399b9a85aa6d2a97eba7
* | | Merge changes Ifc373f95,I95eb887a,I1e6be2ab,Ia6ea939a,I147d0138, ... into ↵Mike J. Chen2014-02-117-23/+34
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-115-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | Fix unused parameter warning in static functionMike J. Chen2014-02-111-3/+2
| | | | | | | | | | | | | | | | | | | | | Just changed the function to not take the unused parameter Change-Id: Ia6ea939a45583ad9b8ae83125a0294086fde8909 Signed-off-by: Mike J. Chen <mjchen@google.com>
| * | Add "static" to a static functionMike J. Chen2014-02-111-1/+1
| | | | | | | | | | | | | | | Change-Id: I147d0138f2871d1fa873184b1e6e8075328a8501 Signed-off-by: Mike J. Chen <mjchen@google.com>
| * | Fix some unused parameter warnings in static functionsMike J. Chen2014-01-311-14/+11
| | | | | | | | | | | | | | | | | | | | | | | | Fixed by changing the prototypes of the functions and the calling location. Change-Id: Ic27ce9e61f5b66699b59bb14258709cb7ca733a8 Signed-off-by: Mike J. Chen <mjchen@google.com>
| * | Fix missing initializer warningMike J. Chen2014-01-311-0/+1
| | | | | | | | | | | | | | | Change-Id: I13e96a25b66a0a789d1adab9e41f2315d294943d Signed-off-by: Mike J. Chen <mjchen@google.com>
* | | resend discovery primary service ATT request with timeoutZhihai Xu2014-02-065-11/+50
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Add service UUIDs and data to advertising dataAndre Eisenbach2013-12-191-0/+2
| | | | | | | | | | | | | | Add support for UUIDs and custom service data in the advertising and scan response records. Change-Id: I6470427ad194871488cc90f3ab384b9ecf326b15
* | BLE HID device connection failure due to security error.Zhihai Xu2013-12-112-1/+11
|/ | | | | | | | | | | | | | | When HID BLE device start encryption, if some other GATT application already start encryption(but not finished yet) by calling gatt_security_check_start. The HID BLE device will be failed to start encryption, which will cause it to disconnect the BLE HID connection. The solution is to check whether we already started the encryption , If the encryption is already started, wait until the encryption finished, then continue to start security check for BLE HID device. add encrytion complete event to notify all GATT client encryption done. filter the event just for BTA HH LE GATT client. bug:11636246 Change-Id: If58e57c623cc8cfa05208587b010bec68c71306c
* LE: Improved handling of illegal GATT PDUsAndre Eisenbach2013-10-072-51/+103
| | | | | | | | | | | | Do additional length checks when handling malformed messages. These messages are never valid, and should be dropped if seen. Before starting to parse out PDU content, it is verified that the buffer contains sufficient bytes and error condition is returned if this is not the case. Bug: 11045073 Change-Id: Ifb792d1575e0514f33e75ed73247ea638807901e
* 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: Memory leak when caching GATT service changeAndre Eisenbach2013-08-141-6/+9
| | | | | | | | | | | When a GATT connection is disconnected, a bonded device will be added into service change pending list. But if the device is already in the list, a duplicate record will be added and one buffer is lost. This change ensures that devices are only added if they are not already in the list. Change-Id: Ied6872b145ed28bde8044444cb6c9cbee525943d
* LE: UPF 45 bug fixesAndre Eisenbach2013-08-136-37/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Limit minimum MTU sizeAndre Eisenbach2013-08-131-3/+5
| | | | | | | | Check requested MTU sizes to ensure a minimum MTU size. Otherwise remote devices may request an MTU that's too small, preventing any further communication with the remote device. Change-Id: I3ba97cf6e6c464825778a8c8902f99f6662c3762
* LE: Integrate power table for GATTAndre Eisenbach2013-08-131-1/+1
| | | | | | | No power table exists for GATT, causing the device to never enter sniff mode while using GATT over BR/EDR. Change-Id: I0db539c1814a61af620f3dba560da64481291beb
* LE: Add GATT disable functionsAndre Eisenbach2013-08-142-7/+26
| | | | | | | | | | 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-2710-206/+492
| | | | Change-Id: I9825a5cef9be2559c34c2a529b211b7d471147cf
* Snapshot cdeccf6fdd8c2d494ea2867cb37a025bf8879bafThe Android Open Source Project2012-12-1210-0/+11133
Change-Id: Ia2de32ccb97a9641462c72363b0a8c4288f4f36d