1. 14 Oct, 2013 3 commits
  2. 13 Oct, 2013 27 commits
  3. 12 Oct, 2013 7 commits
  4. 11 Oct, 2013 3 commits
    • Marcel Holtmann's avatar
      Bluetooth: Don't advertise high speed support without SSP · a82974c9
      Marcel Holtmann authored
      It is not allowed to enable high speed support when Secure Simple
      Pairing is not available or disabled.
      
      However the support for high speed gets advertised on a controller
      that does not even support Secure Simple Pairing. Since there is
      no way to enable high speed support on such a controller, do not
      even advertise its support.
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
      a82974c9
    • Marcel Holtmann's avatar
      Bluetooth: Fix endless loop with HCI_QUIRK_RESET_ON_CLOSE · 3a6afbd2
      Marcel Holtmann authored
      Really early versions of the Bluetooth specification were unclear
      with the behavior of HCI Reset for USB devices. They assumed that
      also an USB reset needs to be issued. Later Bluetooth specifications
      cleared this out and it is safe to call HCI Reset without affecting
      the transport.
      
      For old devices that misbehave, the HCI_QUIRK_RESET_ON_CLOSE quirk
      was introduced to postpone the HCI Reset until the device was no
      longer in use.
      
      One of these devices is the Digianswer BPA-105 Bluetooth Protocol
      Analyzer. The only problem now is that with the quirk set, the
      HCI Reset is also executed at the end of the setup phase. So the
      controller gets configured and then it disconnects from the USB
      bus, connects again, gets configured and of course disconnects
      again. This game goes on forever.
      
      For devices that need HCI_QUIRK_RESET_ON_CLOSE it is important
      that the HCI Reset is not executed after the setup phase. In
      specific when HCI_AUTO_OFF is set, do not call HCI Reset when
      closing the device.
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
      3a6afbd2
    • Marcel Holtmann's avatar
      Bluetooth: Add management command for setting LE scan parameters · 14b49b9a
      Marcel Holtmann authored
      The scan interval and window parameters are used for LE passive
      background scanning and connection establishment. This allows
      userspace to change the values.
      
      These two values should be kept in sync with whatever is used for
      the scan parameters service on remote devices. And it puts the
      controlling daemon (for example bluetoothd) in charge of setting
      the values.
      
      Main use case would be to switch between two sets of values. One
      for foreground applications and one for background applications.
      
      At this moment, the values are only used for manual connection
      establishment, but soon that should be extended to background
      scanning and automatic connection establishment.
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
      14b49b9a