1. 05 Feb, 2015 9 commits
  2. 03 Feb, 2015 3 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
    • Andre Eisenbach's avatar
      DO NOT MERGE Change pairing_cb to assume temporary pairing by default · 3efb9e2e
      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: Ifb61e7a23db07888a625db9ab851548600183136
      3efb9e2e
  3. 04 Dec, 2014 1 commit
  4. 25 Nov, 2014 1 commit
  5. 21 Nov, 2014 1 commit
    • Simon Wilson's avatar
      DO NOT MERGE Reduce TIMER_INTERVAL_FOR_WAKELOCK_IN_MS to 100ms · 654c376f
      Simon Wilson authored
      The bluedroid wakelock locked time has increased 2.5x since K.
      Reduce the 3s interval to reduce the time that the wakelock is
      held, allowing the kernel to suspend more frequently. By
      reducing this, wakelock usage returns to roughly K levels.
      
      This in turn reduces BT process power usage.
      
      Bug: 18357273
      Change-Id: I7c3bddffafb0fa59468b8dd5718220be8ac85506
      654c376f
  6. 18 Nov, 2014 1 commit
    • Andre Eisenbach's avatar
      DO NOT MERGE Remove overflow rate limiting when reading A2DP frames · a59f47f2
      Andre Eisenbach authored
      A2DP now supports adjusting the number of A2DP frames sent per timer
      tick to adjust for timer drift and missed media task ticks. When the
      signal to the headset/speakers becomes interrupted, the number of
      packets to be read can queue up and rate limiting will not allow for the
      queue to be cleared.
      
      The overflow mechanism introduced in commit 4aebca46 will cause the media
      task to stop sending packets completely, which can underflow the jutter
      buffer on the remote device and lead to audio drop-outs.
      
      This patch removes the overflow mechanism and also adds code do discard
      audio frames that could not be sent to the remote device (weak signal
      etc) to allow the device to stay in sync and not build up audio delays.
      
      Also added additional debug logging and changed the UIPC flush mechanism
      to address an issue where reading byte by byte causes an endless flush
      loop if remote UIPC producer writes data faster than the flush loop
      consumes it.
      
      Bug: 18244205
      Change-Id: I9a424984806bb2a464877399804b3355b2c439c3
      (cherry picked from commit c5916e97)
      a59f47f2
  7. 05 Nov, 2014 1 commit
  8. 04 Nov, 2014 2 commits
    • Andre Eisenbach's avatar
      am f37767a1: HOGP: Do not remove device from whitelist on encryption failure · 2933de99
      Andre Eisenbach authored
      * commit 'f37767a1':
        HOGP: Do not remove device from whitelist on encryption failure
      2933de99
    • 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
  9. 03 Nov, 2014 10 commits
  10. 28 Oct, 2014 3 commits
  11. 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
  12. 22 Oct, 2014 2 commits
  13. 21 Oct, 2014 3 commits
  14. 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
  15. 18 Oct, 2014 1 commit