Skip to content
Snippets Groups Projects
  1. Mar 21, 2017
    • Ivan Podogov's avatar
      Reduce sniff intervals for active mode. · 3ada3422
      Ivan Podogov authored
      According to the Bluetooth HID specification, a pointing device
      should have a recommended report rate of approximately 80 Hz, and
      sniff interval of 18 slots for the sniff subrating mode.
      Current settings set the sniff interval to 54 slots, which is
      aproximately 29.6 Hz - not really enough to emulate a mouse.
      
      Test: with a pointing device app
      Change-Id: Ic3365137bcf3f5608ada37fbfa0c3233f6ef83d7
      3ada3422
  2. Mar 20, 2017
  3. Mar 19, 2017
    • Pavlin Radoslavov's avatar
      Base classes should have virtual destructors · 8a898162
      Pavlin Radoslavov authored
      Each base class in service/common/bluetooth now has a virtual
      destructor. This fixes memory delete issues that were exposed
      when running the unit tests with ASAN enabled.
      
      Test: Running unit tests with ASAN enabled
      Change-Id: Ie944eb80784de4ebac3c7276fabed6acb5fec6c0
      8a898162
  4. Mar 17, 2017
  5. Mar 16, 2017
    • Jakub Pawlowski's avatar
      Fix net_test_stack_multi_adv · 05e6d76e
      Jakub Pawlowski authored
      Change-Id: Ic28aa4a120d973bbf3f05d8022bc2c2e619562e2
      05e6d76e
    • Pavlin Radoslavov's avatar
      Fix an HCI race condition when transmitting a packet · 6822ce80
      Pavlin Radoslavov authored
      There is a race condition when calling
      event_command_ready() -> transmit_fragment() -> hci_transmit()
      
      If right after hci_transmit() there is thread context switch
      and another thread executes filter_incoming_event() for the same
      command, the corresponding packet/command will be taken off the
      commands_pending_response list and free()-ed.
      
      However, after the execution on the first thread continues
      within transmit_fragment(), the execution logic will continue using
      the "packet" that was already free()-ed by the other thread.
      
      To prevent this from happening, the "commands_pending_response_mutex"
      within event_command_ready() has to protect the transmit_fragment()
      execution and the update_command_response_timer() function right after it.
      
      Also:
       * Changed the "commands_pending_response_mutex" to recursive_mutex
       * Added "commands_pending_response_mutex" protection in few other
         places where "commands_pending_response" itself is used.
      
      Bug: 36205494
      Test: Running ASAN build
      Change-Id: I63677ad1f2b28683c321631e9e29e4f01628d269
      6822ce80
  6. Mar 15, 2017
  7. Mar 14, 2017
  8. Mar 13, 2017
  9. Mar 11, 2017
  10. Mar 10, 2017
  11. Mar 08, 2017
  12. Mar 06, 2017
  13. Mar 02, 2017
    • Jack He's avatar
      Fix for dual-mode devices advertising with a single address · ce833a3c
      Jack He authored
      * BTM_ReadRemoteDeviceName checks if a device is connectable over LE before
        making a connection. However, when it is not connectable over LE, it could
        be connectable over BR/EDR.
      * For Dual Mode device, the device type should be 0x3 and is not equal to
        BT_DEVICE_TYPE_BREDR, hence we cannot check equality to determine whether
        a device is BR/EDR, but need to AND them and check the result.
      * btm_ble_read_remote_name() already checks if device is connectable in LE,
        and we do not need to do it in BTM_ReadRemoteDeviceName().
      * This fix removes the check from BTM_ReadRemoteDeviceName
      * This fix also adds error checking to return values of BTM_ReadRemoteDeviceName
      * This fix moves inquiry database query to respective remote name
        request procedures, as the result of the query is used in those
        procedures instead of in BTM_ReadRemoteDeviceName()
      
      Bug: 35348392
      Test: make, pair with device that advertise on both LE and BR/EDR
      Change-Id: I10d1aa9dd6e2447f9b9d40b1fea9370b5088a57d
      ce833a3c
    • Treehugger Robot's avatar
      4485bd16
  14. Mar 01, 2017
Loading