Skip to content
Snippets Groups Projects
  1. Oct 19, 2016
  2. Oct 18, 2016
  3. Oct 17, 2016
    • Jakub Pawlowski's avatar
      Make advertising instance count part of the HCI interface · fa0e0606
      Jakub Pawlowski authored
      The number of advertising instances will ultimately depend on the HCI
      interface used. BleAdvertisingManagerImpl should not depend on a global
      function for that.
      
      Test: Covered by BleAdvertiseApiTest sl4a test
      Bug: 30622771
      Change-Id: I1399de3f4289708f7218eae9c00ac7372e4246db
      fa0e0606
    • Sanket Agarwal's avatar
      Implement AVRCP Controller (Client) Browsing. · 9a5f970f
      Sanket Agarwal authored
      Following is included as part of the features:
      a) Browsing for all 4 scopes (Media, VFS, Player and Now Playing)
      b) Player selection and song selection from browse list.
      
      The change constructs the following (from lower to upper protocol
      layers):
      1. AVCTP Browse (bta/ & stack/)
                      -- Connection Handling
                      -- Constructing browse commands
                      -- Parsing browse responses
      2. AVRCP  (btif/)
                      -- JNI interaction/API
                      -- Connection handling to Java
                      -- Delegating request and responses to Java
      
      Bug: 28791287
      Change-Id: Ibc97ded93cb9c469778ea1e37733390d561cd4cd
      (cherry picked from commit 9ea8d07c9286a1f4d338dd64ee02266e324d28e5)
      9a5f970f
  4. Oct 15, 2016
  5. Oct 14, 2016
    • Subramanian Srinivasan's avatar
      Add device record for BR/EDR devices with derived LE keys · a0debb05
      Subramanian Srinivasan authored
      Loads BLE keys stored in NVRAM to btm_sec database for BR/EDR
      devices with cross transport derived LE keys after BT reset.
      This change also makes sure that after BT reset, while loading
      the bonded devices from NVRAM, the bonded devices(with device
      type BR/EDR and having derived BLE keys) are also added to the
      resolving list after loading the IRK into btm_sec database.
      
      Test: vendor
      Change-Id: I1c9164a947526cf2ea36156458d148f5cbee778f
      a0debb05
    • Pavlin Radoslavov's avatar
      A2DP-related renaming: a2d_* to a2dp_* · ab67d310
      Pavlin Radoslavov authored
      Test: top-level compilation and running A2DP
      
      Change-Id: Ibbd3176b86667885666bfe29025ec2c120fafce6
      ab67d310
    • Subramanian Srinivasan's avatar
      Fixes setting of service uuid mask during BLE APCF scan · 813b460e
      Subramanian Srinivasan authored
      Fixes setting of incorrect service uuid mask bytes in vendor
      specific command when service uuid mask length is less than
      the length of service uuid APCF filter.
      eg:ServiceUuid:12131215-0000-1000-8000-00805F9B34FB
      SvcMaskUuid:0000FFFF-0000-1000-8000-00805F9B34FB
      In the above eg, user is trying to apply 32 bit service uuid
      mask on 32 bit service uuid. But the stack treats the
      service uuid mask as 16 bits and inserts garbage values for
      the first 16 bits of service uuid mask in the VS command
      since the MSB bits of the mask are zeroes. This change fixes
      the scenario where service uuid mask length is less than
      service uuid length.
      
      Change-Id: Ie1aece1162b1ba7f4b7a3e9eea7eb5a074f85d62
      813b460e
    • Lawrance Liu's avatar
      HCI HAL: Retry writing HCI data on UART socket for EAGAIN errors · 9b0b2da3
      Lawrance Liu authored
      If HCI HAL receives error code "EAGAIN" when transmitting data on UART
      socket, retry transmit data again.
      
      Purpose :
      When doing system suspend/resume aging test, the HCI HAL may transmit
      data during system resuming. In this case, there exist some timing which
      BT controller does not allow HCI HAL to transmit data.
      
      Change-Id: Ic1f13c76d8e735c941800a318a0388ca42b1fd72
      Test: System suspend/resume aging test.
      9b0b2da3
    • Treehugger Robot's avatar
    • Satish Kodishala's avatar
      Update hf structure on phone state change only if SLC is up · 96af3d32
      Satish Kodishala authored
      Usecase:
      1. Enable multi-hf
      2. Pair and connect A2DP to a headset(hs1).
      3. Pair and connect HFP to another headset(hs2)
      4. Accept call on AG
      5. Disconnect hs2 by powering off headset
      6. Disconnect the call
      7. Power on the hs2
      
      Failure:
      No A2DP playback on hs1 though music player is playing.
      
      Rootcause:
      When there is a call on AG, we update both hf structures about
      the call. However, when any headset gets disconnected, only its
      hf structure is cleared. After the call is ended, we don't clear
      hf structures since there is no hf connection. When A2DP queries
      for active call, we return true incorrectly since the hs1's structures
      are not updated when the call is ended.
      
      Fix:
      Update hf structures on phone state change only if SLC is connected
      on it. Updating both hf structures regardless of the SLC state causes
      hf state to indicate wrong status.
      
      Test: manual
      Change-Id: I487792038d97a2bac77639d7c699f49fc0b18f97
      96af3d32
    • Nitin Arora's avatar
      Update GATT channel state to closing during disconnection · 1b779ae0
      Nitin Arora authored
      This change ensures that the GATT channel state is
      moved to CLOSING state while GATT disconnect is
      requested by the host, specifically when the GATT
      state is OPEN.
      This is needed to prevent any furthur GATT operations,
      once GATT disconnect is issued.
      
      Change-Id: I8511caa477881de4f4eaf18b84f23530e1958fe9
      1b779ae0
    • Nitin Arora's avatar
      Skip LE key derivation if BR key is temporary · 54963095
      Nitin Arora authored
      This change skips the LE LTK derivation in case the BR pairig
      is not deticated bonding and neither side has requested MITM.
      I.e. OPP file transfer require such bonds. This change resolve
      the issue of residual IRK in the resolving list.
      
      Change-Id: Ifc9dfc097564f603a466a5bd9b245c89f1bb82aa
      54963095
    • Srinu Jella's avatar
      Add null checks for L2CAP socket callback · da3aaccb
      Srinu Jella authored
      Use Case: Bluetooth process crashed while sending the file
      to remote device.
      
      Steps: Send a file over L2CAP (OBEX over L2CAP) to remote device
      
      Failure: BT process will crash and restarted automatically
      
      Root Cause: L2CAP socket callback reset to null on error
      condition, and when other function try to dereference it, this
      leads to BT crash.
      
      Fix: Added null checks for L2CAP socket callback
      
      Change-Id: I2e4f20278fcc8a09bd4dbd507a6c4147e0de93c1
      da3aaccb
    • Pavlin Radoslavov's avatar
      Renamed files: *.c to *.cc in bta/av and stack/a2dp · c56a4ddf
      Pavlin Radoslavov authored
      Also, fixed C++ related compilation errors.
      
      Test: code compilation from top-level directory
      Change-Id: I60367ee7bc54b891cb05bb3f88dd11ebe5b2ca83
      c56a4ddf
    • Treehugger Robot's avatar
    • Treehugger Robot's avatar
    • Treehugger Robot's avatar
      b1fbf531
    • Devin Kim's avatar
      Fix HFP AT command BIA failures · b7ec9e28
      Devin Kim authored
      Running the PTE test case TC_AG_IIA_BV_01_I, a failure occurs due to
      missing initialization of tBTA_AG_VAL.
      
      Bug: 31325270
      Test: PTS
      Change-Id: I683eccd53d40e79ec03545166b18ffa1922f0fb2
      b7ec9e28
    • Srinu Jella's avatar
      RFCOMM: Prevent sending data in BTA_JV_ST_NONE state · 690e37aa
      Srinu Jella authored
      This patch adds state check in bta_jv_rfcomm_write, to prevent sending
      data in BTA_JV_ST_NONE state. This would prevent an ASSERT in the code
      due to a null handle. The handle might have already been set to null
      during the closing of the RFCOMM connection.
      
      Change-Id: Ibc6b1fb7aa6dce9a4acb52d724af3023fad9a9ae
      690e37aa
    • Gurpreet Ghai's avatar
      Rectify size passed to copy service name to security records · 2177041c
      Gurpreet Ghai authored
      Use case: Services having name length greater than max length
      always take new slot in security records. After few enable
      disable cycles in BLE ON scenario, the record gets completely
      occupied making further connection impossible.
      
      Steps:
      1. Install a BLE App to create BLE always ON scenario.
      2. Run a few cycles of Bluetooth(BREDR) enable-disable.
      
      Failure: Once security records are completely occupied, new
      connections are not possible because of socket creation
      failure due to unavailability of security id.
      
      Root cause: Size passed to copy service name does not include
      bit for null termination. So, for services having name size
      greater than that size have their last bit truncated for null
      termination.
      During next enable, the comparison with same size always fails
      causing service to take new slot in security records array.
      
      Fix: Increased the size passed to copy service name by 1 after
      considering null termination.
      
      Change-Id: I3527df6610932f60fd85bcdd14d5b8a527c79722
      2177041c
Loading