1. 31 Jul, 2020 2 commits
    • Marcel Holtmann's avatar
      Bluetooth: Increment management interface revision · 79bf1189
      Marcel Holtmann authored
      Increment the mgmt revision due to the recently added new commands.
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
      79bf1189
    • Alain Michaud's avatar
      Bluetooth: use the proper scan params when conn is pending · 9a9373ff
      Alain Michaud authored
      When an LE connection is requested and an RPA update is needed via
      hci_connect_le_scan, the default scanning parameters are used rather
      than the connect parameters.  This leads to significant delays in the
      connection establishment process when using lower duty cycle scanning
      parameters.
      
      The patch simply looks at the pended connection list when trying to
      determine which scanning parameters should be used.
      
      Before:
      < HCI Command: LE Set Extended Scan Parameters (0x08|0x0041) plen 8
                                  #378 [hci0] 1659.247156
              Own address type: Public (0x00)
              Filter policy: Ignore not in white list (0x01)
              PHYs: 0x01
              Entry 0: LE 1M
                Type: Passive (0x00)
                Interval: 367.500 msec (0x024c)
                Window: 37.500 msec (0x003c)
      
      After:
      < HCI Command: LE Set Extended Scan Parameters (0x08|0x0041) plen 8
                                     #39 [hci0] 7.422109
              Own address type: Public (0x00)
              Filter policy: Ignore not in white list (0x01)
              PHYs: 0x01
              Entry 0: LE 1M
                Type: Passive (0x00)
                Interval: 60.000 msec (0x0060)
                Window: 60.000 msec (0x0060)
      Signed-off-by: default avatarAlain Michaud <alainm@chromium.org>
      Reviewed-by: default avatarAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
      Reviewed-by: default avatarYu Liu <yudiliu@google.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      9a9373ff
  2. 30 Jul, 2020 9 commits
  3. 28 Jul, 2020 6 commits
  4. 16 Jul, 2020 1 commit
    • Patrick Steinhardt's avatar
      Bluetooth: Fix update of connection state in `hci_encrypt_cfm` · 339ddaa6
      Patrick Steinhardt authored
      Starting with the upgrade to v5.8-rc3, I've noticed I wasn't able to
      connect to my Bluetooth headset properly anymore. While connecting to
      the device would eventually succeed, bluetoothd seemed to be confused
      about the current connection state where the state was flapping hence
      and forth. Bisecting this issue led to commit 3ca44c16 (Bluetooth:
      Consolidate encryption handling in hci_encrypt_cfm, 2020-05-19), which
      refactored `hci_encrypt_cfm` to also handle updating the connection
      state.
      
      The commit in question changed the code to call `hci_connect_cfm` inside
      `hci_encrypt_cfm` and to change the connection state. But with the
      conversion, we now only update the connection state if a status was set
      already. In fact, the reverse should be true: the status should be
      updated if no status is yet set. So let's fix the isuse by reversing the
      condition.
      
      Fixes: 3ca44c16 ("Bluetooth: Consolidate encryption handling in hci_encrypt_cfm")
      Signed-off-by: default avatarPatrick Steinhardt <ps@pks.im>
      Acked-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      339ddaa6
  5. 15 Jul, 2020 1 commit
  6. 13 Jul, 2020 4 commits
  7. 10 Jul, 2020 5 commits
  8. 08 Jul, 2020 1 commit
  9. 07 Jul, 2020 6 commits
  10. 26 Jun, 2020 1 commit
  11. 25 Jun, 2020 1 commit
  12. 24 Jun, 2020 3 commits