summaryrefslogtreecommitdiffstats
path: root/bta
Commit message (Collapse)AuthorAgeFilesLines
* Fixed the crash when rfcomm run out of 30 channelszzy2012-09-281-15/+29
| | | | | | Bug 7230522 Change-Id: Id8bdedb757a9324d891aac1cbbaed0da94d7e274
* Trigger restart on BT Controller H/W errorKausik Sinnaswamy2012-09-263-27/+16
| | | | | | | | | | On a Bluetooth chip h/w error, trigger an event from the core stack to restart the Bluetooth process. This would ensure that any state is cleaned up and the process starts from scratch Bug: 7001800 Change-Id: I57b0b44276585e2ae3c22ddbcc9d80bd467135b2 Signed-off-by: Iliyan Malchev <malchev@google.com>
* Added a configurable BT disable timerKausik Sinnaswamy2012-09-211-2/+11
| | | | | | | | | This timer(BTA_DISABLE_DELAY) if set to a value greater than zero shall delay the chip/transport shutdown. The BTA_DISABLE_DELAY can be fine-tuned per platform. bug 7212447 Change-Id: Ib0346af42f6b596e9fbb281203058872bceffbd9
* Move default COD macro BTA_DM_COD to bt_target.hKausik Sinnaswamy2012-09-211-13/+0
| | | | | | | | | This can be over-ridden on the various platforms via the respective bdroid_buildcfg.h. Default value chosen is for MAJOR_PHONE and MINOR_SMARTPHONE. bug 7176584 Change-Id: Ie553e082273b63e871aad5cda9816b16345fd9e2
* Initual Bluetooth open source releaseAndre Eisenbach2012-09-18114-4366/+5774
| | | | | | | | First release under Apache source license with updated header files and whitespace cleanups. Also fixed file permission to remove executable bit from source files. Change-Id: I7155903edfc2f491c1cbbd0db108f207852caaa0
* Revert "Header file and whitespace cleanups"Matthew Xie2012-09-1893-3136/+3136
| | | | | | | | This reverts commit cc914cffd521b2e6e1be804c82aea2388b843ebf More changes in the original CL after my cherry-pick. Change-Id: Ic144dba96aeb8a60611baac7565c9f628ab8f9eb
* Header file and whitespace cleanupsAndre Eisenbach2012-09-1893-3136/+3136
| | | | | | | Also fixed file permission to remove executable bit from source files. Change-Id: I6954c2d16190bc35b1b0d38386543253696b1112
* bluetooth: BT SIG - AVRCP - Response for invalid PDU fixedhyungjung0521.kim2012-09-131-3/+9
| | | | | | | | | | When PTS sends the invalid PDU to the IUT, due to AVRCP spec, it's supposed to response back to PTS with General Reject MSG and Error code. PTS test case : AVRCP TC_TG_INV_BI_01_C Change-Id: Ieba59503f0e3c156c639b37167d3a3a743016706
* Disable Power Manager callback on BT OFFRavi Nagarajan2012-09-131-0/+1
| | | | | | | | | | On BT OFF, PowerManager callback has to be disabled to avoid handling events that are triggered as part of the BT OFF sequence. This was causing a dead lock in the BTU thread not exitting when AV is disconnected as part of BT OFF sequence bug 7142673 Change-Id: I29554e47514210a5002c06b078a30b3e7cd03710
* Update HFP version in SDP to 1.6Ravi Nagarajan2012-09-101-4/+0
| | | | | | | | | Stack supports AT+BIA, which is mandatory for HFP 1.6 support. WBS is optional, hence does not impact the HFP version. Update HFP version in SDP to be 1.6 bug 7127626 Change-Id: I7dcd6edc3299b267a737d281c1663a2db2ef591a
* Remove hardcoded trace level settings in stack modules.YK Jeffrey Chao2012-08-241-1/+1
| | | | | | | | | | | | | 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
* Remove attr_mask field from BTA_HH_ADD_DEV_EVT cbSyed Ibrahim M2012-08-232-4/+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
* 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-202-3/+3
|\
| * Add support for per device bluetooth configuration.Wink Saville2012-08-162-3/+3
| | | | | | | | | | | | | | | | 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
* Avoid duplicate unsolicited indicatorsRavi Nagarajan2012-08-142-0/+37
| | | | | | | | Avoid duplicate notifications for service, signal, roam and battery charge bug 6983415 Change-Id: If68ea7315de4f964e7fb83a6a628c8d2c29a333d
* 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
* replace logx with alogxMatthew Xie2012-07-141-5/+5
| | | | | | | | | | | | | | | | | Conflicts: btif/src/btif_core.c btif/src/btif_dm.c btif/src/btif_hh.c btif/src/btif_sock.c gki/ulinux/gki_ulinux.c hci/include/bt_hci_bdroid.h hci/src/bt_hci_bdroid.c hci/src/btsnoop.c hci/src/hci_h4.c hci/src/userial.c vendor/libvendor/src/hardware.c vendor/libvendor/src/upio.c
* resubmit code-cleanup changes lost in gerrit mergeSrikanth Uppala2012-07-1478-39027/+1
| | | | Change-Id: Iebc520d9b10ef220a83a16ff55efa46b4c5a0d27
* Handle AG SLC setup timeoutRavi Nagarajan2012-07-142-2/+2
| | | | | | If the AG SLC is not setup within 10 seconds, disconnect the link Change-Id: If60338e821e575bf46bb81a5f3a640b7d530eb2f
* If peer initiates connection and does SETCONFIG, if the SETCONFIG is for SBC ↵Ravi Nagarajan2012-07-141-4/+27
| | | | | | codec, use the same SEID, else discover to find out the SEPs supported Change-Id: I4d362e1cb5c7b702be26d10f257274e54d7b6dd7
* Modified the BT stack to check for HID_VIRTUAL_UNPLUG SDP attribute and send ↵Syed Ibrahim M2012-07-142-0/+4
| | | | | | a virtual unplug for all HID devices for device disconnect event; Change-Id: I0068958800103037998eeaa01a45aad1f1605729
* Resolve JustWorks related pairing issuesRavi Nagarajan2012-07-142-0/+4
| | | | | | | 1. Per the spec, if both sides are using "No Bonding" for auth requirements, then the key could be considered a session key. Updated the pairing logic to handle this 2. If incoming JustWorks pairing is initiated, prompt the user for consent if the peer's io capabilities reflects DisplayOnly or NoInputNoOutput Change-Id: If592c96203e7a4b25af3d87056d534131b606e58
* Added reconnect and NV support; bug fixes: service mask setting for HDP ↵Sen-Der Huang2012-07-141-168/+174
| | | | | | | | | | | | | | | | during discovery and TX/RX ADPU size for echo test Change-Id: Ic44fe0a852036c3e973b79f4ef6362a59c76a1c0 bta/dm/bta_dm_api.c btif/co/bta_hl_co.c btif/include/btif_hl.h btif/include/btif_storage.h btif/src/btif_hl.c btif/src/btif_storage.c stack/sdp/sdp_api.c udrv/include/unv.h udrv/ulinux/unv_linux.c
* Enable pannap panu sdp by default add network service class bit and other ↵zzy2012-07-141-1/+1
| | | | | | minors improvements Change-Id: Iacbd7adb74836394256e97185efa68d0f3952009
* Match the call and callheld indicator status in CIND with CLCC. call ↵Ravi Nagarajan2012-07-141-1/+2
| | | | | | indicates call in progress (active+held), callheld has three values 0, 1, 2 depending on active and held status Change-Id: I35442ed36036c93ae92a27a12c60ebb4842992de
* Support added to report custom 128-bit UUIDs as part of the ↵Kausik Sinnaswamy2012-07-142-8/+49
| | | | | | BT_PROPERTY_UUIDS of the remote device Change-Id: I1facd9238cf847915df4c01b33c77b2fdaa168cb
* Handle SDP DB FULL error gracefully.Srikanth Uppala2012-07-141-1/+2
| | | | Change-Id: I77b751d14afb8fbe450d5176454a33dc6884f51d
* fixed rfc server connection close issuezzy2012-07-141-12/+6
| | | | Change-Id: Idd40aa3ee44740d551102af8217c185f2b1b89ad
* Support for Microsoft mousePriti Aghera2012-07-141-0/+23
| | | | Change-Id: I7258dc95a33c97d156c3afbb96aa34a13f21e703
* fixed the address issuezzy2012-07-141-1/+1
|
* Always check if reconfig is needed prior to starting anMattias Agren2012-07-1410-0/+0
| | | | | | | | avdtp stream. Added autoadjusting bitpool if sink requests a particular range within our exported capability. Cleanup & fixing file permissions. Change-Id: Ib5638706d4baef072c79a70ce1497140c3357a0d
* added bt pan profilezzy2012-07-142-41/+40
|
* Move build configuration files to output directoryAndre Eisenbach2012-07-141-2/+3
| | | | | | | | | | | Build configuration files (buildcfg.h and vnd_buildcfg.h) are now automatically generated on demand in the intermediate output directories for each platform. In addition, buth buildcfg.h and vnd_buildcfg.h files are now generated using a common script. Change-Id: I3580701f32f1993750588d15bd529c6ee337031b
* Resolve HFP PTS issues related to 3way calling. Following were the changesRavi Nagarajan2012-07-141-1/+1
| | | | | | | | 1. Enable the feature in stack to avoid sending duplicate indicators 2. AT command response return code was incorrect 3. Update the call indicator to confirm to errata#2043. call=1 implies a call is in progress - either held/active Change-Id: I0243f83697ed7390ec0ad96c525e41ee9d93de2d
* HID-PTS:Support for Hid Pts testsPriti Aghera2012-07-143-23/+47
| | | | Change-Id: I18cedbcee1d592faa76ab1859facaabf24d52b37
* Check in for - new rfc multi accept codeHarish Paryani2012-07-148-4/+5650
| | | | Change-Id: I66794a8821481c58e045bb8acd8b7b758900d3e9
* Consolidated patchset forKausik Sinnaswamy2012-07-141-1/+3
| | | | | | | 1) Run-time configuration: configure stack and vendor at run-time using bt_stack.conf and bt_vendor.conf in /etc/bluetooth/ 2) Build-time configuration: Auto-generate buildcfg.h header file from the target config bdroid_$(TARGET_DEVICE).txt file Change-Id: Ieebb71081b7de404eab37f9ff4596d3dc94547a7
* HID-Host:Fixed white space issue and power management issuePriti Aghera2012-07-142-1/+3
| | | | | | | Included more code to support mouse connectiona and reconnection Signed-off-by: Priti Aghera <paghera@broadcom.com> Change-Id: I1e20997e85eda5919f20a069131e580bcbb0ca63
* Before disconnecting, take the link out of sniff and set the L2C idle timer ↵Ravi Nagarajan2012-07-141-0/+6
| | | | | | to 0. Some carkits are re-connecting back, if ACL is not dropped within a short time. Change-Id: Ib4f089a4b426db9a81aff00983645ce430164b75
* Added new control and data path interface between audioflinger a2dp HALMattias Agren2012-07-146-3/+12
| | | | | | | and stack. Added support for suspend and a dedicated HAL callback notifying framework on audiopath events. Cleanup. Change-Id: I3b738611bc8e1d84794f7207413fd9e7dd1fc668
* Add support for Voice Recognition. Stack will verify that the peer supports ↵Ravi Nagarajan2012-07-141-6/+2
| | | | | | VR prior to sending VR events. Additionally, response to BVRA from headset will come from the app Change-Id: Id00897e92277fec1e8f8f1cdd0596c4435b76e1d
* Handle scenarios where call is incoming/outgoing/connected/waiting when a ↵Ravi Nagarajan2012-07-141-0/+5
| | | | | | headset connects Change-Id: Idcb6390cffdab45e816b232cab65232af1b2b4be
* Disabled the 1-sec timer during BT disable that was slowing the BT-offKausik Sinnaswamy2012-07-141-2/+3
| | | | | | time even when no ACL connections were present Change-Id: Ib37c43d3cbc484d3f2973478ff2b1eee51de5150
* Added support to handle AVRCP 1.0 and incoming A2DP connectionsKausik Sinnaswamy2012-07-142-25/+55
| | | | Change-Id: I7863920895aa9fd77eccee4083319701bcbf4300
* AV control and data path addedKausik Sinnaswamy2012-07-1416-68/+1311
| | | | Change-Id: I88ec6084c140fa257154a98e23e075900e84cc8c
* Disconnect before UnpairHarish Paryani2012-07-145-25/+77
| | | | Change-Id: Ib28372748df21d36d371d308975758f60df7aa28
* Fix the service id to uuid mapping, which caused the wrong uuid to be sent JavaRavi Nagarajan2012-07-141-4/+4
| | | | Change-Id: I86e8d033789269905102cf05d8b66961ae79b9a2