summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* audio: fix get_parameters()Eric Laurent2012-08-301-1/+3
| | | | | | | | Fix two bugs in adev_get_parameters(): - the str_parms struct was not destroyed causing a memory leak. - get_parameters() should return an empty string, not NULL. Change-Id: Icdf2803afe82fa4be7950b4659f850b772381f17
* Enhanced log traces to print h/w error codeKausik Sinnaswamy2012-08-301-1/+1
| | | | | | Prints the error code of hardware failure for the BR/EDR Controller Change-Id: I8c5172d9485ef0d71668969789fdacd720a2067f
* Fixed the issue that local adapter name cannot be changed and lost last ↵zzy2012-08-292-19/+21
| | | | | | | | | bonded device 2 Root case: the adapter name property set/get with wrong section & key; The end condition of the loop to load bonded device is wrong removed the wrong return value check when loading blacklist Change-Id: Ib02d472311cd872befd17e6d2445f649f53f02fb
* Merge "fixed the issue that remote unpaired device not removed from config ↵Matthew Xie2012-08-291-0/+1
|\ | | | | | | file" into jb-mr1-dev
| * fixed the issue that remote unpaired device not removed from config filezzy2012-08-291-0/+1
| | | | | | | | | | root cause: forgot to remove the device from storage when bound is canceled Bug 7077419
* | Turn on NUMLOCK states for HID KBs without NUMLOCKSyed Ibrahim M2012-08-292-8/+208
|/ | | | | | | Set NUMLOCK state for HID keyboards without NUMLOCK key to be ON so that the numeric keypad can be used. Change-Id: Ib9811d55cc62ba380c0418f0ac9ff3827b9a3c8a
* Log DM eventsRavi Nagarajan2012-08-283-1/+35
| | | | | | Add strings for DM event Change-Id: I800780c181dd51cbf9bb037690ad167a5f8bf363
* Added new storage code and bluez configuration migration supportzzy2012-08-2714-848/+2147
| | | | | | | | | | Filter out hid device from bluez migration. Change-Id: I8b5eb29f37ca37e97b728f69063266a1b0a61eb8 Conflicts: main/Android.mk
* Null terminate Local name before sending to stackGanesh Ganapathi Batta2012-08-251-2/+9
| | | | | | | | Ensure that Local name string is always Null terminated when sending it to BT stack from BTIF layer Bug:7027639 Change-Id: I319642d6073d4178bd34ca82431c4bda16270474
* Remove hardcoded trace level settings in stack modules.YK Jeffrey Chao2012-08-243-4/+2
| | | | | | | | | | | | | BTM, BTU, and BTA modules were preset with hardcoded trace level (BT_TRACE_LEVEL_DEBUG) during early development days. Since the trace levels have been made configurable in /etc/bluetooth/bt_stack.conf at run-time, removing those hardcoded settings. So, the compile-time default trace level BT_TRACE_LEVEL_WARNING (set in bt_trace.h) will be used if the bt_stack.conf is missing, or if the TraceConf=false is given in the bt_stack.conf. Change-Id: I76d905adbfda3c40f714398da86ebec90a1a8a40
* Delay the role switch after the connection with devices that are blacklisted ↵Ganesh Ganapathi Batta2012-08-242-5/+97
| | | | | | | | | | | | for immediate role switch Initiating immediate role switch with certain remote devices has caused issues due to role switch colliding with link encryption setup and causing encryption (and in turn the link) to fail . These device Firmware versions are stored in a blacklist and role switch with these devices are delayed to avoid the collision with link encryption setup Bug 6992300 Change-Id: I71c7d94bc4cf03f2383b6c1956bba8697f6c2a8b
* Ignore AVRCP Pause command from carkits right after the callGanesh Ganapathi Batta2012-08-241-9/+10
| | | | | | | | | Certain carkits (e.g Audi MMI 2801)send AVRCP Pause command right after the call if there was an active music streaming when the call was answered. This command needs to be ignored as Phone/MediaPlayer will take care of music Play/pause after the call based on the state of the streaming before the call Change-Id: Iddb50089bff0f54bc3ad9665f95e64d3083c568a
* Remove mako device configuration file. It's obsolete.Matthew Xie2012-08-231-171/+0
| | | | Change-Id: Id9df79ff6c0f5e6a981ecb9defd82e057c643bf5
* Do not send Bond state change evt after SDP completion if security upgrade ↵Ganesh Ganapathi Batta2012-08-231-1/+6
| | | | | | | | | is in progress In mid of security upgrade, sending BOND_STATUS_BONDED to java dismisses Pairing confirmation dialog and results in security upgrade failure. Change-Id: If2a3858c6811eaa243f1c67d055862a634ccbb45
* Remove attr_mask field from BTA_HH_ADD_DEV_EVT cbSyed Ibrahim M2012-08-233-5/+0
| | | | | | | | Remove attr_mask field from bta_hh_api.c and bta_hh_act.c for BTA_HH_ADD_DEV_EVT callback as stack updates the attribute mask to the stack callout function bta_hh_co_open() Change-Id: I1e450a210a63359c7ae30551fd3c468f0e109fda
* Set thread names for debuggingRavi Nagarajan2012-08-222-0/+4
| | | | | | Set thread names for easier debugging Change-Id: I1beeaae24a7782ab97be22db57060c773721bc46
* Minimized Bluetooth data traces (including L2CAP)Kausik Sinnaswamy2012-08-222-22/+22
| | | | | | | Configured the trace level to not report logs which are marked DEBUG or VERBOSE. Change-Id: I3112128d20140b28523edf439a1b6bd0c255d835
* fixed the second reconnect issueSen-Der Huang2012-08-211-39/+48
| | | | | | | The problem was due to incorrect loading of the MDL configuratoion The issues is fixed after loading the MDL configiration in the right order Change-Id: Id33f680e089e71a10f9dd00163f931daa277b021
* Fix for random bluetooth crash on transfer contextRavi Nagarajan2012-08-211-26/+33
| | | | | | | | | | Crash is seen while attempting to memcpy more data than what is actually available. Root cause is that the stack callbacks where sending arguments which are union members and not the union structure. This resulted in a crash during memcpy bug 7016761 Change-Id: I55ad3c885d1634e44833152ed0808b09e437a657
* Merge "Add support for per device bluetooth configuration." into jb-mr1-devWink Saville2012-08-2026-2351/+516
|\
| * Add support for per device bluetooth configuration.Wink Saville2012-08-1626-2351/+516
| | | | | | | | | | | | | | | | Rather than using a text file and generating each buildcfg.h file per device bdroid_buildcfg.h which supplies device specific values and then bt_target.h will supply common values. Change-Id: I12cb5408729c3e076562a292204f07a0c4b52628
* | Initiate Open for incoming AV even if SDP INT failsKausik Sinnaswamy2012-08-201-1/+1
| | | | | | | | | | | | | | | | | | There are some devices that do not respond to SDP request while they are in the midst of initiating an AV connection. In such cases, it is valid to ignore the SDP failure and initiate the AV open. bug 6996250 Change-Id: I16149fee9b6ee6130cf45396246948716898b167
* | Modified HID host to use kernel UHID driverPriti Aghera2012-08-172-110/+104
|/ | | | | | Included more error checking and removed unused code Removed header file as the header file will be included in kernel Change-Id: I3086d6520fc764b73e0e740dadaa64a9cdc11945
* Updated BTM_DEF_LOCAL_NAME to be "Nexus"Reena Lee2012-08-151-1/+1
| | | | Change-Id: Ic596804bf6a25e4f039860348298f296edc9cd8f
* Add HCI Multi-Channel Transport support (1/2)YK Jeffrey Chao2012-08-1410-136/+1991
| | | | | | Revise BT Vendor Lib interface and add support of HCI multi-channel transport. Change-Id: I5a7a7b64798bb30be60ed29bd564bc499bd5b5bc
* Avoid duplicate unsolicited indicatorsRavi Nagarajan2012-08-142-0/+37
| | | | | | | | Avoid duplicate notifications for service, signal, roam and battery charge bug 6983415 Change-Id: If68ea7315de4f964e7fb83a6a628c8d2c29a333d
* Enhanced bluetooth HAL with DUT mode APIsKausik Sinnaswamy2012-08-138-5/+1023
| | | | | | | These APIs are needed to allow the bluetooth chip to be put into DUT mode so that RF/BB BQB tests can be run Change-Id: Ie5be00da567bc94173f35b098abcaf6f6603a129
* Send auth fail for both auto & non-auto pair triesRavi Nagarajan2012-08-091-1/+2
| | | | | | | | | Both when auto-pair attempts exceeded or when auto-pair was not attempted, but authentication failure was observed, send auth fail to upper layer bug 6936335 Change-Id: Ieafd0c6bbc57fb36cf4c2c450556e4df7ec23a1a
* Fix issue with passing wrong str len to java layerGanesh Ganapathi Batta2012-08-092-3/+3
| | | | | | | Send only length of string to Java instead of length +1 from btif for local Bluetooth name, Remote name and Friendly name for paired devices. Change-Id: I4e822db62eb2affaadad283c6ceb2a368e3b107c
* Revise BT vendor lib interface (1/2)YK Jeffrey Chao2012-08-096-103/+202
| | | | | | | | | 1. Move UART port configuration into vendor lib to respect the fact that each vendor might have different UART port settings for its own chipsets. 2. Detail bt_vendor_lib.h header file with usage instructions. Change-Id: I10dc44afd9b3cc1985769166a717089728281296
* choose generic one if there is no board specific configurationKeun young Park2012-08-011-0/+4
| | | | | | - fix PDK mini builds Change-Id: Ic5cd4975210f70d028938b1f306ea38de27191a4
* Add bdroid_mako.txtBrian Muramatsu2012-07-271-0/+171
| | | | | | This is a copy of broid_generic.txt for now. Change-Id: Ia48bdbde2e7c2ca45cd57927182253c75cfbb252
* Manta Change default Bluetooth device name from Nexus 7 to Nexus tabletMatthew Xie2012-07-271-1/+1
| | | | Change-Id: I95563503209c9166ef5998a02683d700ed8eef5f
* HCI/Vendor lib: revise the way of making baud rate change (1/2)YK Jeffrey Chao2012-07-264-69/+14
| | | | | | | | | | | | | | | | The original baud rate change was done through closing the existing UART port then reopening UART port at new baud rate. It was reported that this approach would cause trouble on some platforms which spits out false start-bit signal on UART bus during port close and open process. Revise the way of doing baud rate change to use terminal I/O (termios) control functions. Change-Id: I18ab5a234576147dd9185eafd1e57d3b4e3fa2bd Conflicts: hci/src/userial.c
* Fix for BT-OFF hung issue seen in BT on/off instrumentation test.YK Jeffrey Chao2012-07-261-4/+4
| | | | | | | | | | | | From time to time, we had seen some GKI_exception error messages showing up in adb log during turning BT off. Those were triggered by a HCI event which arrived after BTU task had been terminated. The early termination of BTU task had also become a contributing factor to the BT-OFF hung issue. Revise the termination sequence between BTU and HCI/Vendor tasks to address the issues. Change-Id: I094104943275b3b1fb95aef514936e28394615eb
* Fix for CR BLTH01539543Ganesh Ganapathi Batta2012-07-2614-28/+32
| | | | | | Define max L2CAP channels to be 16 and combine MAX_L2CAP_LINKS and MAX_BD_CONNECTION into one definition Change-Id: Ib5cb95f5829400b2182beb3c8409142a20b8fb95
* Fix build breakage: Revert "Fix for CR BLTH01539543"Ed Heyl2012-07-256-16/+12
| | | | This reverts commit 3ec3b30a9d39c24437f30b98539b542a24e6737d.
* Fix for CR BLTH01539543Ganesh Ganapathi Batta2012-07-256-12/+16
| | | | | | Define max L2CAP channels to be 16 and combine MAX_L2CAP_LINKS and MAX_BD_CONNECTION into one definition Change-Id: Ib5cb95f5829400b2182beb3c8409142a20b8fb95
* Fix for updating correct COD value after pairingSyed Ibrahim M2012-07-251-20/+19
| | | | | | | Set the correct pointer to properties[] array before sending HAL callback for remote_device_properties_cb Change-Id: I199566d5f4b5997aad6a5b2ca83b67c9b1bd108b
* Work around for CR BLTH01373902Ganesh Ganapathi Batta2012-07-252-0/+16
| | | | | | While enabling BT, Do not toggle the chip power if the target is wingray. Change-Id: If044361d51354cfd3695d84895dada4342ef28c8
* Handle RC_Close while AV_Closing to cleanup uinputKausik Sinnaswamy2012-07-251-0/+5
| | | | | | | | While AV disconnection is in progress, we need to handle the RC_CLOSE event from the stack to trigger the uinput cleanup. Otherwise we would leaking uinput FDs. Change-Id: I9e37eef7b1c0fa0d56e809f1bf5686235f782cb5
* Fix for unpair failure during music streamingKausik Sinnaswamy2012-07-251-1/+6
| | | | | | | Fix for a potential race condition where unpair was failing is music was streaming. The issue was due to the unpair callback not being invoked Change-Id: I5dff05abd238b4af3301495be05cbaa970d275d6
* Do not auto-resume when A2DPSuspended is FALSEKausik Sinnaswamy2012-07-251-2/+6
| | | | | | | | Instead if music was streaming prior to the suspend, we just set the state to STANDBY and expect the AVDTP start to be triggered when the first data packet is sent Change-Id: Ia1486033c251c637b1560c41f7e8e07ca2201136
* Fix for carkits that send PLAY without AVDTP STARTRavi Nagarajan2012-07-251-0/+7
| | | | | | | | | | Some carkits after send AVDTP SUSPEND right after RC PAUSE Per the whitepaper, the device sending AVDTP SUSPEND should send AVDTP START. However a few carkits send AVRCP PLAY without sending AVDTP START. Added a workaround to reset the remote suspend flag when an AVRCP PLAY is received Change-Id: If12e55b4d905b03890c69c2137f363986482ab1a
* configure avdtp signalling timeout to default value (4 secs)Mattias Agren2012-07-2522-11/+12
| | | | | | | | | | | also added mutex protection for any a2dp control path signalling to ensure only one outstanding request at a time Change-Id: I06d95793a8632f6a8baec967a1d8440ecce8a65d Conflicts: audio_a2dp_hw/audio_a2dp_hw.c
* Get the vendor interface as a structure pointer instead of functionMatthew Xie2012-07-201-12/+4
| | | | | | | We donnot need the extra function to return the interface. bug 6853945 Change-Id: I693aa9f068a64ee5a5e9bc5ff3cc82ecf59d5de1
* Merge "add a bdroid file for panda"Jean-Baptiste Queru2012-07-191-0/+171
|\
| * add a bdroid file for pandaJean-Baptiste Queru2012-07-191-0/+171
| | | | | | | | Change-Id: I211f65ed1dd47f252082dcc2bd00c34df9c89ee8
* | Merge "Use dlopen to avoid compile time linking against libbt-vendor.so"Jean-Baptiste Queru2012-07-192-3/+20
|\ \ | |/ |/|
| * Use dlopen to avoid compile time linking against libbt-vendor.soColin Cross2012-07-172-3/+20
| | | | | | | | | | | | | | libbt-vendor.so is in vendor/, and shouldn't be compile-time linked against from external/. Use dlopen instead. Change-Id: Iefc2d5232506ce8e60a6e5dd93328332549daa1e