1. 06 Jun, 2016 1 commit
    • Nitin Arora's avatar
      Clear BLE block from device records at unpair · f3052eb3
      Nitin Arora authored
      Use Case:
      Pair and unpair LE remote device repeatedly. The repair
      intermittently fails with the error "DHKey Check Failure"
      
      Failure:
      Pairing failure is observed when pairing is performed
      after unpairing, without performing a BT reset.
      Further analysis of the SMP logs indicate that DUT uses the
      static address of the remote device for calculation of the
      MacKey value. At the time of pairing, the remote RPA should
      be used (and the static address has not yet been distributed either).
      The problem is caused by the previous dev record which is left in
      the stack, and at the time of repair, stack picks the old device
      record and reuses it.
      
      Fix:
      This change removes the entire BLE block from the device record,
      after the unpairing is performed, so that a new device record
      is allocated, after the repairing is done.
      
      Bug: 27852645
      Change-Id: I8d605d1bb3b1c32061a8d8a7a7fe0fe200030abc
      f3052eb3
  2. 30 May, 2016 1 commit
  3. 27 May, 2016 1 commit
  4. 26 May, 2016 2 commits
  5. 25 May, 2016 2 commits
    • Jacky Cheung's avatar
      Improve config file sync during configuration save. · 3114ad62
      Jacky Cheung authored
      Add fsync() calls to force sync to disk while saving configuration
      file.  It is necessary to do a sync on the temp file before rename,
      and to sync again on its parent directory to ensure both the
      file content and the directory are up-to-date.
      
      Bug: 27354612
      
      Change-Id: I3a862ad59c8ae5beb8ea2c727eb5f275a2d5823e
      (cherry picked from commit 95dbe03a)
      3114ad62
    • Ayan Ghosh's avatar
      Limit number of SBC frames to fit into single MTU · 8bbbee16
      Ayan Ghosh authored
      - Calculate number of SBC frames to fit into single MTU for EDR capable
        remote devices. This makes sure the maximum utilization of the
        available bandwidth, keeping the bitrate at high quality.
      - This change helps to address the discrepancy seen with a few available
        2 Mbps headsets which set the AVDTP media MTU size greater than the
        2DH5 packet payload size which eventually forces AVDTP packets to get
        fragmented in the controller. This change ensures packing of the SBC
        frames in a way that AVDTP packet size fits within the 2DH5 payload
        size.
      - As packet size is restricted to meet the required bit rate more than
        one AVDTP packet can be sent to the controller in a given iteration
        based on the bit rate requirement.
      
      Bug: 24875861
      Change-Id: Icae7656ad563bbbdef65ecbfa15a89b26cf9edb2
      8bbbee16
  6. 24 May, 2016 7 commits
  7. 23 May, 2016 1 commit
  8. 19 May, 2016 3 commits
  9. 18 May, 2016 3 commits
  10. 17 May, 2016 4 commits
  11. 16 May, 2016 4 commits
  12. 13 May, 2016 4 commits
  13. 12 May, 2016 6 commits
  14. 11 May, 2016 1 commit
    • Jacky Cheung's avatar
      DO NOT MERGE ANYWHERE SMP: Delay authorization complete. · 8c519cae
      Jacky Cheung authored
      Delay authorization complete during Bond Pending state in SMP.
      Instead of automatically advancing the Bond Pending state, create
      a 500ms window to allow the slave to stop pairing by sending over
      the Pairing Failed command during the Bond Pending state.
      
      BUG: 28475887
      Change-Id: I164e8312fdf9170d0f36caf404fc42e293ed5d79
      8c519cae