1. 05 Feb, 2015 2 commits
  2. 03 Feb, 2015 2 commits
    • Andre Eisenbach's avatar
      DO NOT MERGE Change pairing_cb to assume temporary pairing by default · a708936d
      Andre Eisenbach authored
      When pairing takes place, the pairing_cb.is_temp flag indicates whether
      a pairing is temporary or permanent. Link keys are not stored for
      temporary pairings. Since this is a "positive" flag, resetting the
      pairing_cb control block (ex. memset to 0), it will assume persistent
      pairing by default. Under certain circumstances, this can lead to a link
      key being stored for temporarily secured connection.
      
      This patch reverses the flag to be a "negative" flag. Renamed to
      "persistent_bond", the default 0 meaning is now used to indicate a
      temporary bond. If the lag is not properly set now, it will default to a
      temporary bond and will not save the link key erronously.
      
      Bug: 18345373
      Change-Id: I06b1ba9331a70ebc29f4437bf836164658dec5ae
      a708936d
    • Andre Eisenbach's avatar
      DO NOT MERGE Change pairing_cb to assume temporary pairing by default · eebc8ab9
      Andre Eisenbach authored
      When pairing takes place, the pairing_cb.is_temp flag indicates whether
      a pairing is temporary or permanent. Link keys are not stored for
      temporary pairings. Since this is a "positive" flag, resetting the
      pairing_cb control block (ex. memset to 0), it will assume persistent
      pairing by default. Under certain circumstances, this can lead to a link
      key being stored for temporarily secured connection.
      
      This patch reverses the flag to be a "negative" flag. Renamed to
      "persistent_bond", the default 0 meaning is now used to indicate a
      temporary bond. If the lag is not properly set now, it will default to a
      temporary bond and will not save the link key erronously.
      
      Bug: 18345373
      Change-Id: I8558abc9eace609b1ba02485b0ff775fb6f3c6af
      eebc8ab9
  3. 04 Nov, 2014 1 commit
    • Andre Eisenbach's avatar
      HOGP: Do not remove device from whitelist on encryption failure · f37767a1
      Andre Eisenbach authored
      If the encryption times out during the re-connect process for a HOGP
      device, the device is removed from the whitelist and thus will not
      reconnect until it is added back to the list. On platforms that do not
      have a way to reconnect to a device manually, this means the device will
      never reconnect again until the stack is restarted.
      
      This patch checks the reason for the encryption failure and does not
      remove the device from the whitelist if the encryption failed to a non
      authentication/key related error.
      
      Bug: 18233442
      Change-Id: Ifaec4a9224ff9281956715b38d34c2d7c3fecb01
      f37767a1
  4. 03 Nov, 2014 5 commits
  5. 28 Oct, 2014 2 commits
  6. 23 Oct, 2014 1 commit
    • Prerepa Viswanadham's avatar
      Don't starve a BT ACL link with 0 xmit quota · 472c2a7b
      Prerepa Viswanadham authored
      With new link management of controller buffers between
      different ACL connections, it is possible that a ACL
      conn would get 0 buffers - thus no profile can run.
      This affects classic and LE ACL connections.
      
      This work around allows a floor of 1 buffer as the
      floor for all connection, irrespective of controller
      capability.
      
      Bug: 17976311
      Change-Id: I7cd0d34af47c441c5ea7f2b836b591a4fec62ad1
      472c2a7b
  7. 22 Oct, 2014 1 commit
    • Andre Eisenbach's avatar
      LE: Do not remove bond on encryption failure · 5e808468
      Andre Eisenbach authored
      If the encryption fails during the re-connection process with a
      previously paired LE device, the pairing is removed. Thus, a single
      connection failure could lead to the device be unpaired.
      
      This patch prevents unpairing when encryption fails.
      
      Additionally, the IRK is restored from NV ram to fix reconnection to
      dual-mode devices.
      
      Bug: 18072300
      Change-Id: I077a16d0715fdaa07b95b1c664c18bd839754896
      5e808468
  8. 20 Oct, 2014 1 commit
    • Chaojing Sun's avatar
      Cache HOGP HID report map · 433fe016
      Chaojing Sun authored
      HID reports from a bonded device can be missed when Bluetooth is
      restarted HOGP report discovery is still active. Caching the
      report information and loading it back when the stack resets
      will ensure incoming HID reports can be processed immediately.
      
      Bug: 17999991
      Change-Id: I4608935f8749537d6b05625b894445a21f844ee0
      433fe016
  9. 18 Oct, 2014 1 commit
  10. 17 Oct, 2014 1 commit
    • Andre Eisenbach's avatar
      A2DP: Lowering maximum PCM frame limit to avoid audio breaks · 01d102b3
      Andre Eisenbach authored
      Some car kits (notably Renesas car kits used in Nissan/Infiniti models)
      will throttle incoming A2DP frames if too many frames are sent at once.
      This patch lowers the maximum number of frames sent per tick to not
      overwhelm the remote device.
      
      Bug: 17880920
      Change-Id: I7bfbba625405c96159d1c94eebd8dc498f100daa
      01d102b3
  11. 16 Oct, 2014 4 commits
  12. 15 Oct, 2014 5 commits
  13. 10 Oct, 2014 3 commits
    • Andre Eisenbach's avatar
    • Mattias Agren's avatar
      Added missing A2DP priority on java alarm service · f061e74b
      Mattias Agren authored
      Running GKI timer engine via JAVA alarm service was causing severe
      timer preemption at times which affects A2DP media task timer. This in
      turn was stressing the compensation logic towards UIPC resulting in
      very bursty reads of up to 40 UIPC frames at a time. This led to
      instabilities on the UIPC pipe and trickled upwards in audio framework.
      Inclusion of java alarm thread in A2DP high priority thread list results
      in a much smoother data flow for entire A2DP data path and improved
      audio quality.
      
      Bug: 17520043
      Change-Id: I7cea6ec64aa5b973b5fff767389a8827e681619e
      f061e74b
    • Andre Eisenbach's avatar
      Revert "Unable to connect to a Motorola s705 until Bluetooth was toggled of and back on" · 1fbddc8f
      Andre Eisenbach authored
      This reverts commit a934f018.
      
      This patch caused various headset audio break issues and slow
      reconnections on headsets like the Bose AE2W.
      
      Based on the original bug under which this patch was merged
      (b/10648781) it is unlikely that this bug even fixed the
      issue it was meant to address.
      
      Bug: 17520043
      Change-Id: I39bb9abbf5735abff25b5257425c34972287dc27
      1fbddc8f
  14. 08 Oct, 2014 3 commits
  15. 07 Oct, 2014 2 commits
  16. 06 Oct, 2014 4 commits
  17. 03 Oct, 2014 2 commits