1. 13 2月, 2014 6 次提交
    • M
      Bluetooth: Add management command to allow use of debug keys · 4e39ac81
      Marcel Holtmann 提交于
      Originally allowing the use of debug keys was done via the Load Link
      Keys management command. However this is BR/EDR specific and to be
      flexible and allow extending this to LE as well, make this an independent
      command.
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      4e39ac81
    • M
      Bluetooth: Add management setting for use of debug keys · b1de97d8
      Marcel Holtmann 提交于
      When the controller has been enabled to allow usage of debug keys, then
      clearly identify that in the current settings information.
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      b1de97d8
    • M
      Bluetooth: Add support for remote OOB input of P-256 data · ec109113
      Marcel Holtmann 提交于
      The current management interface only allows to provide the remote
      OOB input of P-192 data. This extends the command to also accept
      P-256 data as well. To make this backwards compatible, the userspace
      can decide to only provide P-192 data or the combined P-192 and P-256
      data. It is also allowed to leave the P-192 data empty if userspace
      only has the remote P-256 data.
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      ec109113
    • M
      Bluetooth: Add support for local OOB data with Secure Connections · 4d2d2796
      Marcel Holtmann 提交于
      For Secure Connections support and the usage of out-of-band pairing,
      it is needed to read the P-256 hash and randomizer or P-192 hash and
      randomizer. This change will read P-192 data when Secure Connections
      is disabled and P-192 and P-256 data when it is enabled.
      
      The difference is between using HCI Read Local OOB Data and using the
      new HCI Read Local OOB Extended Data command. The first one has been
      introduced with Bluetooth 2.1 and returns only the P-192 data.
      
      < HCI Command: Read Local OOB Data (0x03|0x0057) plen 0
      > HCI Event: Command Complete (0x0e) plen 36
            Read Local OOB Data (0x03|0x0057) ncmd 1
              Status: Success (0x00)
              Hash C from P-192: 975a59baa1c4eee391477cb410b23e6d
              Randomizer R with P-192: 9ee63b7dec411d3b467c5ae446df7f7d
      
      The second command has been introduced with Bluetooth 4.1 and will
      return P-192 and P-256 data.
      
      < HCI Command: Read Local OOB Extended Data (0x03|0x007d) plen 0
      > HCI Event: Command Complete (0x0e) plen 68
            Read Local OOB Extended Data (0x03|0x007d) ncmd 1
              Status: Success (0x00)
              Hash C from P-192: 6489731804b156fa6355efb8124a1389
              Randomizer R with P-192: 4781d5352fb215b2958222b3937b6026
              Hash C from P-256: 69ef8a928b9d07fc149e630e74ecb991
              Randomizer R with P-256: 4781d5352fb215b2958222b3937b6026
      
      The change for the management interface is transparent and no change
      is required for existing userspace. The Secure Connections feature
      needs to be manually enabled. When it is disabled, then userspace
      only gets the P-192 returned and with Secure Connections enabled,
      userspace gets P-192 and P-256 in an extended structure.
      
      It is also acceptable to just ignore the P-256 data since it is not
      required to support them. The pairing with out-of-band credentials
      will still succeed. However then of course no Secure Connection will
      b established.
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      4d2d2796
    • M
      Bluetooth: Add management command for enabling Secure Connections · eac83dc6
      Marcel Holtmann 提交于
      The support for Secure Connections need to be explicitly enabled by
      userspace. This is required since only userspace that can handle the
      new link key types should enable support for Secure Connections.
      
      This command handling is similar to how Secure Simple Pairing enabling
      is done. It also tracks the case when Secure Connections support is
      enabled via raw HCI commands. This makes sure that the host features
      page is updated as well.
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      eac83dc6
    • M
      Bluetooth: Add flags and setting for Secure Connections support · e98d2ce2
      Marcel Holtmann 提交于
      The MGMT_SETTING_SECURE_CONN setting is used to track the support and
      status for Secure Connections from the management interface. For HCI
      based tracking HCI_SC_ENABLED flag is used.
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      e98d2ce2
  2. 12 10月, 2013 1 次提交
    • M
      Bluetooth: Add management command for setting LE scan parameters · 14b49b9a
      Marcel Holtmann 提交于
      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: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      14b49b9a
  3. 02 10月, 2013 2 次提交
    • M
      Bluetooth: Add management command for setting static address · d13eafce
      Marcel Holtmann 提交于
      On dual-mode BR/EDR/LE and LE only controllers it is possible
      to configure a random address. There are two types or random
      addresses, one is static and the other private. Since the
      random private addresses require special privacy feature to
      be supported, the configuration of these two are kept separate.
      
      This command allows for setting the static random address. It is
      only supported on controllers with LE support. The static random
      address is suppose to be valid for the lifetime of the controller
      or at least until the next power cycle. To ensure such behavior,
      setting of the address is limited to when the controller is
      powered off.
      
      The special BDADDR_ANY address (00:00:00:00:00:00) can be used to
      disable the static address. This is also the default value.
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      d13eafce
    • J
      Bluetooth: Add a new mgmt_set_bredr command · 0663ca2a
      Johan Hedberg 提交于
      This patch introduces a new mgmt command for enabling/disabling BR/EDR
      functionality. This can be convenient when one wants to make a dual-mode
      controller behave like a single-mode one. The command is only available
      for dual-mode controllers and requires that LE is enabled before using
      it. The BR/EDR setting can be enabled at any point, however disabling it
      requires the controller to be powered off (otherwise a "rejected"
      response will be sent).
      
      Disabling the BR/EDR setting will automatically disable all other BR/EDR
      related settings.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      0663ca2a
  4. 26 9月, 2013 2 次提交
  5. 12 6月, 2013 1 次提交
  6. 19 9月, 2012 1 次提交
  7. 22 8月, 2012 1 次提交
    • M
      Bluetooth: mgmt: Add device disconnect reason · f0d6a0ea
      Mikel Astiz 提交于
      MGMT_EV_DEVICE_DISCONNECTED will now expose the disconnection reason to
      userland, distinguishing four possible values:
      
      	0x00	Reason not known or unspecified
      	0x01	Connection timeout
      	0x02	Connection terminated by local host
      	0x03	Connection terminated by remote host
      
      Note that the local/remote distinction just determines which side
      terminated the low-level connection, regardless of the disconnection of
      the higher-level profiles.
      
      This can sometimes be misleading and thus must be used with care. For
      example, some hardware combinations would report a locally initiated
      disconnection even if the user turned Bluetooth off in the remote side.
      Signed-off-by: NMikel Astiz <mikel.astiz@bmw-carit.de>
      Acked-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
      f0d6a0ea
  8. 13 6月, 2012 1 次提交
  9. 09 5月, 2012 1 次提交
  10. 29 3月, 2012 1 次提交
  11. 07 3月, 2012 2 次提交
  12. 02 3月, 2012 2 次提交
  13. 24 2月, 2012 1 次提交
  14. 23 2月, 2012 2 次提交
  15. 21 2月, 2012 3 次提交
  16. 19 2月, 2012 3 次提交
  17. 17 2月, 2012 4 次提交
  18. 15 2月, 2012 1 次提交
  19. 13 2月, 2012 5 次提交