1. 11 3月, 2015 1 次提交
  2. 07 3月, 2015 1 次提交
    • M
      Bluetooth: Introduce controller setting information for static address · 93690c22
      Marcel Holtmann 提交于
      Currently it is not possible to determine if the static address is used
      by the controller. It is also not possible to determine if using a
      static on a dual-mode controller with disabled BR/EDR is possible or
      not.
      
      To address this issue, introduce a new setting called static-address. If
      support for this setting is signaled that means that the kernel supports
      using static addresses. And if used on dual-mode controllers with BR/EDR
      disabled it means that a configured static address can be used.
      
      In addition utilize the same setting for the list of current active
      settings that indicates if a static address is configured and if that
      address will be actually used.
      
      With this in mind the existing Set Static Address management command
      has been extended to return the current settings. That way the caller
      of that command can easily determine if the programmed address will
      be used or if extra steps are required.
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      93690c22
  3. 28 2月, 2015 1 次提交
  4. 03 2月, 2015 1 次提交
  5. 05 12月, 2014 1 次提交
  6. 03 12月, 2014 1 次提交
  7. 18 11月, 2014 1 次提交
  8. 31 7月, 2014 1 次提交
  9. 06 7月, 2014 1 次提交
  10. 05 7月, 2014 2 次提交
  11. 04 7月, 2014 2 次提交
  12. 03 7月, 2014 9 次提交
  13. 24 5月, 2014 1 次提交
  14. 16 5月, 2014 1 次提交
  15. 10 3月, 2014 1 次提交
  16. 28 2月, 2014 1 次提交
  17. 23 2月, 2014 1 次提交
  18. 20 2月, 2014 1 次提交
  19. 18 2月, 2014 1 次提交
  20. 13 2月, 2014 7 次提交
  21. 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
  22. 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
  23. 26 9月, 2013 1 次提交
    • J
      Bluetooth: Add new mgmt_set_advertising command · 4375f103
      Johan Hedberg 提交于
      This patch adds a new mgmt command for enabling and disabling
      LE advertising. The command depends on the LE setting being enabled
      first and will return a "rejected" response otherwise. The patch also
      adds safeguards so that there will ever only be one set_le or
      set_advertising command pending per adapter.
      
      The response handling and new_settings event sending is done in an
      asynchronous request callback, meaning raw HCI access from user space to
      enable advertising (e.g. hciconfig leadv) will not trigger the
      new_settings event. This is intentional since trying to support mixed
      raw HCI and mgmt access would mean adding extra state tracking or new
      helper functions, essentially negating the benefit of using the
      asynchronous request framework. The HCI_LE_ENABLED and HCI_LE_PERIPHERAL
      flags however are updated correctly even with raw HCI access so this
      will not completely break subsequent access over mgmt.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Acked-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
      4375f103