1. 06 7月, 2014 1 次提交
    • M
      Bluetooth: Run controller setup after external configuration · d603b76b
      Marcel Holtmann 提交于
      When the external configuration triggers the switch to a configured
      controller, it means the setup needs to be run. Controllers that start
      out unconfigured have only run limited set of HCI commands. This is
      not enough for complete operation and thus run the setup procedure
      before announcing the new controller index.
      
      This introduces HCI_CONFIG flag as companion to HCI_SETUP flag. The
      HCI_SETUP flag is only used once for the initial setup procedure. And
      during that procedure hdev->setup driver callback is called. With the
      new HCI_CONFIG the switch from unconfigured to configured state is
      triggering the same setup procedure just without hdev->setup. This
      is required since bringing a controller back to unconfigured state
      from configured state is possible.
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      d603b76b
  2. 05 7月, 2014 2 次提交
  3. 04 7月, 2014 2 次提交
  4. 03 7月, 2014 13 次提交
  5. 10 5月, 2014 1 次提交
  6. 08 5月, 2014 1 次提交
  7. 27 3月, 2014 1 次提交
  8. 01 3月, 2014 1 次提交
    • J
      Bluetooth: Remove unnecessary stop_scan_complete function · 81ad6fd9
      Johan Hedberg 提交于
      The stop_scan_complete function was used as an intermediate step before
      doing the actual connection creation. Since we're using hci_request
      there's no reason to have this extra function around, i.e. we can simply
      put both HCI commands into the same request.
      
      The single task that the intermediate function had, i.e. indicating
      discovery as stopped is now taken care of by a new
      HCI_LE_SCAN_INTERRUPTED flag which allows us to do the discovery state
      update when the stop scan command completes.
      Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      81ad6fd9
  9. 28 2月, 2014 5 次提交
  10. 27 2月, 2014 1 次提交
    • A
      Bluetooth: Stop scanning on LE connection · 2acf3d90
      Andre Guedes 提交于
      Some LE controllers don't support scanning and creating a connection
      at the same time. So we should always stop scanning in order to
      establish the connection.
      
      Since we may prematurely stop the discovery procedure in favor of
      the connection establishment, we should also cancel hdev->le_scan_
      disable delayed work and set the discovery state to DISCOVERY_STOPPED.
      
      This change does a small improvement since it is not mandatory the
      user stops scanning before connecting anymore. Moreover, this change
      is required by upcoming LE auto connection mechanism in order to work
      properly with controllers that don't support background scanning and
      connection establishment at the same time.
      
      In future, we might want to do a small optimization by checking if
      controller is able to scan and connect at the same time. For now,
      we want the simplest approach so we always stop scanning (even if
      the controller is able to carry out both operations).
      Signed-off-by: NAndre Guedes <andre.guedes@openbossa.org>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      2acf3d90
  11. 24 2月, 2014 1 次提交
  12. 23 2月, 2014 1 次提交
  13. 20 2月, 2014 1 次提交
  14. 18 2月, 2014 1 次提交
  15. 13 2月, 2014 8 次提交